$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