Tyrone Mills wrote:
> I don't know if it's been mentioned or not, but I have found that unless the
> file exists, I can't open it. Have you verified that the file exists and the
> user that the script will run as has the appropriate permissions?
>
>
I think you are mistaken. According to the PHP manual page, with fopen the
option 'w' does the following:
"Open for writing only; place the file pointer at the beginning of the file and
truncate the file to zero length. If the file does not exist, attempt to create
it. "
In this case the line:
$fp = fopen("tmp/some.dat", "w"); // trying to open file in my
Would create the file if it did not exist, but you make a good point that
permissions need to be set. The directory would need to probably be world
writable (usually 755 or xrw-rw-rw).
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]