HOME       >>       Programming

Need Help - Cant Run Cgi On Trap17 Hosting need some help with using CGI on trap17 free hosting


** note: i did create this topic before, but under a stupid name, so i didnt get replies. Sorry about that :S **

Im new to perl and CGI
could someone tell me how to run CGI on Xisto free hosting.
I have created a programme which look like

print "<p>Hi</p>";

i tried saving it in notepad as "test.cgi"
but it saved as a text document, named "test.cgi"
I tried putting it in the "cgi-bin" area, on the free web hosting ftp.
but when i ran it, it said it couldnt find it.

could someone help me.

Also, how do you use the first line like:
#! usr/bin/perl


The first line #!/usr/bin/perl is for you to specify the path to the perl.

As for your cgi file. There are a few things you might want to check up.

1) Do you upload it in ascii format?
2) Did you change the permission to at least 755?
3) You might want to change the script to such

print "Content-type: text/html\n\n";

print "<p>Hello</p>";


Xisto.com offers Free Web Hosting to its Members for their participation in this Community. We moderate all content posted here but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2001-2019 by Xisto Corporation. All Rights Reserved.