$_SERVER['DOCUMENT_ROOT']注意点
2008-05-25 23:00
309 查看
$DOCUMNET_ROOT=$_SERVER['DOCUMENT_ROOT'];
echo "document root:"."$DOCUMNET_ROOT";
$DOCUMNET_ROOT 一定要这样写
如果使用的站点是默认站点,则获取的根目录是: c:/inetpub/wwwroot
echo "document root:"."$DOCUMNET_ROOT";
$DOCUMNET_ROOT 一定要这样写
如果使用的站点是默认站点,则获取的根目录是: c:/inetpub/wwwroot
相关文章推荐
- IIS PHP环境 $_SERVER['DOCUMENT_ROOT'] 获取不到值
- php几个预定义变量$_SERVER['DOCUMENT_ROOT']
- php几个预定义变量$_SERVER['DOCUMENT_ROOT']
- $_SERVER[ 'DOCUMENT_ROOT ']和 __FILE__
- dirname(__FILE__)和$_SERVER['DOCUMENT_ROOT']的区别
- php.ini文件中的include_path设置和$_SERVER['DOCUMENT_ROOT']
- $_SERVER['HTTP_REFERER'] 获取前一页面的 URL 地址注意事项
- The document type declaration for root element type "config" must end with '>'.错误
- maven exclusions【jar包依赖注意】和 org.xml.sax.SAXParseException: Document root element "beans", must match
- 新安装XAMPP,phpMyAdmin错误:#1045 - Access denied for user 'root'@'localhost' (using password: NO)
- Access denied for user 'root'@'127.0.0.1' (using password: YES)
- 用户 'sa' 登录失败。 (Microsoft SQL Server,错误: 18456)的另一个解决办法
- 登录MySQL时遇到问题Access denied for user 'root'@'localhost'解决
- 【SQL Server 2005 的问题】com.microsoft.sqlserver.jdbc.SQLServerException: 用户 'sa' 登录失败。该用户与可信 SQL Server 连接无关联。
- Setting property 'source' to 'org.eclipse.jst.jee.server:webProject' did not find a matching propert
- Access denied for user 'root'@'localhost'
- adb server is out of data.killing.....ADB server didn't ACk
- Can't connect to X11 window server using 'localhost:0.0' 的解决
- Access denied for user 'root'@'localhost' (using password:YES)
- ADB server didn't ACK 解决方法