|
If I understand you correctly. Are you trying to change the original image name into something else... If so..
You will have to change it before you convert it into a thumbnail.
To do this I would use the explode() function to break appart $_FILES['image']['name'];
example
$_POST['name'] = 'myimage';
$_FILES['image']['name'] = 'imagename.jpg';
$x = explode(".", $_FILES['image']['name']); // It breaks appart name and converts to an array
$x[0] //imagename
$x[1] //jpg
$newname = $_POST['name'] "." $x[1]; //myimage.jpg
$_FILES['image']['name'] = $newname;
Then perform the rest of your code...
__________________
Please login or register to view this content. Registration is FREE - Need a place to post an ad?
Please login or register to view this content. Registration is FREE - make money off you designs! Logos, web templates and more!
|