dpacmittal Posted May 15, 2009 Share Posted May 15, 2009 If the site address is http://www.mysite.com/index.php ... what code do I have to put inside index.php for getting http://www.mysite.com/index.php as a variable inside the script. PHP_SELF shows different behaviour on different versions of PHP. I need to make a PHP code for displaying ads in which I have to forward the web address, to a remote server which would fetch the ad link. Also, is cURL the only method to call another remote script? Link to comment https://forums.phpfreaks.com/topic/158255-how-do-i-get-complete-web-address-of-the-php-script-being-executed/ Share on other sites More sharing options...
Adam Posted May 15, 2009 Share Posted May 15, 2009 Take a look at: http://uk3.php.net/manual/en/reserved.variables.server.php ... And you could use HTTP requests. Link to comment https://forums.phpfreaks.com/topic/158255-how-do-i-get-complete-web-address-of-the-php-script-being-executed/#findComment-834658 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.