OK. I want to use the = $_GET function to get the location of an image but cannot seem to get it to work. I have tried this but get an error. Is there a better way to do this?:
| Code: |
| <?php
error_reporting(E_ALL); #header("Content-type: image/png"); header("Content-type: text/plain"); $image = @$_GET_['text']; $img_bg_loc = 'http://www.dougie.frih.net/images/hpmembersig.PNG'; if(@$_GET['image']) { $image = $_GET['image']; list($x, $y, $maxwidth) = array(0, 0, 0); $fontsize = 18; if(@$_GET['fontsize']) { $fontsize = $_GET['fontsize']; } $font = 'Halo.ttf'; $text = @$_GET['text']; $image = @$_GET_['image']; $im = imagecreatefrompng($image); $yellow = imagecolorallocate($im, 0, 0, 0); $image = @$_GET_['image']; $img_w = imagesx($im); $px = ($img_w - 7.5 * strlen($text)) / 2; $white = imagecolorallocate($im, 255, 255, 255); $black = imagecolorallocate($im, 0, 0, 0); imagefttext($img_bg_loc, $fontsize, 0, $x, $y,, $yellow, $font, $text); imagepng($im); imagedestroy($im); ?> |
