path error while calling files

From: Date: Mon, 27 Aug 2001 16:11:16 +0000
Subject: path error while calling files
Groups: php.general 
Request: Send a blank email to php-general+get-64654@lists.php.net to get a copy of this message
Hello. I am reading in text files in a php-script and am getting path errors. I have set the php-path in php.ini to /home/web/public_html/cgi-bin/chanet/ and am trying to call a file in /home/web/public_html/cgi-bin/chanet/daten/. I use the path ../../cgi-bin/chanet/daten/ to call the files (the reason for leaving the directory twice is that I have another place where my webpage is running with a different structure). I get the following error: Warning: Failed opening '../../cgi-bin/chanet/daten/menu.dat' for inclusion (include_path='.:/usr/share/php:/home/web/public_html/cgi-bin/chanet') in /home/web/public_html/inhalt/chanet.php4 on line 80 However, when I set the php-path just to /home/web/public_html/cgi-bin/ and call the files with ../cgi-bin/chanet/daten/, it works. I have to test set all the rights in public_html to 777, so I don't think it's a rights problem. Am I not allowed to call up directories which require me to go up two directories?? Thanks for any help! Carsten

« previous php.general (#64654) next »