Advertisements
Offline
tutorialspoint
Site Admin
Posts: 143
Joined: Fri Apr 27, 2007 6:52 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.

»

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

Offline
Arjun
Posts: 5
Joined: Sat Jun 04, 2011 2:09 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

»

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

Offline
Gabrielle99
Posts: 3
Joined: Tue Feb 21, 2012 2:54 pm
Thanks for sharinf the post. I appreciate it!!

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

Offline
Alek
Posts: 1
Joined: Tue Mar 13, 2012 7:17 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.