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 useful to read about in PHP:

chmod
chown
umask

Also you might want to look into the sticky bit for directories. Someone
feel like adding more about sticky bits... I'm pretty vague on them, just
know when they're set (and I don't remember how to) that files written
to the directory inherit group ownership.

Cheers,
Rob.
-- 
.-----------------.
| Robert Cummings |
:-----------------`----------------------------.
| Webdeployer - Chief PHP and Java Programmer  |
:----------------------------------------------:
| Mail  : mailto:[EMAIL PROTECTED] |
| Phone : (613) 731-4046 x.109                 |
:----------------------------------------------:
| Website : http://www.webmotion.com           |
| Fax     : (613) 260-9545                     |
`----------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to