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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php