如何使用 PDT 和 WAMP
我已经为 Eclipse 和 WAMP 服务器安装了 PDT。我想知道现在如何开始用 PHP 编写代码?我应该怎么做才能让 WAMP 获取我的所有 PHP 文件?谢谢!
I have installed PDT for Eclipse and WAMP server. I want to know how do i start writing code in PHP now? What should I do so that WAMP gets all my PHP files? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WAMP 通过读取 www 目录来工作,通常位于 C:\wamp\www 下。如果您将自己的 index.php 文件放在那里,当您启动 WAMP 并转到 http://localhost 时,您将在浏览器中看到它
对于 Eclipse 的 PDT,您可以简单地在 C:\wamp\www 中创建项目。现在您的所有代码都将存在于 www 目录中,从而使 WAMP 能够访问您的项目代码并允许您测试您的代码。
WAMP works by reading the www directory, usually under C:\wamp\www. If you place your own index.php file there you will see it in the browser when you start WAMP and go to http://localhost
In terms of PDT for Eclipse you can simply create your project at C:\wamp\www. Now all your code will exist in the www directory thus giving WAMP access to your project code and allowing you to test your code.