Jump to content

why do i have error in php_gd2.dll ?


jd2007

Recommended Posts

ok...i coded this :

 

<?php
include("C:\AppServ\php5\ext\php_gd2.dll");
$im = @imagecreate(10, 2)
    or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5,  "A Simple Text String", $text_color);
imagepng($im);
?>  

 

the output is this :

Warning: Unexpected character in input: '' (ASCII=16) state=1 in C:\AppServ\php5\ext\php_gd2.dll on line 5132

 

Parse error: syntax error, unexpected ',' in C:\AppServ\php5\ext\php_gd2.dll on line 5132

 

if i dont include this:

include("C:\AppServ\php5\ext\php_gd2.dll");

 

the output is a blank page...why ? pls help...

Link to comment
https://forums.phpfreaks.com/topic/61481-why-do-i-have-error-in-php_gd2dll/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.