I am very bothered with the copy()
The following code runs fine in my apache server but it's fail for my web provider.
if($_GET == null){
echo "<form action=upload2.php?send method=POST><input type=file name=pendFile><input type=submit></form>";
}else{
$file = $_POST["pendFile"];
if (copy($file, "a.jpg")){
echo $file." Upload Success";
}else{
echo $file." Upload Fail";
}
}
I checked the phpInfo(), both server are using PHP Version 4.3.10 with file_uploads=On. And display_errors is off for my web provider server.
What can I do in order to find out the problem 🙁
Any idea would be very appreciated ~!!!!!!!!!