Jump to content

How do I get complete web address of the PHP script being executed


dpacmittal

Recommended Posts

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?

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.