I get a "Operation not permitted" warning for the chmod() operation. But since you already write a warning in your script, the message should be hidden:
-------------------------8<-------------------------
Warning: chmod() [function.chmod]: Operation not permitted in /srv/www/htdocs/migrationtool/archivesetup.php on line 97
WARNING: ./scripts/archive.sh not chmoded!!
Please notify Jason Solis
------------------------->8-------------------------
And this patch hide the php warning:
-------------------------8<-------------------------
--- archivesetup.php.org Wed May 12 16:27:24 2004
+++ archivesetup.php Fri Nov 23 12:20:00 2007
@@ -94,7 +94,7 @@
fwrite($fp, "\n");
fclose($fp);
-if (!chmod($archivesh, 0755)) {
+if (!@chmod($archivesh, 0755)) {
print "\n\n<BR><BR>WARNING: $archivesh not chmoded!!<BR>";
print "<A HREF=\"mailto:jsolis@globalworks.com\">Please notify Jason Solis</A><BR><BR>\n\n";
}
------------------------->8-------------------------
Greetings,
Tim Gerundt
patch file