【发布时间】:2011-05-27 11:59:06
【问题描述】:
我正在使用将项目详细信息提交给贝宝通过贝宝付款。 这里我需要指定我的 notify.php 的链接。 为此,我需要动态获取我的站点根目录。 我怎样才能得到它。
我的系统文件夹结构是 C:\wamp\www\website\store_esp\notify.php
我的 notify.php 网址应该是 http://domainname/store_esp/notify.php
目前我的域名是http://localhost/website/
如何使用php动态获取域名。
【问题讨论】:
-
域名为
localhost。但网站只是一个目录。去图
标签: php paypal payment-processing