I want a simple php script that allows me to upload any picture. The script will then rename the file that I am uploading to picture.jpg and store it in the same folder as the script. This is what I have so far:
$userfile_name="picture.jpg";
if($userfile) {
copy($userfile, "$userfile_name"); echo "Successfully Added!\n";
//$userfile : contains the name of TMP file, $usrfile_name : it's the real name of file
It is having trouble with like 3. Can someone help me plz?