in reply to Re^2: How to get current URL with Query String
in thread How to get current URL with Query String
what do you think?my $page_url = 'http'; if ($ENV{HTTPS} = "on") { $page_url .= "s"; } $page_url .= "://"; if ($ENV{SERVER_PORT} != "80") { $page_url .= $ENV{SERVER_NAME}.":".$ENVSERVER_PORT}.$ENV{REQUEST_U +RI}; } else { $page_url .= $ENV{SERVER_NAME}.$ENV{REQUEST_URI}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to get current URL with Query String
by Your Mother (Archbishop) on Feb 04, 2014 at 15:30 UTC |