Results 1 to 3 of 3
  1. #1

    weird php problem

    I am using a PHP code on a webpage. Recently I switched servers and the new server doesn't seem to be able to parse this code. Could there be some reason for this? The php version on the new host is actually newer than the previous one.

    if ($view == "") 
    {require ("homepage.php"); }
    if ($view == "none") 
    {require ("blank.html"); } 

  2. #2
    Join Date
    Oct 2002
    maybe register_globals is off and you expect to get $view from _REQUEST. Try using $_GET['view'] or $_POST['view'] instead

  3. #3
    thank you i fixed the error!
    Last edited by zennmaster; 11-27-2005 at 09:25 PM.

Posting Permissions

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