×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Headers?

Headers?

Headers?

(OP)

In most CGI scripts I see this header

what does it means?

#!/usr/local/bin/perl
I understand that it says where my perl interpreter is?
but if it means that how do I know where the perl interpreter is in one paid site like www.geocites.com/myworld/


RE: Headers?

Ask your webmaster.

if you can telnet in then try
whereis perl

RE: Headers?

Hi morpheos,

All web hotels doesn´t let you have cgi scripts on their server, for security reasons.

I recomend you to write to your hotel: www.geocites.com and ask them if they support cgi scripts and if the do, were their perl interpreater is.

I hope this answer is clear and that I didn´t missunderstand your question.

/Fumac  

RE: Headers?

The header is also for Unix/Linux systems. If the server that you are hosting with is under Windows, or NT, the "shebang" line, as it is called in the Perl community, is not necessary.

And if you are not on a Unix/Linux system, you can't use the whereis perl command. You would have to use the find command via DOS or search from the Start menu..

Hope this helps,

-Vic

vic cherubini
malice365@hotmail.com
www.epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====

RE: Headers?

Geocities does not support custom scripts.  I am a geocities user for some of my web tasks.  www.hypermart.com does support custom cgi scripts and you can link to them from you geocities site.


The header function will also print to the web browser as set of commands so the browser what kind of data it is recieving. It is required for most cgi scripts to run propery. You can simulate that contents of the header in other ways as is much of things in perl but this is the easiest.

RE: Headers?

Ask your web system engineer or if you have telnet access
type in the shell

whereis perl

and it wil return more than one path (normaly)

usualy.

#!usr/bin/perl or #!/usr/local/bin/perl

Good luck

RE: Headers?

what that line DOES is allow you to execute a perl program directly rather than via the perl interpreter. What that means is you can simply execute myprog.pl rather than saying perl myprog.pl. It can get a lot more complicated than that, but that's the gist of it.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close