folder permissions
From: OllimaX (ollimantyranta_at_example.com)
Date: 01/23/04
- Next message: Alvaro G Vicario: "Re: Populating DHTML menu from MySQL"
- Previous message: Thomas: "Re: Looking for PHP/MySQL/HTML Guru As Partner"
- Next in thread: Amir Khawaja: "Re: folder permissions"
- Reply: Amir Khawaja: "Re: folder permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 23 Jan 2004 11:50:01 GMT
Hi!
My trouble might be simple, but I'm quite new to php, and, perhaps I'm even
more simple.
It's that I had to chmod 777 two folders to get my scripts do what I wanted
them to do, and I don't like it.
I have a script running on my ISP's unix-apache -server. It is to read
string from a form, and create a text-file in a subfolder 'txt' from it.
The essential parts of the script is here:
$fnam=$HTTP_POST_VARS[filename];
$handle =fopen("txt/".$fnam, "w");
$teksti=$HTTP_POST_VARS[tekstikentta];
touch('txt/'.$fnam);
fwrite($handle,$teksti);
fclose($handle);
Can't be simpler.
This script didn't work until I did a chmod777 for both folders, the one
where this script is, and the 't' subfolder. Is there a way to get around
this?
Oll¡maX!
-- email : ollimantyranta"boing"sunpoint"boing"net
- Next message: Alvaro G Vicario: "Re: Populating DHTML menu from MySQL"
- Previous message: Thomas: "Re: Looking for PHP/MySQL/HTML Guru As Partner"
- Next in thread: Amir Khawaja: "Re: folder permissions"
- Reply: Amir Khawaja: "Re: folder permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|