I am doing a payment by paypal using submit the item details to paypal.
Here I need to specify a link of my notify.php.
For this I need to get my site root dynamically.
how can I get it.
my system folder structure is
C:\wamp\www\website\store_esp\notify.php
and my url for notify.php should be
http://domainname/store_esp/notify.php
Presently my domail name is http://localhost/website/
How can I get the domainname dynamically using php.
$_SERVER['HTTP_HOST']will give the domain nameIn the above URL the domain is
localhostAs I think the
websiteis never changed towebsite1orwebsite2so you can statically mention this in your url.