On Saturday 31 August 2002 02:16, Webmaster wrote:
> i write these files in a for-next loop, so at the start of each loop, i've
> to put an unmask command?
If the manual is correct then the answer in no. Once per page would be enough.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
i write these files in a for-next loop, so at the start of each loop, i've
to put an unmask command?
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 4:11 PM
Subject: Re:
Georgie Casey wrote:
>
> How do you write files so that theyre chmoded 777 by default. the folders
> theyre written to are 0777 but the files aren't. so i cant delete or modify
> the files through PHP, i have to first chmod them with FTP, which takes
> ages.
There are a number of things you may
On Friday 30 August 2002 20:53, Georgie Casey wrote:
> How do you write files so that theyre chmoded 777 by default. the folders
> theyre written to are 0777 but the files aren't. so i cant delete or modify
> the files through PHP, i have to first chmod them with FTP, which takes
> ages.
umask()
"John Holmes" <[EMAIL PROTECTED]> wrote in message
001701c20901$eecbb4e0$b402a8c0@mango">news:001701c20901$eecbb4e0$b402a8c0@mango...
> Does the file already exist? It's not enough to change the directory
> permissions, you also have to change it on the file if it exists, and
> all of the folder
Does the file already exist? It's not enough to change the directory
permissions, you also have to change it on the file if it exists, and
all of the folders above it, so that apache can get to the file. In
order for PHP to open or create this file, the user that apache runs as
must have permissio
On Monday 18 March 2002 00:46, Ben Waldher wrote:
> When writing to a file several problems occur with this code:
>
> $stuff = include ("news.txt");
> $file = fopen ("news.txt", "w");
> $newnews = include ("template.txt") . $stuff;
> fwrite ($file, $newnews);
> ?>
>
> However, this code works:
>
Try:
SITE CHMOD 666 filename
Also be sure that the file name in PHP matches the exact file name on
disk.
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
On Monday, February 25, 2002, at 12:36 AM, Sven Jacobs wrote:
> Hey
>
> How can I create files with php, I've tried
8 matches
Mail list logo