al3x8730 Posted September 16, 2008 Share Posted September 16, 2008 I'm using an auto generated image using: And when I try to attach an image like that to a forum signature it says that it can't determine the size of the image thus it can not add it to the signature. How would I make it define it for the browser? <?php error_reporting(E_ALL); include "header.php"; $nameSearch = mysql_real_escape_string($_REQUEST['name']); $sql = "SELECT * FROM users WHERE Name='{$nameSearch}'"; $result = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_assoc($result); $id = $row['ID']; $name = $row['Name']; $title = $row['Title']; $level = $row['Level']; $experience = $row['Experience']; $gender = $row['Gender']; $tnl = floor((133.1*pow($level+1,3))-$experience); $info = $name.' '.$title.' '.$experience.' '.$gender.' '.$tnl; $im = imagecreate(250, 30); $bg = imagecolorallocate($im, 0, 0, 0); $textcolor = imagecolorallocate($im, 0, 0, 255); // Write the string at the top left imagestring($im, 5, 8, 5, $info, $textcolor); // Output the image header('Content-type: image/png'); imagepng($im); imagedestroy($im); ?> Link to comment https://forums.phpfreaks.com/topic/124416-defining-the-image-size-for-browser/ Share on other sites More sharing options...
genericnumber1 Posted September 16, 2008 Share Posted September 16, 2008 How are you "attaching it to a forum signature"? just a regular html img tag linking to your website? Link to comment https://forums.phpfreaks.com/topic/124416-defining-the-image-size-for-browser/#findComment-642529 Share on other sites More sharing options...
al3x8730 Posted September 16, 2008 Author Share Posted September 16, 2008 How are you "attaching it to a forum signature"? just a regular html img tag linking to your website? [/img] Link to comment https://forums.phpfreaks.com/topic/124416-defining-the-image-size-for-browser/#findComment-642697 Share on other sites More sharing options...
Garethp Posted September 16, 2008 Share Posted September 16, 2008 Sorry to hijack, but the buyer never answered my PM and I don't know if he got it The paypal payment never went through, did you get the address right? Link to comment https://forums.phpfreaks.com/topic/124416-defining-the-image-size-for-browser/#findComment-642702 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.