By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,740 Members | 1,820 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,740 IT Pros & Developers. It's quick & easy.

permission accessing via file()

P: n/a
Need to access a single text file for read
only where it resides using file().
To test the code I copied it local because
I got "permission denied" message where it
exists.
Any safe solutions?
TIA
-Walt

--
Reply to innkeepATcapitalDOTnet to email questions.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Carved in mystic runes upon the very living rock, the last words of of
comp.lang.php make plain:
Need to access a single text file for read
only where it resides using file().
To test the code I copied it local because
I got "permission denied" message where it
exists.
Any safe solutions?


You must either modify the permissions on the file, or run your script
through a wrapper or under suexec.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 17 '05 #2

P: n/a
PenguinsAnonymous wrote:
Need to access a single text file for read
only where it resides using file().
To test the code I copied it local because
I got "permission denied" message where it
exists.


missing info:
php-4.2.2-17.2
httpd-2.0.40-21.3b
Linux nebula 2.4.20-8dcustom #5 Thu May 22 01:37:13 EDT 2003 ppc ppc ppc
GNU/Linux
Text file deep several directories in a /home/<user> dir.

Someone must know about security and permission problems ??
:)

-Walt
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 17 '05 #3

P: n/a
PenguinsAnonymous wrote:
PenguinsAnonymous wrote:
Need to access a single text file for read
only where it resides using file().
To test the code I copied it local because
I got "permission denied" message where it
exists.

missing info:
php-4.2.2-17.2
httpd-2.0.40-21.3b
Linux nebula 2.4.20-8dcustom #5 Thu May 22 01:37:13 EDT 2003 ppc ppc ppc
GNU/Linux
Text file deep several directories in a /home/<user> dir.


Make sure that the webserver can access this directory, and that it has
permissions to read the file.

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.