I have a upload form I need for a backpanel, its should accept .jpg .jpeg .gif .bmp and .png files
When uploaded i need the script to change file to a .jpg and name it uploads/photo.jpg
The script presently does that
PHP Code:
<?php $target = "upload/"; $target = $target . basename( $_FILES['uploaded']['name']) ; $ok=1;
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], "upload/photo.jpg"))
{ echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; } else { echo "Sorry, there was a problem uploading your file."; } ?>
But.... I need the script to resize the newly named and converted image to a width of 136px
Is there an easy way of adding that to the present code?
Thanks all, much appreciated! 
|