Hi, 

I know that is old problem, but I could'n solved until
now. Sorry for any inconvenience. 

I've installed gd-2.0.1 (in /my/home) and php-4.2.3 
with the following options: 
./configure --with-mysql
--with-apache=../apache_1.3.26
--with-gd=/my/home/gd-2.0.1 --prefix=/my/home/local
--with-freetype-dir=/usr --enable-gd-native-ttf
--enable-gd-imgstrttf --with-jpeg-dir=/usr
--with-png-dir=/usr -with-zlib --enable-track-vars

The OS is Solaris 2.8. 

Everything went ok, but when I try to create "on fly"
a png image, it doesn't create a image on my web
browser. I don't see any errors in apache error_log. 

The source of the my script is:

<?php

 header ("Content-type: image/png");
 $im = imagecreate (50, 100) or die ("Cannot
Initialize new GD image stream");
 $background_color = imagecolorallocate ($im, 255,
255, 255);
 $text_color = imagecolorallocate ($im, 233, 14, 91);
 imagestring ($im, 1, 5, 5,  "A Simple Text String",  
 $text_color);
 imagepng ($im);

?> 


Any ideea where I should look for errors, etc? 


Thank you in advance,
Mihaela
 


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to