I am trying to generate a directory
and copy a file to it when a user clicks a button.
I get safemode restriction.
I got shared hosting. Is there anyway around this?
if (!file_exists($diris)){
mkdir ($diris, 0777);
chmod($diris, 0777);
}
if (!copy("profiles/copy.php", $diris."index.php")) {
echo "failed to copy $file...\n";
}