You are not logged in.
I am trying to mess with GD on a lighttpd server I am hosting, however it doesn't output the image, just the link in the adress bar and no image what so ever. I've tried my own code, and different examples. They all just output the link in the address bar. For example, this is he code I am using:
<?php
header("Content-type: image/png");
$string = $_GET['text'];
$im = imagecreatefrompng("http://linuxftw.kicks-ass.net/images/pnc.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
?>
And if you go to this link, you'll see what I mean:
http://linuxftw.kicks-ass.net/image.php?text=bob
Is there maybe a certain module I have to enable with lighttpd?
Offline
Edit your /etc/php.ini and uncomment the line:
extension=gd.so
then restart apache
Offline
well that solved one issue, can't beleive I forgot to uncomment it. Lmao, Used to hard to solve things I suppose.
Offline