creating a file in a directory without everyone permissions
$File = sitemap.xml";
$Handle = fopen($File, 'w');
$Data="first line \n";
fwrite($Handle, $Data);
fclose($Handle);
the problem is it wont create the file unless the directory has everyone on write permissions
i dont want to put that permission in place mainly because this file needs to be created in the root of the website folder. how would i go about creating a file and putting it in the root of a website withouth changing the permissions. the php script that im using is also on the server under my admin tools.
thanks
-JLR
Re: creating a file in a directory without everyone permissions
You don't need to give everyone permission; you need to give the webserver permission. And there's absolutely no way around that.