[PHP] Writing Files

2002-08-30 Thread Georgie Casey
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. -- Regards, Georgie Casey [EMAIL PROTECTED]

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

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 find

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: [PHP] Writing Files On Friday

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 (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 folders

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

2002-05-31 Thread John Holmes
permission to the folder and file. ---John Holmes... -Original Message- From: Jason Teagle [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 4:35 PM To: [EMAIL PROTECTED] Subject: [PHP] Writing Files (Unix, Apache, PHP 4.0.X) [Newbie Alert] I'm trying to open a file for writing using

[PHP] Writing files a problem

2002-03-17 Thread Ben Waldher
When writing to a file several problems occur with this code: ?php $stuff = include (news.txt); $file = fopen (news.txt, w); $newnews = include (template.txt) . $stuff; fwrite ($file, $newnews); ? However, this code works: ?php $file = fopen(template.txt, w); fwrite ($file, $temp); fclose

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: ?php $stuff = include (news.txt); $file = fopen (news.txt, w); $newnews = include (template.txt) . $stuff; fwrite ($file, $newnews); ? However, this code works: ?php $file

[PHP] writing files with php

2002-02-25 Thread Sven Jacobs
Hey How can I create files with php, I've tried somethings but php always tells me that I don't have access. But the Directory has 777 access and the owner is my webserver. Can somebody help me :-) I need this for to create logfiles Greetings Sven

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

[PHP] writing files

2001-09-25 Thread Scarbrough, Jeb (ISS Atlanta)
When I run the code below it writes the image to the webroot/images directory on a Solaris machine running iPlanet and php4.04pl1. When I run the exactly same code on a Solaris machine running iPlanet and php4.08 it tries to write the file to root/images/image1.png. Why would one write to the