Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Perl On Server

by cwry (Monk)
on Jul 12, 2006 at 01:17 UTC ( [id://560586]=note: print w/replies, xml ) Need Help??


in reply to Perl On Server

Hi.

As you can see from the apache log error, "Bad header: Connect to masslottery_db...", it's clear that the apache server was expecting your Perl script to output a header. All CGI programs need to output a header such as "Content-type: text/html" followed by a blank line.

This can either be explicitly outputted like so:

print "Content-type: text/html\n\n";
Or using a module such as CGI.

Also, as seen from the log error of "Mal formed header from script. Bad header:connect to masslottery_db"., it's clear it was able to connect to the MySQL database, because you used a lowercase 'c' in "connect to masslottery_db successful" and an uppercase 'C' in "Connect to masslottery_db failed". :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://560586]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-19 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found