|
-
Jan 25th, 2006, 01:31 PM
#1
Thread Starter
Addicted Member
Image function
I want to generat my secure code image myself.
In my code
$image=imagecreatetruecolor($x, $y);
imagecreatetruecolor is returning
Fatal error: Call to undefined function: imagecreatetruecolor()
Thank You.
-
Jan 25th, 2006, 03:00 PM
#2
Re: Image function
 Originally Posted by slice
I want to generat my secure code image myself.
In my code
$image=imagecreatetruecolor($x, $y);
imagecreatetruecolor is returning
Fatal error: Call to undefined function: imagecreatetruecolor()
Thank You.
Create a file with:
PHP Code:
<?php
phpinfo();
?>
as its contents, view the page. And check to see if GD is enabled, if not then you'll need to get your host to enable / upgrade it in otder for that woo work Also, check you have the correct PHP version 
Cheers,
Ryan Jones
-
Jan 26th, 2006, 01:56 AM
#3
Thread Starter
Addicted Member
Re: Image function
I am currently testing on my own pc.So i have to enable it myself. 
How to enable it ?
Thank You.
-
Jan 26th, 2006, 03:20 AM
#4
Member
Re: Image function
 Originally Posted by slice
I am currently testing on my own pc.So i have to enable it myself. 
How to enable it ?
Thank You.
This shuold get you started:
http://www.boutell.com/gd/
_
-
Jan 26th, 2006, 10:35 AM
#5
Thread Starter
Addicted Member
Re: Image function
There are not clear instructions available for installing gd.
-
Jan 26th, 2006, 01:19 PM
#6
Hyperactive Member
Without balance, there could only be chaos.
Without chaos, there could be no balance.
I live with karma. Eat with destiny. Dream of life without shackles....
Yet. If life had no consequences, life could not exist, nor could it flourish.
If at first you dont succeed.You're screwed.
C++/Java NOOB.
I aint a professional at PHP, but if i can help i will.
-
Jan 26th, 2006, 04:51 PM
#7
Re: Image function
 Originally Posted by http://uk2.php.net/image
Installation
To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. GD library requires libpng and libjpeg to compile.
In Windows, you'll include the GD2 DLL php_gd2.dll as an extension in php.ini. The GD1 DLL php_gd.dll was removed in PHP 4.3.2. Also note that the preferred truecolor image functions, such as imagecreatetruecolor(), require GD2.
Not sure it could be any clearer.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|