Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: OT: Apache/perl question

by pfaut (Priest)
on Dec 19, 2007 at 02:12 UTC ( #657778=note: print w/ replies, xml ) Need Help??


in reply to OT: Apache/perl question

Any directories past the script name will be available in $ENV{PATH_INFO} or $query->path_info if using CGI. That's where you'll find your /anotherdirectory.

90% of every Perl application is already written.
dragonchild


Comment on Re: OT: Apache/perl question
Download Code
Re^2: OT: Apache/perl question
by Cody Pendant (Prior) on Dec 19, 2007 at 06:20 UTC
    Thanks dragonchild.

    I've got it working, thanks to that. If the directory it's in is identified to Apache with the ScriptAlias directive, any file no matter what the extension can run.

    So if you have a script called 'directory' in a ScriptAlias folder foo and you go to the URL http://server.com/foo/directory/bar/baz the script will run and you get /bar/baz in $ENV{PATH_INFO}



    Nobody says perl looks like line-noise any more
    kids today don't know what line-noise IS ...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2014-11-27 22:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (190 votes), past polls