ThePsion5 Posted June 19, 2006 Share Posted June 19, 2006 Hi guys,I'd like to use the GD extension for several PHP applications, but the problem is that these applications need to run on different servers running both php 4.3 and 5.x - the documentation for GD confused me a bit, but my interpretation is that the GD library is not installed by default with php 5.x and anything greater than PHP 4.3 - is this actually the case?Also, is there any way to run the GD library during execution? My basic question is, i suppose, can I use the GD library without needing to reconfigure/reinstall PHP if it's not already included? Thanks in advance! Link to comment Share on other sites More sharing options...
justsomeguy Posted June 19, 2006 Share Posted June 19, 2006 It looks like GD should be included:Since PHP 4.3 there is a bundled version of the GD lib. This bundled version has some additional features like alpha blending, and should be used in preference to the external library since its codebase is better maintained and more stable.Have you tried to use it and are not able to? I don't think there's a way to enable a library during runtime. Link to comment Share on other sites More sharing options...
ThePsion5 Posted June 19, 2006 Author Share Posted June 19, 2006 Well, I've tried determining if it's installed by calling the gd_info() function, but recieved an error saying the function didn't exist, which seems like a pretty clear sign that it's not installed, lol - thus the confusion. I got the impression that it should have been enabled as well. I installed PHP as a module, not as a CGI or as part of a package. I wonder if that has anything to do with it? Link to comment Share on other sites More sharing options...
justsomeguy Posted June 19, 2006 Share Posted June 19, 2006 If you are testing on a machine where you installed PHP with the Windows installer instead of the manual zip file, the installer doesn't include any extensions. Link to comment Share on other sites More sharing options...
ThePsion5 Posted June 19, 2006 Author Share Posted June 19, 2006 No, I installed via the manual ZIP file...perhaps It's an extension I need to turn on in my php.ini file? Link to comment Share on other sites More sharing options...
justsomeguy Posted June 19, 2006 Share Posted June 19, 2006 I think all of the extensions are off by default, once you get PHP working you can start enabling the extensions you need. So that would be a good place to start. Link to comment Share on other sites More sharing options...
ThePsion5 Posted June 19, 2006 Author Share Posted June 19, 2006 This does solve one problem...However, I wonder if there's a way to enable a PHP extension via a script, as I would like this PHP code to be able to function on servers i may not have administrative priviledges on... Link to comment Share on other sites More sharing options...
justsomeguy Posted June 19, 2006 Share Posted June 19, 2006 To my knowledge you can't do that. However, most servers I've seen do have support for images. But you just may have to set the image support as a requirement for your application, depending how important it is. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now