Please answer this simple SPAM challenge: min(seven, zero)?
(Example: nine)

The Note You're Voting On

shubhamtakode at gmail dot com
3 years ago
// code for handling simple http uploads

//properties of the uploaded file
$name= $_FILES["myfile"]["name"];
$type= $_FILES["myfile"]["type"];
$size= $_FILES["myfile"]["size"];
$temp= $_FILES["myfile"]["temp_name"];
$error= $_FILES["myfile"]["error"];

if (
$error > 0)
    die("Error uploading file! code $error.");
    if($type=="image/png" || $size > 2000000)//condition for the file
    die("Format  not allowed or file size too big!");
     move_uploaded_file($temp, "uploaded/" .$name);
     echo "Upload complete!";


<< Back to user notes page

To Top