Afficher un message
Vieux 27/03/2005, 04h45   #1
ecropolan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Apache w/ Perl config problem?


Perhaps someone will understand what is happening here. I've been
trying
to configure perl and apache on a redhat8 server with virtual hosts.
Perl
works well on the system and is executing cgi-bin scripts as well, but
the
output HTML is not being rendered by the browser on my scripts. I know
you're thinking, you're not sending the headers dummy! But please just
take a look: http://www.realtordb.com/cgi-bin/hello2.pl . Most of the
scripts I'm working with are tested and tried but I get the same text
only
output for all of them. Any ideas, suggestions, answers would be so
greatly appreciated. Surely I'm not the only one out there who has had
this problem.

The script is your basic html output.
#!/usr/local/bin/perl
# hello.cgi - My first CGI program
print "Content-Type: text/html\n\n";
print "<html> <head>\n";
print "<title>Hello, world!</title>";
print "</head>\n";
print "<body>\n";
print "<h1>Hello, world!</h1>\n";
print "</body> </html>\n";

  Réponse avec citation
 
Page generated in 0,05330 seconds with 9 queries