Re: PHP Warning: Failed to open stream: Permission Denied

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Wed, May 7, 2008 at 9:47 AM, Tim Evans <tkevans@xxxxxxxxxxx> wrote:

Matthew Benjamin wrote:

> $myFile = "./text.txt";

I would suggest a full path here instead of a relative one, to a directory
you know is writable by the apache user.
--
Tim Evans, TKEvans.com, Inc.    |   5 Chestnut Court
UNIX System Admin Consulting    |   Owings Mills, MD 21117
http://www.tkevans.com/         |   443-394-3864
http://www.come-here.com/News/  |   tkevans@xxxxxxxxxxx


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

That did not work. Here is an example of my directory structure

drwxrwxrwx  2 apache   apache   4096 May  7 09:50 .
drwxr-xrwx   5 apache   apache   4096 May  6 10:40 ..
-rwx-w--w-    1 apache   apache    947 May  7 09:50  text.txt

pwd:
/var/www/html/dir1/dir2/test.txt

--
mB.
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux