项目路径为F盘根目录
我的项目目录为edmoEas
  --edmoProject 一级目录
  --admin 二级目录
  --Login.php
  --Register.php
  --dbFile 二级目录
  --DBManager.php我点击Login.php右键选择Run AS -> php script运行我Login.php代码中引用了DBManager.php的类,引用的方法是<?php require_once($_SERVER['DOCUMENT_ROOT'].'/dbFile/DBManager.php');?>错误提示
Fatal error: require_once() [function.require]: Failed opening required '/dbFile/DBManager.php'  (include_path='.;F:\edmoEas') in F:\edmoEas\edmoProject\admin\Login.php  还有为什么我用php web page运行 为什么会报错
这是显示我网页地址 感觉有问题 怎么这么长啊
http://localhost/edmoEas\edmoProject\admin\Login.php  ?use_remote=1&debug_session_id=1012&start_debug=1&debug_start_session=1&debug_host=10.195.42.19%2C127.0.0.1&debug_no_cache=1271163731296&debug_fastfile=1&debug_port=10137&send_sess_end=1&original_url=http://localhost/edmoEas\edmoProject\admin\Login.php  
报错信息
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster. Error 404
localhost
2010-4-13 21:02:11
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 这是什么问题啊   
请各位大侠指教
小弟初学php

解决方案 »

  1.   

    http://localhost/edmoEas\edmoProject\admin\Login.php
    路径问题
    1.是不是本地?不是本地localhost换成服务器ip
    2.是linux?是的话 不支持"\" 都换成"/"
      

  2.   

    DBManager.php 和 Login.php 中,并不在 dbFile 下

    <?php require_once($_SERVER['DOCUMENT_ROOT'].'/dbFile/DBManager.php');?>
    当然要出错
      

  3.   

    http://www.wangqi.com/html/2005-01/357.htm
    看一下这个,希望有帮助
      

  4.   

    windows下不存在权限问题,那就是路径写错了,LZ检查下吧~