Re: DOCUMENT_ROOT errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Shawn McKenzie wrote:
> Marc Fromm wrote:
>> I updated fedora core from FC5 to TC6, thus httpd and php were updated in the process. My pages worked with no errors before the upgrade.
>> My php pages are no not displaying and generating this error in the httpd logs
>>
>> PHP Notice:  Undefined variable: DOCUMENT_ROOT in /var/www/html/studentjobs/index.php on line 6, referer: http://finaid46.finaid.wwu.edu/
>> PHP Warning:  require(/studentjobs/includes/javascript.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /var/www/html/studentjobs/index.php on line 6, referer: http://finaid46.finaid.wwu.edu/
>> PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required '/studentjobs/includes/javascript.php' (include_path='.:/usr/share/pear') in /var/www/html/studentjobs/index.php on line 6, referer: http://finaid46.finaid.wwu.edu/
>>
>> PHP Notice:  Undefined index:  cmd in /var/www/html/lan/ztezt/student_alerts/index.php on line 5
>>
>> My current versions are:
>> httpd-2.2.6-1.fc6
>> php-5.1.6-3.7.fc6
>> php-pear-1.4.9-4 (one error above mentions pear)
>>
>> Marc
>>
>>
> What is on /var/www/html/studentjobs/index.php on line 6?
> 
Never mind.  It's register_globals problem.  Change DOCUMENT_ROOT to
$_SERVER['DOCUMENT_ROOT'].  You may have to change quite a few variables
as it looks like cmd might be a get var which you would change to
$_GET['cmd'].  Unless you can debug and change the app, you may have to
turn register_globals back on (security hole!).

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux