I thought you wanted 644? the code i gave was to change the permisions to 644
for example:
chmod($WA_DFP_UploadStatus["WA_UploadResult3"]["serverDirectory"], 0644);
if you want to have a differant permision level, change the last perameter of the chmod command, if you want it to be 664, change 0644 to 0664:
chmod($WA_DFP_UploadStatus["WA_UploadResult3"]["serverDirectory"], 0664);


