FreePgs.com Forum

FreePgs Related => Support Requests => Topic started by: esh_corp on January 28, 2006, 11:22:10 AM

Title: PHP Messed up
Post by: esh_corp on January 28, 2006, 11:22:10 AM
has anyone else noticed how messed up php has become since yesterday? I didn't change anything in my code, and it was working properly, but for some reason now, include() functions aren't working like before. They now do not inherit the charecteristics of the main page. For example:

index.php includes the file (/pages/admin/adminpage.php)

the address written in is (index.php?user=blah)

writing $_GET['user'] in the index.php file WILL return "blah" but writin it in adminpage.php wont.

Has anyone noticed this, or is just happening with me?
Title: Re: PHP Messed up
Post by: sixthcrusifix on January 28, 2006, 06:40:45 PM
Quote from: esh_corp on January 28, 2006, 11:22:10 AM
has anyone else noticed how messed up php has become since yesterday? I didn't change anything in my code, and it was working properly, but for some reason now, include() functions aren't working like before. They now do not inherit the charecteristics of the main page. For example:

index.php includes the file (/pages/admin/adminpage.php)

the address written in is (index.php?user=blah)

writing $_GET['user'] in the index.php file WILL return "blah" but writin it in adminpage.php wont.

Has anyone noticed this, or is just happening with me?



Are you using
include("/fpgs/fpghttpd/USERNAME/Directory/File.php"); ?

or this:

include("/Directory/File.php");


we WERE allowing the second one since the fir ebut they may have stopped it because it uses a lot more system resources than the first. Something to do with slots and accessig files.
Title: Re: PHP Messed up
Post by: admin on January 29, 2006, 10:17:17 PM
You must use the proper file path.  When you place a "/" as the first character of the path, it is assumed to start at the root level.

There is no such folder "/pages/admin".  Please be sure to use the correct file path as the above poster mentioned.

Thank you,
FreePgs.com Admin