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]
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()
--
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
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
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
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
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
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
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
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
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
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
12 matches
Mail list logo