inferium Posted October 3, 2008 Share Posted October 3, 2008 Hey all, n00b to php here. I'm running a server on CentOS 5 (using Plesk v8.3), and I don't know how to tell if GD Library is installed. I know that it isn't working because of a script that is only having an issue with GDimage functions (it's been tested and works fine on other servers). Can somebody help me please? if not on here, my email is inferium@gmail.com Quote Link to comment Share on other sites More sharing options...
DarkWater Posted October 3, 2008 Share Posted October 3, 2008 Run this script: <?php if (function_exists('imagecreatefromstring')) { die('GD installed!'); } die('GD not installed....'); ?> Quote Link to comment Share on other sites More sharing options...
Barand Posted October 3, 2008 Share Posted October 3, 2008 or <?php phpinfo(); ?> will also tell you Quote Link to comment Share on other sites More sharing options...
inferium Posted October 3, 2008 Author Share Posted October 3, 2008 Thanks guys. I've been wondering (ultra-noob question) how exactly would I run these scripts? Quote Link to comment Share on other sites More sharing options...
Barand Posted October 3, 2008 Share Posted October 3, 2008 How do you run the script that's having an issue with GD? Quote Link to comment Share on other sites More sharing options...
inferium Posted October 3, 2008 Author Share Posted October 3, 2008 Nevermind, I was just being stupid for a second. I ran the scripts above and it says GD is enabled, but I am still having trouble running this script on my server though (it's been tested on other servers and works just fine) The script hosted on my server is located at http://1minloans.com/roman2/admin/form.php When I fill out the form, the only trouble I have is when I press the submit button the image upload gets an error. "Error: please fill in all fields" (name of image) I've uploaded a .rar of the script to the server at www.1minloans.com/carscript.rar Do you guys have any ideas? Thank you so much for your help! Quote Link to comment Share on other sites More sharing options...
DarkWater Posted October 3, 2008 Share Posted October 3, 2008 And why do you think that it's a GD problem? Quote Link to comment Share on other sites More sharing options...
inferium Posted October 3, 2008 Author Share Posted October 3, 2008 Because I'm a noob and the guy who helped me build it told me it was back when I had a problem with it on my local server (not the webserver I want to run the script on). However, I've lost all his contact info and don't remember who it was Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.