using captcha by php?

using captcha by php?

Postby Dust » Wed Feb 18, 2009 6:35 pm

look at this:

http://www.webhostingtalk.com/showpost.php?p=4007749postcount=4



How to handle errors?

Dust
 
Posts: 1
Joined: Wed Feb 18, 2009 6:35 pm

using captcha by php?

Postby JohnA » Thu Feb 19, 2009 6:35 pm

The required file script.php attempts to start a session. Unfortuntely, once the file Text Document.php has been started, the headers have already been sent before you require the script.php file.

To fix, take out the start_session() line in script.php and start your Text Document file with ?PHP start_session(); ?

That should fix the error you're getting regarding the session.

As for the imagecreate error... that may or may not be caused by the session error. If it isn't resolved... you may not have GD support for PHP configured for your installation of PHP. I'd need to see the php_info for your server to tell you whether you do or not.
JohnA
 
Posts: 1
Joined: Thu Feb 19, 2009 6:35 pm


Return to Dedicated Hosting

Who is online

Users browsing this forum: No registered users and 1 guest

cron