Re: [PHP] Can't use copy() to copy files

2008-10-14 Thread Jim Lucas
Ben Stones wrote: > Ok, here is my code (mind it is a bit messy I was just testing to see if it > works first of without success): > > if($_GET['act'] == "update") { > $check_exists=file_exists($_GET['file']); > if($check_exists==1) { >if(copy($_GET['file'],$_GET['file'])) { > echo 5;

[PHP] Can't use copy() to copy files

2008-10-14 Thread Ben Stones
Ok, here is my code (mind it is a bit messy I was just testing to see if it works first of without success): if($_GET['act'] == "update") { $check_exists=file_exists($_GET['file']); if($check_exists==1) { if(copy($_GET['file'],$_GET['file'])) { echo 5; } else { echo $_GET['fil