Re: [PHP] Writing Files

2002-08-30 Thread Jason Wong
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

Re: [PHP] Writing Files

2002-08-30 Thread Webmaster
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:

Re: [PHP] Writing Files

2002-08-30 Thread Robert Cummings
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

Re: [PHP] Writing Files

2002-08-30 Thread Jason Wong
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()

Re: [PHP] Writing Files (Unix, Apache, PHP 4.0.X) [Newbie Alert]

2002-06-01 Thread Jason Teagle
"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

RE: [PHP] Writing Files (Unix, Apache, PHP 4.0.X) [Newbie Alert]

2002-05-31 Thread John Holmes
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

Re: [PHP] Writing files a problem

2002-03-17 Thread Jason Wong
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: >

Re: [PHP] writing files with php

2002-02-25 Thread Steven Walker
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