Jump to content

How to get current URL ? {PHP/IIS}


karthikeyan_coder

Recommended Posts

how to get current url in PHP/IIS ?
echo $_SERVER['REQUEST_URI']; //NOT working


echo $_SERVER['PHP_SELF']; // printing current docuemnt only...

i am including skin.php (absolute path) in test.php
i puts $_SERVER['PHP_SELF']; in skin.php ... it is printing like .. path/skin.php

i need the url of test.php ...


Link to comment
https://forums.phpfreaks.com/topic/34379-how-to-get-current-url-phpiis/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.