SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: include...

  1. #1
    SitePoint Addict joyce's Avatar
    Join Date
    Aug 2001
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    include...

    i include this in my index.php:
    PHP Code:
    include("http://www.certifyexpress.com/review/admin/display.php?cat="htmlentities(urlencode('Microsoft')) ."&subcat="htmlentities(urlencode('Win2K Pro')) ."&gid="htmlentities(urlencode($gid)) ."&cat="htmlentities(urlencode($cat)) ."&subcat=" .htmlentities(urlencode($subcat)) ."&title="htmlentities(urlencode($title)) ."&desc="htmlentities(urlencode($desc)) ."&flag=$flag&sta=$sta&image="htmlentities(urlencode($image)) ."&a=1"); 
    everything runs well. due to maintenance problem, i decided to put all the includes' into one file. therefore,i include abc.php in my index.php.

    PHP Code:
    include("http://www.certifyexpress.com/template/abc.php?cat='Microsoft'&subcat="htmlentities(urlencode('Win2K Pro')) .""); 
    and in my abc.php, i have these:
    PHP Code:
    <?

    switch ($cat)
        {
            case 
    'Microsoft':
                
    $path "Microsoft";
                break;
            case 
    'Cisco':
                
    $path "cisc";
                break;
            case 
    'Novell':
                
    $path "novell";
                break;
            case 
    'ComTIA':
                
    $path "comtia";
                break;
            case 
    'Linux/Unix':
                
    $path "linux_unix";
                break;
            case 
    'CIW':
                
    $path "prosoft";
                break;
            case 
    'Oracle':
                
    $path "oracle";
                break;
            case 
    'Lotus':
                
    $path "lotus";
                break;
            case 
    'CheckPoint':
                
    $path "checkpoint";
                break;
            case 
    'Sun':
                
    $path "sun";
                break;
            default:
                
    $path "bea";
                break;
        
        }
    //switch($cat)

        
    switch ($subcat)
        {
            case 
    'Net Essentials':
                
    $location "netessentials";
                break;
            case 
    'NT Workstation':
                
    $location "ntworkstation";
                break;
            case 
    'NT Server':
                
    $location "ntserver";
                break;
            case 
    'NT Enterprise':
                
    $location "ntworkstation";
                break;
            case 
    'Win98':
                
    $location "netessentials";
                break;
            case 
    'TCP/IP':
                
    $location "ntworkstation";
                break;
            case 
    'IIS4':
                
    $location "netessentials";
                break;
            case 
    'Exchange 5.x':
                
    $location "ntworkstation";
                break;
            case 
    'I.E 5.x':
                
    $location "ieak5";
                break;
            case 
    'Proxy 2.x':
                
    $location "proxy2";
                break;
            case 
    'Site Server 3.x':
                
    $location "siteserver3";
                break;
            case 
    'SMS 2.x':
                
    $location "sms2";
                break;
            case 
    'SQL 7.x Admin':
                
    $location "sql7admin";
                break;
            case 
    'SQL 7.x Imp':
                
    $location "sql7design";
                break;
            case 
    'SQL 7.x Data':
                
    $location "sql7data";
                break;
            case 
    'VB 6 Dsk':
                
    $location "vb6dsk";
                break;
            case 
    'VB 6 Dist':
                
    $location "vb6dist";
                break;
            case 
    'Visual C++ Dsk':
                
    $location "distvisualc";
                break;
            case 
    'Architectures':
                
    $location "architect";
                break;
            case 
    'FrontPage 98':
                
    $location "frontpage98";
                break;
            case 
    'Win2K Upg':
                
    $location "win2kup";
                break;
            case 
    'Win2K Pro':
                
    $location "Win2K Pro";
                break;
            case 
    'Win2K Server':
                
    $location "win2kserver";
                break;
            case 
    'Win2K Accelerated':
                
    $location "win2kacc";
                break;
            case 
    'Win2K Net Infra':
                
    $location "win2knet_infra";
                break;
            case 
    'Win2K DS Infra':
                
    $location "win2kdc_infra";
                break;
            case 
    'Win2K Migration':
                
    $location "win2kmigration";
                break;
            case 
    'Win2K DS Design':
                
    $location "70_219";
                break;
            case 
    'Win2K Net Design':
                
    $location "70_221";
                break;
            case 
    'Win2K Dsg Security':
                
    $location "70_220";
                break;
            case 
    'Word 2000':
                
    $location "word2000";
                break;
            case 
    'Word 2000 Expert':
                
    $location "word2000expert";
                break;
            case 
    'Excel 2000':
                
    $location "excel2000";
                break;
            case 
    'Excel 2000 Expert':
                
    $location "excel2000expert";
                break;
            case 
    'Powerpoint 2000':
                
    $location "powerpoint2000";
                break;
            case 
    'Access 2000':
                
    $location "access2000";
                break;
            case 
    'Outlook 2000':
                
    $location "outlook2000";
                break;
            case 
    'SQL 2000 Admin':
                
    $location "70_229";
                break;
            case 
    'Exchange 2000 Adm':
                
    $location "exchange2000admin";
                break;
            case 
    'CCNA 1.0':
                
    $location "ccna";
                break;
            case 
    'CCNA 2.0':
                
    $location "ccna2";
                break;
            case 
    'CCDA':
                
    $location "ccda";
                break;
            case 
    'ACRC':
                
    $location "acrc";
                break;
            case 
    'BSCN':
                
    $location "bscn";
                break;
            case 
    'BCRAN':
                
    $location "remote";
                break;
            case 
    'BCMSN':
                
    $location "switching";
                break;
            case 
    'CIT':
                
    $location "cit";
                break;        
            case 
    'Netware 4.11 to 5 Update':
                
    $location "411to5";
                break;
            case 
    'Netware 5.0 Admin':
                
    $location "nw5admin";
                break;
            case 
    'Netware 5.0 Adv':
                
    $location "411to5/nw5admin";
                break;
            case 
    'Netware 5.1 Admin':
                
    $location "nw51admin";
                break;
            case 
    'TCP/IP':
                
    $location "tcpip";
                break;
            case 
    'GroupWise 5':
                
    $location "groupwise55admin";
                break;
            case 
    'GroupWise 5 Adv':
                
    $location "groupwise5adv";
                break;
            case 
    'Networking Tech':
                
    $location "nettech";
                break;
            case 
    'NDS Design':
                
    $location "ndsdesign";
                break;
            case 
    'Integrating NT':
                
    $location "integratingnt";
                break;        
            case 
    'A+ Core':
                
    $location "apluscore";
                break;
            case 
    'A+ Dos/Win':
                
    $location "aplusdos";
                break;
            case 
    'A+ Core Hard':
                
    $location "aplushardware";
                break;
            case 
    'A+ OS':
                
    $location "aplusos";
                break;
            case 
    'Network +':
                
    $location "networkplus";
                break;
            case 
    'I-NET+':
                
    $location "inetplus";
                break;
            case 
    'RedHat':
                
    $location "rhce";
                break;
            case 
    'LPI':
                
    $location "lpi";
                break;
            case 
    'SAIR Int Conf':
                
    $location "sair/install_config";
                break;        
            case 
    'CIW Site Designer':
                
    $location "site_design";
                break;
            case 
    'Oracle 8 DBA':
                
    $location "oracle8dba";
                break;
            case 
    'SQL - PL/SQL':
                
    $location "sql_and_pl";
                break;
            case 
    'Net Admin':
                
    $location "netadmin";
                break;
            case 
    'Perf Tuning':
                
    $location "perftuning";
                break;
            case 
    '7.3 to 8 Upg':
                
    $location "dba73_to_8";
                break;
            case 
    '8 to 8i Upg':
                
    $location "8iupg";
                break;
            case 
    '8i Backup and Recov':
                
    $location "8ibackup_recovery";
                break;
            case 
    '8i Perf Tuning':
                
    $location "8iperftuning";
                break;        
            case 
    'Maint Domino':
                
    $location "r5server";
                break;
            case 
    'Domino Infra':
                
    $location "r5infra";
                break;
            case 
    'CCSA':
                
    $location "ccsa";
                break;
            case 
    'CCSE':
                
    $location "ccse";
                break;
            case 
    'CCAE':
                
    $location "ccae";
                break;
            case 
    'CCQE':
                
    $location "ccqe";
                break;
            
            case 
    'Java2 Programmer':
                
    $location "java2";
                break;

            default:
                
    $location "weblogicserver6";
                break;

        }
    //switch($subcat)
        
    echo "$path/$location";
        include(
    "http://www.certifyexpress.com/review/admin/display.php?cat="htmlentities(urlencode('$path')) ."&subcat="htmlentities(urlencode('$location')) ."&gid="htmlentities(urlencode($gid)) ."&title="htmlentities(urlencode($title)) ."&desc="htmlentities(urlencode($desc)) ."&flag=$flag&sta=$sta&image="htmlentities(urlencode($image)) ."&a=1";

        
    ?>
    but nothing displayed out. why? pls help?

  2. #2
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you are missing a ")" at the end of your include statement.
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky

  3. #3
    SitePoint Wizard Defender1's Avatar
    Join Date
    Apr 2001
    Location
    My Computer
    Posts
    2,808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Debug Listing of Round Brackets:

    003: ( )
    039: ( )
    041: ( )
    295: ( )
    297: ( ( ( ) ) ( ( ) ) ( ( ) ) ( ( ) ) ( ( ) ) ( ( ) ) <-- missing last ')' mark

    How to read above: The table at the top tells you the type of bracket, and how many there are, it also tells you if that number equals the number of closures of that type of bracket(or evenness of quotes). If there is a set of brackets or quotes that are uneven, there will be a debug listing for those types of brackets/quotes. The line number is on the side, followed by the open or close of the bracket.
    http://www.webinfractions.com/cgi-bi...i?file=abc.php
    Defender's Designs
    I'm Getting Married!

    Not-so-patiently awaiting Harry Potter Book 7 *sigh*


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •