Hi,
Not sure what you're trying to do, but...
However you can chmod directly with the php just use chmod() function. Be sure to put the 0 infront of the 755 for example.
Like you need to do for 755 write 0755 Okay.
Examples:
chmod ("/somedir/somefile", 755); // decimal; probably incorrect
chmod ("/somedir/somefile", "u+rwx,go+rx"); // string; incorrect
chmod ("/somedir/somefile", 0755); // octal; correct value of mode
-Gord