I upgraded a really old site from PHP4 to PHP5 as fastCGI.
The site uses includes, example:
<? include($DOCUMENT_ROOT."/includes/news-nav.php") ?>They all broke on the PHP upgrade, the errors look like:
include(/includes/news-nav.php) [function.include]: failed to open stream: No such file or directory in /home/.babsy/username/domainname.com/news/index.php on line 77
Warning: include() [function.include]: Failed opening ‘/includes/news-nav.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php:/usr/local/lib/php’) in /home/.babsy/username/domainname.com/news/index.php on line 77
Can I redefine $DOCUMENT_ROOT in custom php.ini ? Or does the syntax need to change for PHP5 no matter what?
mail [at] mahalie [dot] com
How to create a private wiki