[nycphp-talk] apache2/php5 and include ( ) paths

Mikhail Ledvich php.mail.list at
Wed Jun 28 22:46:31 EDT 2006

Hi all,
  Perhaps someone can help me out with a weird error I am experiencing. 
I've installed Apache2, PHP5, MySQL5 on a WindowsXP machine and 
everything works like a charm. Except when I try to use php.exe from 
command line. If I execute a php file from command prompt using the 
php.exe, if the include/require paths are not entirely hardcoded 
(c:\AppServ\www ...) but are dynamically set (../../config.php): it 
throws errors.

Warning: include_once(../../config.php): failed to open stream: No such 
file or directory in c:\AppServ\www\fill_combination.php on line 10

However, if I put the same into the browser, it works, but from local 
command line I get path errors. Any ideas? I am at the end of my wits.


More information about the talk mailing list