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
Halen benim domail adıdır http://localhost/website/
Nasıl dinamik olarak php kullanarak domainname'ini alabilirsiniz.