Reply
PHP Upload Form Issue
Old 11-17-2007, 07:23 AM PHP Upload Form Issue
Ultra Talker

Posts: 296
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!
Tropica is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 11-17-2007, 02:16 PM Re: PHP Upload Form Issue
Extreme Talker

Posts: 249
Hi, I am posting here http://www.webmaster-talk.com/php-forum/109315-setting-max-height-image-resize-script.html one simple script for resizing (last post) and I think how it is easy to adding in your script.

Shivaji
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 11-17-2007, 02:26 PM Re: PHP Upload Form Issue
KkillgasmM's Avatar
Ultra Talker

Posts: 352
Name: El Phantasmo
Location: England, north west
wow I never noticed you entered a reply to my message! lol
__________________
http://www.inspindesign.co.uk
KkillgasmM is offline
Reply With Quote
View Public Profile
 
Old 11-18-2007, 03:54 AM Re: PHP Upload Form Issue
Extreme Talker

Posts: 249
Quote:
Originally Posted by KkillgasmM View Post
wow I never noticed you entered a reply to my message! lol
He, he, hope it's comming in right time.
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Reply     « Reply to PHP Upload Form Issue
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12629 seconds with 13 queries