|
Posted by J.O. Aho on 07/03/06 18:22
Ryan Ramsey wrote:
> I have a script that uses:
>
> $file= fopen("results.xml", "wb+");
>
> When the script originally runs, a file is created and written and it works
> fine.
>
> On subsequent runs, the script fails because the file is mysteriously
> read-only and can no longer be opened for writing, unless I manually delete
> the file.
>
> How can i create the file with a 0x600 perm on it?
>
> Im missing something basic, but can't put my finger on it.
>
> The back end server is Windows but the microsoft C-shell is telling me
> results.xml is 0x400 perm'd. (r-- --- ---)
You could try to use chmod()
http://www.php.net/manual/en/function.chmod.php
//Aho
Navigation:
[Reply to this message]
|