TheQuestioner
Programmer
I'm having a problem trying to get the GD library to work with PHP on my local machine. I'm using Windows XP with PHP 4.3.2 and Apache 1.3.33.
I've look at the other threads and have tried their solutions, but it's still not working.
I've changed PHP.INI (which is in [blue][tt]C:\Program Files\Apache Group\Apache\bin[/tt][/blue]) so that: -
(This is where my PHP extensions are installed. I can see the [tt][blue]php_gd2.dll[/blue][/tt] file in here)
I've also uncommented the GD library extension entry
Yet when I run the [tt][blue]phpinfo()[/blue][/tt] function, there is no indication of the GD library.
I've also tried running a sample GD PHP script, which throws up an error.
It's obvious that the GD library has not been "attached" to my PHP. Has it got something to do with the way PHP reads file paths with spaces within filenames? Or is it to do with the double-quotes?
Lastly, I'm intending to create a website which has various galleries, which is why I need the GD library (to auto create thumbnails, etc). However, is it correct to assume that most PHP web hosts already have this library configured on their servers?
Thanks in advance.
I've look at the other threads and have tried their solutions, but it's still not working.
I've changed PHP.INI (which is in [blue][tt]C:\Program Files\Apache Group\Apache\bin[/tt][/blue]) so that: -
Code:
extension_dir = "C:\Program Files\Apache Group\PHP\extensions"
(This is where my PHP extensions are installed. I can see the [tt][blue]php_gd2.dll[/blue][/tt] file in here)
I've also uncommented the GD library extension entry
Code:
extension=php_gd2.dll
Yet when I run the [tt][blue]phpinfo()[/blue][/tt] function, there is no indication of the GD library.
I've also tried running a sample GD PHP script, which throws up an error.
Warning: Cannot modify header information - headers already sent by (output started at c:\program files\apache group\apache\htdocs\temp\gdsample.php:2) in c:\program files\apache group\apache\htdocs\temp\gdsample.php on line 3
Fatal error: Call to undefined function: imagecreate() in c:\program files\apache group\apache\htdocs\temp\gdsample.php on line 4
It's obvious that the GD library has not been "attached" to my PHP. Has it got something to do with the way PHP reads file paths with spaces within filenames? Or is it to do with the double-quotes?
Lastly, I'm intending to create a website which has various galleries, which is why I need the GD library (to auto create thumbnails, etc). However, is it correct to assume that most PHP web hosts already have this library configured on their servers?
Thanks in advance.