include problem

From: Date: Wed, 29 Oct 2003 15:29:32 +0000
Subject: include problem
Groups: php.general 
Request: Send a blank email to php-general+get-168010@lists.php.net to get a copy of this message
Hi, I have a weird problem which must be stupid for sure. I'm trying to do an include in my code run as a cgi. The include works fine in the form: include ("directory/file"); even it works as: include ("directory/../directory/file"); but it doesn't work as: include ("./directory/file"); nor include ("../current/directory/file"). Of course, the obvious thinking is I have a perms problem but they are the same for '.' and for 'directory' so it makes no sense for me (755 if you wonder). If I execute the script it works without problem but it doesn't upon web request reporting: Warning: main(./db/db.tables.php) [function.main]: failed to create stream: No such file or directory in /home/psanchez/tests/hola.php on line 8 Warning: main() [function.main]: Failed opening './db/db.tables.php' for inclusion (include_path='.') in /home/psanchez/tests/hola.php on line 8 I need to know what the problem is because I have a software that should work but it doesn't. Any ideas? Thanks Pablo S. Torralba

« previous php.general (#168010) next »