- Impact
- 0
#!/usr/bin/perl -s
#!/usr/bin/perl is known as the perl shebang. It is put at the top of a perl script, and it tells the web server (like Apache) where to find the perl executable. This way it knows how to run the code following the shebang.Mark said:Ughmm , Not quite sure what he means.
Perl and CGI are more or less the same Language (As far as the scripting goes).
If he wants to use a Script.cgi -or- Script.pl as the opposite file type - "Usually" you would only have to change the file extension to the other by renaming the file.
If you mean how to tell it where to look :
Code:#!/usr/bin/perl -s
Is something typical - He or his host would have to say for sure ....
#!/usr/bin/perl## This is a simple and very easy to install script. ##
## ##
## Make sure the first line of the program points to the ##
## path to perl on your server. ##
## ##
## Make a directory named "linkcollector" or anything in ##
## the cgi-bin directory of your web host. ##
## ##
## Just upload the "config.cgi" & "setup.cgi" into the ##
## "cgi-bin" directory.
Set permission to the setup.cgi to 0755. ##
## ##
## Upload the "lc.zip" into your HOME DIRECTORY. ##
## ##
## Run the setup.cgi script. ##
## http://www.yourdomain.name/cgi-bin/...ector/setup.cgi ##
## ##
## Thats all.