You are not logged in.

#1 2007-08-21 18:07:59

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

Does the PHP arch version include GD?

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

#2 2007-08-21 20:18:08

dninja
Member
From: Sheffield, UK
Registered: 2006-04-29
Posts: 374
Website

Re: Does the PHP arch version include GD?

Edit your /etc/php.ini and uncomment the line:

extension=gd.so

then restart apache

Offline

#3 2007-08-22 04:54:00

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

Re: Does the PHP arch version include GD?

well that solved one issue, can't beleive I forgot to uncomment it. Lmao, Used to hard to solve things I suppose.

Offline

Board footer

Powered by FluxBB