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 [email protected] Link to comment https://forums.phpfreaks.com/topic/126945-solved-help-with-gd/ 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....'); ?> Link to comment https://forums.phpfreaks.com/topic/126945-solved-help-with-gd/#findComment-656664 Share on other sites More sharing options...
Barand Posted October 3, 2008 Share Posted October 3, 2008 or <?php phpinfo(); ?> will also tell you Link to comment https://forums.phpfreaks.com/topic/126945-solved-help-with-gd/#findComment-656667 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? Link to comment https://forums.phpfreaks.com/topic/126945-solved-help-with-gd/#findComment-656669 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? Link to comment https://forums.phpfreaks.com/topic/126945-solved-help-with-gd/#findComment-656674 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! Link to comment https://forums.phpfreaks.com/topic/126945-solved-help-with-gd/#findComment-656677 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? Link to comment https://forums.phpfreaks.com/topic/126945-solved-help-with-gd/#findComment-656678 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 Link to comment https://forums.phpfreaks.com/topic/126945-solved-help-with-gd/#findComment-656682 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.