Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How to find out the calling URL??

by Juerd (Abbot)
on May 26, 2002 at 14:41 UTC ( #169393=note: print w/ replies, xml ) Need Help??


in reply to How to find out the calling URL??

I don't want my script to be executed directly bu user. Is there any way by which i can find out the calling url in PERL.

I assume you're a CGI programmer. You can use $ENV{HTTP_REFERER}, but that will not always work as expected. Actually, there is _no_ way to be sure.

Oh, and there is no PERL. Perl is the language, perl the interpreter.

Mail address: umer911@yahoo.com

If you ask your question over here, you will get the answers over here. The mail address is just bait for spamrobots now.

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.


Comment on Re: How to find out the calling URL??
Re: Re: How to find out the calling URL??
by cjf (Parson) on May 26, 2002 at 15:10 UTC
    Oh, and there is no PERL

    Of course there is, otherwise why would there be this? ;-)

    And the best quote from the docs...

    Unfortunately there is no documentation for PERL (believe me I've looked everywhere). Therefore, the best thing to do is to go straight to comp.lang.perl.misc and ask your questions there.

    Guess a few of them got lost and found their way here instead.

Re^2: How to find out the calling URL??
by Anonymous Monk on Aug 20, 2004 at 01:06 UTC
    what so wrong about calling perl: PERL. that guy must be new in perl and trying to solve his problem instead of learning it. that's why there is perl. do it quickly without spending hours learning it
      what so wrong about calling perl: PERL

      Learn how to spell and you will go far in life. -Old Perl Monk Proverb

      what so wrong about calling perl: PERL

      I think perlfaq1 describes this rather clearly. What part of it do you not understand?

      that guy must be new in perl and trying to solve his problem instead of learning it.

      As far as I know, the focus here is learning, not solving problems. Through learning, one can eventually solve many problems, but acquiring knowledge usually comes before using that knowledge.

      do it quickly without spending hours learning it

      Asking for help without being willing to learn is imnsho abuse of our services. Those who do not want to learn should hire a programmer. See also http://juerd.nl/perl_needhelp.

      Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://169393]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2014-09-30 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (382 votes), past polls