You are here: Re: Fopen and file permissions « All PHP « IT news, forums, messages
Re: Fopen and file permissions

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация