yeah thats how ive got it,
ill just show you abit more of my code:
variables passed
code.php?thumb=thumb.jpg&filename=userimages/picnik_exported_file123618638723548.jpg
so in the php im trying to crop the filename to just picnik_exported_file123618638723548
then add 3crop.jpg to the end of it
eg. 3picnikexportedfile123618638723548crop.jpg
but the image is save as 3crop.jpg
PHP Code:
$imagefilename = $_GET['filename']; $imagefilename = substr($imagefilename, 11, 35); $imagefilename = rtrim($imagefilename); $imagefilename = ereg_replace("[^A-Za-z0-9]", "", $imagefilename);
$imagefilename = '../userimages/3'.$imagefilename.'crop.jpg';
then further down im saving the image with:
PHP Code:
imagejpeg($dst_r, $imagefilename);
Last edited by grgprint; 03-05-2009 at 08:12 AM..
Reason: spelling mistake
|