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
   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

Thanks for any help!

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to