Re: path error while calling files

From: Date: Thu, 30 Aug 2001 09:42:55 +0000
Subject: Re: path error while calling files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65228@lists.php.net to get a copy of this message
I think you want require 'daten/menu.data'; No, you can't go up two directories and back down, or you'd be able to go down into other people's web-sites, and that would be bad. You can go up only as far as your own site. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Carsten Weber <carsten@itp.physik.tu-berlin.de> Newsgroups: php.general To: <php-general@lists.php.net> Sent: Monday, August 27, 2001 11:11 AM Subject: path error while calling files > 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 (#65228) next »