RE: [PHP] fopen() ??
| From: | Jay Blanchard | Date: | Wed, 10 Jul 2002 15:34:53 +0000 |
| Subject: | RE: [PHP] fopen() ?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106840@lists.php.net to get a copy of this message | ||
You need to have permission to write to the file. Might I also suggest that
you include the full path to the file.
-----Original Message-----
From: Scott Fletcher [mailto:scott@abcoa.com]
Sent: Wednesday, July 10, 2002 10:34 AM
To: php-general@lists.php.net
Subject: Re: [PHP] fopen() ??
That doesnt' work! Never mind! I'll manually create a blank file and put
it there!
"Scott Fletcher" <scott@abcoa.com> wrote in message
news:20020710151510.89444.qmail@pb1.pair.com...
> Thanks a million!!!
>
> "Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in message
> news:002401c22824$2b1e87b0$8102a8c0@niigziuo4ohhdt...
> > [snip]
> > Didn't I read the article somewhere on PHP.net that said that? Using
> > fopen() to open a file, does it attempt to create a file if the file
does
> > not exist? I use the fopen() and I get the error message. What is the
> > workaround to it?
> > [/snip]
> >
> > fopen("filename", "w+"); open the filename or create if it does not
exist.
> > http://www.php.net/manual/en/function.fopen.php
> >
> > HTH!
> >
> > Jay
> >
> >
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php