PHP will not allow me to create new files that are unlocked?!
- From: "monomaniac" <marcrice20@xxxxxxx>
- Date: 11 Sep 2005 14:45:46 -0700
Hi everyone
i'm trying to setup my website to create new webpages dynamically using
php but I am having a major problem in that whenever i create a file it
is always created locked so that it can only be read even when i
specify read and write access.
Here is a basic example of the code I am using (I am using a Mac OSX
10.3.9):
<?php
$filename = '/Users/myusername/sites/mysitefolder/newfile.php';
$mytext = 'my text';
fopen($filename, 'w+');
fwrite($filename, $mytext);
fclose($filename);
?>
When i run this program all it does is create a blank file with
read-only access. My question is does anyone know what is causing might
be causing this? Can anyone suggest possible solutions? I have made
sure that all the subfolders allow read write access to all and still
no luck.
.
- Follow-Ups:
- Re: PHP will not allow me to create new files that are unlocked?!
- From: Mike Gatny
- Re: PHP will not allow me to create new files that are unlocked?!
- Prev by Date: Re: Help with file permission?
- Next by Date: Re: Help with file permission?
- Previous by thread: Help with file permission?
- Next by thread: Re: PHP will not allow me to create new files that are unlocked?!
- Index(es):
Relevant Pages
|