Canadian Webhosting Forums Forum Index Canadian Webhosting Forums
Discussion Forums
 
 FAQFAQ   SearchSearch      RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

cgi scripts

 
Post new topic   Reply to topic    Canadian Webhosting Forums Forum Index -> General Help
Author Message
Schwieg



Joined: 18 Nov 2007
Posts: 3

PostPosted: Mon Nov 19, 2007 1:07 pm    Post subject: cgi scripts Reply with quote

I'm having all sorts of problems getting my cgi scripts to work. I've checked my permissions and read hundreds of articles. I'm overlooking something simple in the code i'm sure. If someone could post an example of a very basic script that'll work on this server it would be much appreciated. Thank you.
Back to top
divya
CWH Staff


Joined: 24 Jul 2007
Posts: 46

PostPosted: Wed Nov 21, 2007 1:00 am    Post subject: Reply with quote

Hello,

A very basic script is added below:
Code:
Quote:
#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
print "<H1>Hello World</H1>\n";


save it in a file called hello.cgi. And the script should be having permissions 755 and in the ownership of user.

Regards,
Divya
CWH Support.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Canadian Webhosting Forums Forum Index -> General Help All times are GMT - 8 Hours
Page 1 of 1

 


Hosting Plans :: Flash Tutorials :: Contact Us :: Privacy Policy


Powered by phpBB, MySQL and PHP