note 109471 rejected from function.imagepng by yannick

From: Date: Fri, 20 Jul 2012 13:59:54 +0000
Subject: note 109471 rejected from function.imagepng by yannick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189317@lists.php.net to get a copy of this message
Note Submitter: firemann404 at gmail dot com ---- Is there a way to make the url like: image.php?variable=person.png rather than image.php?variable=person My code is like this: [code=php] if($_GET['playerName']) { $query = mysql_query("SELECT * FROM skills WHERE playerName = '".addslashes($_GET['playerName'])."' LIMIT 1") or die(mysql_error()); $row = mysql_fetch_array($query); $playerName = ucwords($row['playerName']); $im = imagecreatefrompng("../img/signature.png"); //header("Content-type: image/png"); imagealphablending($im, true); imagesavealpha($im, true); Imagepng($im, "$playerName.png"); ImageDestroy($im); echo'<center><img src="http://sage-scape.com/hiscores/sigs/'.$playerName.'.png" /></center>'; } [/code] I made this save the file as png, but I want the png to automatically update, so I would like to know how to make it so it doesn't have to save and you can just have the image in your signature and it auto updates.

« previous php.notes (#189317) next »