|
-
Mar 5th, 2007, 04:09 PM
#1
Thread Starter
Addicted Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|