The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

php problem, some functions broken

Discussion in 'General Discussion' started by tgillespie, Feb 18, 2006.

  1. tgillespie

    tgillespie Member

    Joined:
    Oct 16, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Recently I had to rebuild the server from scratch. Upon setting everything up, I have managed to break php somehow.

    For example, switch() in php no longer works.
    PHP:
    <?php 

    switch($page

    case 
    "main":
    include (
    "main.php");
    break;
    This reloads the index.php without switching to main.php. Does anyone have any clue what it could be. Scripts like vBulletin work perfectly, but my simple site navigation is broken :(

    Here is a link to my phpinfo: http://www.modtheater.com/forum/index.php?do=phpinfo
     
  2. tgillespie

    tgillespie Member

    Joined:
    Oct 16, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    DOH. Forgot that register_globals in php.ini was turned to off :eek:
     
Loading...

Share This Page