php - 如何在 Eclipse 中调试 php

标签 php eclipse

我是 PHP 新手...... (在 Eclips IDE 中)如果我使用 Run As --> "PHP Script"运行 PHP 代码,那可以正常工作,但 Run As --> "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 

请帮帮我.... 葶苈

最佳答案

如果您使用的是 XAMPP,请将您的 eclipse 项目工作区放在 XAMPP\htdocs\ 文件夹中。如果您使用 WAMP,则将其放在 WAMP\www\ 文件夹中。您会在安装它的目录中找到 XAMPP 或 WAMP 文件夹。

供您引用: enter image description here

关于php - 如何在 Eclipse 中调试 php,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5387659/

相关文章:

php - 加快 MYSQL LARGE 查询速度

java - 如何使用套接字将文件从php客户端发送到java服务器

php - 从查询 yii2 获取数组而不是字符串

java - eclipse : "Could not find Java SE Runtime Environment"

java - 如何使用 eclipse 插件将文件发送到服务器?

sendmail - PHP:带有用于 SMTP 和 SMTP_PORT 的运行时 ini_set() 的 mail() 函数在 Linux 上不工作

c# - 连接 C# 后端和 PHP 前端

eclipse - 无法将 JSP 文件添加到项目中

python - 在 Mac Mavericks 上将 PyDev 安装到 Eclipse 中

java - 如何在 Java Eclipse 中将不同的关键字设置为不同的颜色?