I have a news script that needs to have chmod(0777); done to it, however the schools server is IIS and doesn't allow ftp connections can i do it via this or does each command need to be in the file that needs to be chmod'ed
<?php
chmod("/news/index.php", 0777);
chmod("/news/data/cat.num.php", 0777);
chmod("/news/data/category.db.php", 0777);
chmod("/news/data/comments.php", 0777);
chmod("/news/data/config.php", 0777);
chmod("/news/default.tpl", 0777);
chmod("/news/data/emoticons", 0777);
chmod("/news/data/flood.db.php", 0777);
chmod("/news/data/Headlines.tpl", 0777);
chmod("/news/data/ipban.db.php", 0777);
chmod("/news/data/news.txt", 0777);
chmod("/news/data/users.db.php", 0777);
?>