Hey have i missed something here ?
I installed the mentioned realease of PHP but all calls to the GD library are not working.
Call to undefined function ImageCreate()
I get the comment above when trying to use the GD library ?
thanks
| SitePoint Sponsor |




Hey have i missed something here ?
I installed the mentioned realease of PHP but all calls to the GD library are not working.
Call to undefined function ImageCreate()
I get the comment above when trying to use the GD library ?
thanks
open your php.ini , and modify
toPHP Code:;extension=php_gd2.dll
then restart your web serverPHP Code:extension=php_gd2.dll
My website: http://www.openphp.cn




will try that cheers, did uncomment it but never restarted and tried. I will find out when i get home im sure now.
Cheers




Well restarted but still get error.
What an earth is up with the install. all was done auto by the installUnable to load dynamic library './php_gd2.dll' - The specified module could not be found.
Copy php_gd2.dll from your php/ext directory to your windows/system32 directory, restart apache again and it should work.




its IIS im running on.
And ive been sop dumb. I got the windows installer package of PHP. just this time gone to the site read description and it says no extensions included.
What do i do now ? how do i get them install them speratley ?




if i get the normal php, how do i configure every thing to work properly ? what needs doing ? any easy to understand manuals out there ?
I had this same problem just this week, although with php 4.3.9 on my local computer. I uncommented the extension=php_gd2.dll line in php.ini and then it gave me the 'Unable to load dynamic library' error. Turns out there wasn't even an extensions directory in the php directory. What I ended up doing was going to my older version of php and found the extensions directory there - just copied the php_gd2.dll file, created the extensions directory in c:\php and copied the file in the extensions directory. Everything worked fine there.
It was a little confusing because the GD website state any version of PHP over 4.3.x has inbuilt support for GD which isn't really true now the latest versions don't include any extensions.
Tips 'n' Tutorials
Free webmaster tools, code and resources on web design, HTML, Javascript and Internet marketing




Well seem to have manages in from fresh.
can some one just explain the difference between:
php-cgi.exe
php.exe
php-win.exe
Im sure the old version was pointed at php.exe but php 5 wouldnt work untill it was directed to php-cgi.
Thanks




I know and if you read further up you'll see I have said daft me for missing that and I got it working. Then the post above yours says I have php 5 working extensions also but I wondered in detail what the difference is between IIS running php.exe over php-cgi.exe for .php files. As PHP 4 auto configured it to run with php.exe but php 5 needs the cgi.exe to work properly.
Why would they alter ? Only want to understand what is going on ? learn as you go...
Honestly, wouldn't be able to tell you. I don't recommend running PHP as CGI under any circumstance. I simply use PHP.EXE on my Windows Machine and have both the ISAPI and Apache Module installed for the respective webservers.
The simple answer though is probably a compile switch. I am pretty sure if you rename PHP-CGI.EXE to PHP.EXE it will still work fine. But since PHP needs to run differently in CGI mode to handle the passing of files from the webserver, it is most likely compiled differently. Under 4.X, they probably did switched internally after compilation. This however would slow down the executable. By moving the switches to the compilation stage, you can get improved performance.




damn, that means I have to find a way to get it all working with php.exe rather than the cgi then.
Have tried a few times and the php pages just hang. You have me worried now.




O your right. renamed the php-cgi.php to php.exe and it works !
Is this is OK or is it making no difference and still running as CGI ? IIS is my server by the way
If your webserver is calling PHP.EXE then it is in CGI mode. To use PHP in ISAPI mode, it would call a DLL called phpXisapi.dll, where X is the major version of PHP you are using.
How to install the ISAPI module is described in the readme file that is distributed with PHP and in the Manual under Windows Installation. You can find the manual at www.php.net.
Why do you said :
Somebody said that install PHP as CGi is safer than as modules!Originally Posted by Hierophant
Bookmarks