basic-php-07-modifyimage-rev02.php / php
<?php //connect to the database link) or die (mysql_error()); //make variables available _POST['id']; if (isset(bw = bw = ''; } _POST['action']; //**INSERT THE FOLLOWING LINE: if (isset(text = text = ''; } //**END OF INSERT //get info on the pic we want id'") or die(mysql_error()); getpic); extract(image_filename = "images/" . width, type, image_filename); image_filename"); if (image, IMG_FILTER_GRAYSCALE); } //**INSERT THE FOLLOWING LINES: if (image, 12, 0, 20, 20, 0, "arial.ttf", //**END OF INSERT if (action == "preview") { header("Content-type:image/jpeg"); imagejpeg(action == "save") { imagejpeg(image_filename); id . "&mode=change"; header(
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.