PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Jul 22, 2019 8:25 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu May 15, 2008 2:04 pm 
Offline
Forum Newbie

Joined: Thu May 15, 2008 10:01 am
Posts: 11
hi my friend :)
I 'm a beginner in php and have some problems with it,could any body help me please:
1-I want to use gd library in my php program using xampp and phpDesigner2007 in windows
but the it doset work and the picture do not shown.(the php_gd2.dll is active in php.ini
and the extension_dir is correct)
i use some codes like this:
$height=200;
$width=200;
$im=imagecolorallocate($width,$height);
$white=imagecolorallocate($im,255,255,255);
$blue=imagecolorallocate($im,0,0,255);
imagefill($im,0,0,blue);
header('content-type:image/png');
ImagePng($im);
ImagePng($im);
Imagedestroy($im);

2- it dosent support ttf
3- when i replace new php_gd2.dll in programfiles\xampp\php\extensions phpDesigner is
destroyed and i have to reinstall it.
Regards


Top
 Profile  
 
PostPosted: Thu May 15, 2008 3:29 pm 
Offline
Jedi Mod
User avatar

Joined: Tue Dec 21, 2004 6:03 pm
Posts: 5263
Location: usrlab.com
Well, from part 1 of your question you appear to be missing any image creation function (imagecreate(), imagecreatetruecolor() etc) so that's not going to work. The next two are a little odd ... I use XAMPP and I know for a fact it works with GD coding. I'm using it for that right now. It's compiled with freetype so TTF fonts do work. You don't need to replace php_gd2.dll. In fact, I imagine doing that is what's breaking your IDE. PHP and the DLL are related and don't like it when you try to swap either one out without recompiling.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group