简体   繁体   English

如何在Eclipse中调试php

[英]How to Debug php in Eclipse

I am new to PHP..... (In Eclips IDE) If i run the PHP code with Run As --> "PHP Script", that will work fine but Run As --> "PHP Web Page" is throwing the error as 我是PHP的新手.....(在Eclips IDE中)如果我使用Run As运行PHP代码 - >“PHP脚本”,那将运行正常但运行方式 - >“PHP Web Page”正在抛出错误的

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
03/22/11 12:04:12
Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 
OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8 

Please help me.... Gnanendra 请帮帮我.... Gnanendra

If you are using XAMPP place your eclipse project workspace in the XAMPP\\htdocs\\ folder. 如果您正在使用XAMPP,请将您的eclipse项目工作区放在XAMPP\\htdocs\\文件夹中。 if you use WAMP then place it in the WAMP\\www\\ folder. 如果您使用WAMP,则将其放在WAMP\\www\\文件夹中。 you'll find the XAMPP or WAMP folders in the directory where you have installed it. 您将在安装它的目录中找到XAMPP或WAMP文件夹。

for your reference: 供你参考: 在此输入图像描述

Are you using any XAMPP or WAMP service? 您使用的是XAMPP或WAMP服务吗? Did you place your files properly? 你把文件正确放了吗? It says the apache could not find your file. 它说apache找不到你的文件。 ie you've either not configured your environment properly or your file is at a wrong place. 即你没有正确配置你的环境或你的文件是在错误的地方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM