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()
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]
"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
have 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 tr
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:
>
When writing to a file several problems occur with this code:
However, this code works:
The problem with the first set of code is that it opens template.txt1, and
some letters that were in template.txt become a 1.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
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
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
When I run the code below it writes the image to the /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 "/images/image1.png". Why would one write
to the webroot and
12 matches
Mail list logo