Tandem Posted October 23, 2006 Share Posted October 23, 2006 Hi, this is prbably a long shot, as i cannot really give a lot of information about this, as i don't really know what the problem is, so i apologize for that in advance.I've been using a captcha that i found on a tutorial site for a few months now and it's been working great. I can't seem to post the code for it however as everytime that i try, for some reason my session times out :SSo i woke up yesterday to find that my site wouldn't load at all, and an error claiming that mysql_connect was an undefined function, and apparently (according to a friend), it was due to a fedora update, and i had to install php-mysql. This fixed everything, but now all of a sudden my captha only appears as a red x.I'm pretty inclined to say that this is all connected. Can anyone suggest anything i can do to get this working again?Thanks in advance if anyone can help me. Link to comment https://forums.phpfreaks.com/topic/24852-captcha-probelm/ Share on other sites More sharing options...
obsidian Posted October 23, 2006 Share Posted October 23, 2006 Sounds to me like your include paths may have changed with the new install of PHP. Do you have error reporting turned on to assure that all your files are being included properly? Link to comment https://forums.phpfreaks.com/topic/24852-captcha-probelm/#findComment-113230 Share on other sites More sharing options...
Tandem Posted October 23, 2006 Author Share Posted October 23, 2006 I don't have error reporting on. i'm not sure how to put it on as i only have cli access to the server and i'm not too familiar with cli's.Not sure if it makes a difference, but it uses img tags to be called, like this <img src="captcha.php">. All my other included files work fine though. Link to comment https://forums.phpfreaks.com/topic/24852-captcha-probelm/#findComment-113238 Share on other sites More sharing options...
obsidian Posted October 23, 2006 Share Posted October 23, 2006 [quote author=Tandem link=topic=112446.msg456393#msg456393 date=1161620025]I don't have error reporting on. i'm not sure how to put it on as i only have cli access to the server and i'm not too familiar with cli's.Not sure if it makes a difference, but it uses img tags to be called, like this <img src="captcha.php">. All my other included files work fine though.[/quote]And, your "captcha.php" file is in the same directory, correct? It's going to be extremely difficult to help you debug without a little more info. If you hit your captcha.php page directly, do you get an image, or do you get a jpeg error of some sort? Link to comment https://forums.phpfreaks.com/topic/24852-captcha-probelm/#findComment-113240 Share on other sites More sharing options...
Tandem Posted October 23, 2006 Author Share Posted October 23, 2006 Yes, it's in the same directory. If i go directly to it, i get a red cross too. I'm trying to post my code but everytime i do i get "page cannot be displayed" and then a bunch of errors on reload.While i was googling random things about the subject, i noticed something about GD support. Perhaps maybe that is to do with it? Link to comment https://forums.phpfreaks.com/topic/24852-captcha-probelm/#findComment-113245 Share on other sites More sharing options...
obsidian Posted October 23, 2006 Share Posted October 23, 2006 If you reinstalled PHP and not GDLIb, yes, that definitely would cause a problem. Run a phpinfo() and see if GDLib is installed. Link to comment https://forums.phpfreaks.com/topic/24852-captcha-probelm/#findComment-113247 Share on other sites More sharing options...
Tandem Posted October 23, 2006 Author Share Posted October 23, 2006 I can't seem to find whether it is or not. my PHP info is here.http://217.174.251.128/php.phpalsohttp://217.174.251.128/captcha.txtis my captcha code. Link to comment https://forums.phpfreaks.com/topic/24852-captcha-probelm/#findComment-113250 Share on other sites More sharing options...
MCP Posted October 23, 2006 Share Posted October 23, 2006 Yep, you need to reconfigure with gd support. your config line has --without-gd Link to comment https://forums.phpfreaks.com/topic/24852-captcha-probelm/#findComment-113262 Share on other sites More sharing options...
obsidian Posted October 23, 2006 Share Posted October 23, 2006 Nope, you sure don't. If you have GD installed, you'll have an entire table with all the GD settings represented under the heading of, what else, [b]gd[/b]. You'll have settings like [i]GD Support - enabled[/i] and [i]GD Version - bundled (2.0.28 compatable)[/i] or such. Link to comment https://forums.phpfreaks.com/topic/24852-captcha-probelm/#findComment-113263 Share on other sites More sharing options...
Tandem Posted October 23, 2006 Author Share Posted October 23, 2006 Ok, how do i go about reconfiguring with gd support? Link to comment https://forums.phpfreaks.com/topic/24852-captcha-probelm/#findComment-113286 Share on other sites More sharing options...
Tandem Posted October 23, 2006 Author Share Posted October 23, 2006 Nvm, i googled it.Thanks for your replies! Link to comment https://forums.phpfreaks.com/topic/24852-captcha-probelm/#findComment-113292 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.