note 109471 added to function.imagepng

From: Date: Fri, 20 Jul 2012 04:01:03 +0000
Subject: note 109471 added to function.imagepng
Groups: php.notes 
Request: Send a blank email to php-notes+get-189306@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 71.65.115.56 ---- Manual Page -- http://www.php.net/manual/en/function.imagepng.php Edit -- https://master.php.net/note/edit/109471 Del: integrated -- https://master.php.net/note/delete/109471/integrated Del: useless -- https://master.php.net/note/delete/109471/useless Del: bad code -- https://master.php.net/note/delete/109471/bad+code Del: spam -- https://master.php.net/note/delete/109471/spam Del: non-english -- https://master.php.net/note/delete/109471/non-english Del: in docs -- https://master.php.net/note/delete/109471/in+docs Del: other reasons-- https://master.php.net/note/delete/109471 Reject -- https://master.php.net/note/reject/109471 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#189306) next »