The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Current page's exact URL?
How can I get the full and exact URL of the current page? i.e., protocol://server:port/path/filename?argument1=value1&argument2=value2...
I know how to construct it but I thought that there might be a superglobal that already contains this. |
#2
|
||||
|
||||
in a phpinfo file?
- miSt |
#3
|
|||
|
|||
...?
Using PHP, if I used phpinfo I'd already know the page's URL |
#4
|
||||
|
||||
first get root dir with $_SERVER['DOCUMENT_ROOT'] or $DOCUMENT_ROOT, then you can convert it yourself to exact URL. pathinfo() function will help you while you are doing so..
|
#5
|
|||
|
|||
$_SERVER['HTTP_HOST']
$_SERVER['SERVER_PORT'] $_SERVER['REQUEST_URI'] not sure about the protocol an if statement? if ($_SERVER['SERVER_PORT'] == 443) { $p = 'https://'; } else { $p = 'http://'; } |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|