Setting file permissions with PHP
Posted: Tue Nov 02, 2004 8:18 am
Hi,
long time ago I posted a question about creating a CMS which would write standard .htm files to the server so negating the need for long ?url variables which Google doesn't like! Anyhoo, having created a system which does all of this, I was wondering is there a way to set file permissions on multiple files on the server. I know that I can use CHMOD with php, but the script examples on php.net just show setting an individual file. Is there a way of using wildcards e.g. *.htm etc?
cheers,
Mike
long time ago I posted a question about creating a CMS which would write standard .htm files to the server so negating the need for long ?url variables which Google doesn't like! Anyhoo, having created a system which does all of this, I was wondering is there a way to set file permissions on multiple files on the server. I know that I can use CHMOD with php, but the script examples on php.net just show setting an individual file. Is there a way of using wildcards e.g. *.htm etc?
cheers,
Mike