- chmod: documentation ( source)
- is_writable: documentation ( source)
<?php
echo "Hello, World!";
$filename = "http://pureayre.com/images";
chmod($filename, 0777);
if (is_writable($filename)) {
echo 'The file is writable';
} else {
echo 'The file is not writable';
}