PHP Warning: Failed to open stream: Permission Denied

Matthew Benjamin msbenjamin12 at gmail.com
Wed May 7 22:45:01 UTC 2008


On Wed, May 7, 2008 at 2:52 PM, Patrick O'Callaghan <pocallaghan at gmail.com>
wrote:

>  On Wed, 2008-05-07 at 09:57 -0500, Matthew Benjamin wrote:
> >
> >
> > On Wed, May 7, 2008 at 9:47 AM, Tim Evans <tkevans at tkevans.com> 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 at tkevans.com
> >
> >
> >         --
> >         fedora-list mailing list
> >         fedora-list at redhat.com
> >         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
>
> If this is a direct cut-and-paste from your terminal, it looks from here
> like text.txt has an extra space before it, i.e. it's " text.txt". Of
> course that may be an artefact.
>
> poc
>
> --
>  fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>


it's not just a mistake. I can write and read to the file if it is already
created. I just can't create the file if it does not exist.

-- 
mB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080507/e478195c/attachment-0001.htm>


More information about the fedora-list mailing list