Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: web-based installer wanderings

by ahmad (Hermit)
on Jul 19, 2010 at 20:47 UTC ( [id://850325]=note: print w/replies, xml ) Need Help??


in reply to web-based installer wanderings

It's been long time since I've seen anyone running without suEXEC, specially on a shared host.

I think you're doing just fine.

If you want to know where the script is currently stored/running from you can use $ENV{SCRIPT_FILENAME} for Apache or $ENV{PATH_TRANSLATED} for IIS.

If you want to get the http url you can get it like this my $URL = 'http://' . $ENV{HTTP_HOST} . $ENV{SCRIPT_NAME}; for both web servers.

You may want to take a look at the environment variables and test it out to see what works best for you.

#!/usr/bin/perl -w use strict; use CGI; my $q = CGI->new; print $q->header; while ( my ($k,$v) = each %ENV ) { print "$k = $v <br />\n"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-26 00:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found