imagefilter($image, IMG_FILTER_GRAYSCALE); } if ($action == preview ) (Web hosting account) {

imagefilter($image, IMG_FILTER_GRAYSCALE); } if ($action == preview ) { header( Content-type:image/jpeg ); imagejpeg($image); } if ($action == save ) { imagejpeg($image, $image_filename); $url = location:showimage.php?id= . $id . &mode=change ; header($url); } ?> 3. Now, try this out. You don t need to upload another image, because you haven t changed anything in that step of the process. Go to http://localhost/showimage.php?id=1 (or whatever your specific URL is). You should see something similar to that in Figure 7-4. Figure 7-4 211 Manipulating and Creating Images with PHP
Check Tomcat Web Hosting services for best quality webspace to host your web application.

Leave a Reply