Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

reaction

CGI-SCRIPT Debugging

This topic is 5541 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I''m having trouble with this script file... it''s a mailing list generator. The log file says ''premature end of script headers'' I''ve checked everything as much as I know. The rights are as follows... everything 775 except the list text file (asnl.txt) that is 770 (to prevent public access) I''ve uploaded as Binary and ASCII. I''ve checked the print statements for incorrect content type... it doesn''t include any html print statements, so I don''t think it''s that! The script is here If anyone could fix it, I would be very grateful. Thanks, R
ToDoList | Wayout | ManillaPush | SendToSync

Share this post


Link to post
Share on other sites
Advertisement
I had problems opening your ZIP file, but Premature end of headers usually means that you didn''t do your HTTP headers properly.

The basics are:

Content-type: text/html\n\n

Make sure there is nothing wrong before that header is done.

I think if you try to run CGI outside their permitted directories, you can also get that error. Make sure you''re running your CGI from your cgi-bin directory. What that is depends on your distribution and Apache install.

I don''t do a ton of CGI programming, so others might have better info.

Share this post


Link to post
Share on other sites
I think I ought to mention... the script is an only slightly modified version of ''Subscribe'' from ''PerlfectSolutions''

http://perlfect.com/freescripts/subscribe/

R

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!