Hi,
I'm having some trouble with the copy() function.
I got the one out of the manual:
if (!copy($file, $file.'.bak')) {
print ("failed to copy $file...
\n");
}
and I changed it to this:
<?
$file = test.'.txt';
mkdir ("d:/inetpub/wwwroot/blah", 0700);
if (!copy($file, blah/$file)) {
print ("failed to copy $file...
\n");
}
?>
But for some reason it doesn't work. I think it's either to do with the way i've set $file or the blah/$file part, i'm just not sure how to fix them.
If anyone could help it'd be great, thanks 🙂
Andrew