Do you have any problem related to CGI ?

Discussion on PERL and CGI concepts
no avatar
tutorialspoint
Site Admin
 
Posts: 144
Joined: Fri Apr 27, 2007 6:52 pm

Do you have any problem related to CGI ?

by tutorialspoint » Fri Aug 24, 2007 5:18 pm

Hi Friends!

Please post your problems related to CGI and I will answer them.....


Thanks
Moderator, TP
Keep visiting and share this site with your friends.

no avatar
Arjun
 
Posts: 5
Joined: Sat Jun 04, 2011 2:09 pm

»

by Arjun » Sat Jun 04, 2011 3:08 pm

i have problem in running CGI programs

when i try to run cgi program with the command
perl hello.cgi


say the program is :
#!/usr/bin/perl

print "Content-type:text/html\r\n\r\n";
print '<html>';
print '<head>';
print '<title>Hello Word - First CGI Program</title>';
print '</head>';
print '<body>';
print '<h2>Hello Word! This is my first CGI program</h2>';
print '</body>';
print '</html>';

1;


it prints the program as it is in windows as well as in Linux

The same problem i am facing with python CGI
Need help, how to execute the perl as well as python CGI script so that is gets executed as in browser

Thanks

no avatar
Gabrielle99
 
Posts: 3
Joined: Tue Feb 21, 2012 2:54 pm

»

by Gabrielle99 » Mon Mar 12, 2012 7:26 pm

Thanks for sharinf the post. I appreciate it!!

no avatar
Alek
 
Posts: 1
Joined: Tue Mar 13, 2012 7:17 pm

by Alek » Tue Mar 13, 2012 7:25 pm

Recently i have encountered the CGI script in unrecognized directory problem. It seems to me i have put invalid extensions. Are there any file extensions there apart from .pl or .cgi.?

Thanks,
Regards.

Return to PERL and CGI