简体   繁体   English

无论如何要在 Dreamweaver 中检查 PHP 错误?

[英]Anyway to error check PHP in Dreamweaver?

I do all my PHP coding in Dreamweaver (currently version CS3) I am used to it and like it.我在 Dreamweaver(当前版本为 CS3)中完成所有 PHP 编码,我已经习惯并喜欢它。 There is one thing I would like though, is to be able to check for errors.不过,我想要一件事,就是能够检查错误。 Currently I don't see them until I upload the page to a server.目前,在我将页面上传到服务器之前,我看不到它们。 Is there anyway to setup PHP error checking in Dreamweaver?无论如何在 Dreamweaver 中设置 PHP 错误检查?

Thanks.谢谢。

I've been coding in PHP/MySQL/HTML/CSS/JS for many years.多年来,我一直在使用 PHP/MySQL/HTML/CSS/JS 进行编码。 Dreamweaver has done a lot of good things in its evolution. Dreamweaver 在其发展过程中做了很多好事。 The CS4 offering is good, but still lacks those things that are absolutely needed for professionals...real time code checking, code completion etc. These are absolutes. CS4 产品很好,但仍然缺少专业人士绝对需要的那些东西……实时代码检查、代码完成等。这些都是绝对的。

PHPed is an OK offering, but only available in Windows. PHPed 是一个不错的产品,但仅在 Windows 中可用。 Despite its claims, it is NOT stable on Mac or Linux platforms.尽管它声称,它在 Mac 或 Linux 平台上不稳定。

Zend and Aptana are virtually the same thing. Zend 和 Aptana 几乎是一回事。 Both are Eclips-PDT based products, except Aptana is more full featured.两者都是基于 Eclips-PDT 的产品,除了 Aptana 功能更全。 Zend has been very unresponsive to its customers in not including simple things like word wrap, for instance.例如,Zend 对客户的反应非常迟钝,因为它不包括诸如自动换行之类的简单事物。 Aptana Studio 1.5 was outstanding with its own PHP plugin, but is no longer available since they adopted the unfinished, raw PDT. Aptana Studio 1.5 以其自己的 PHP 插件非常出色,但由于采用了未完成的原始 PDT,因此不再可用。

NetBeans is absolutely the BEST PHP platform, but has a downside in running away with memory..at least on the Mac it does (this could be an issue with the Java VM however). NetBeans is absolutely the BEST PHP platform, but has a downside in running away with memory..at least on the Mac it does (this could be an issue with the Java VM however). But it DOES provide the best set of features...and its free.但它确实提供了最好的一组功能......而且它是免费的。

Aptana 1.5 is my choice at the moment, but since it's not being enhanced anymore, I'm looking for a new IDE of choice. Aptana 1.5 是我目前的选择,但由于它不再被增强,我正在寻找新的 IDE 选择。 So far that's been NetBeans.到目前为止,这是 NetBeans。 I'm hoping that they will eventually fix the memory leaks.我希望他们最终会修复 memory 泄漏。

Do you mean as you type?你的意思是当你打字的时候? Since PHP isn't compiled, it's not as easy to do as with a language like Java or C#.由于 PHP 未编译,因此不像使用 Java 或 C# 这样的语言那么容易。 The closest you can come to that is with PHPLint .最接近的是PHPLint Unfortunately, you have to do some hackery with Cygwin to get it to work under Windows.不幸的是,您必须对 Cygwin 进行一些黑客操作才能使其在 Windows 下工作。

I know that this isn't what you asked for, but Dreamweaver is not a very good editor for PHP.我知道这不是您要求的,但 Dreamweaver 不是 PHP 的一个很好的编辑器。 It lacks many features and isn't really meant to be used mainly for PHP.它缺乏许多功能,并不是真的主要用于 PHP。 Try these editors, which have on-the-go error checking:试试这些编辑器,它们有即时错误检查功能:

If you mean how can you setup your system so you can test PHP locally on your computer without the need to upload it to the web, you need a web server on your computer.如果您的意思是如何设置您的系统,以便您可以在计算机上本地测试 PHP 而无需将其上传到 web,您需要在计算机上安装 web 服务器。 I highly recommend Xampp .我强烈推荐Xampp It's an all-in-one package to install Apache, MySQL, PHP, and more on your computer and has a spiffy control panel. It's an all-in-one package to install Apache, MySQL, PHP, and more on your computer and has a spiffy control panel.

John Isaacks约翰·艾萨克

I think you prayer has been heard.我想你的祈祷已经被听到了。 Now in dreamweaver you can cheek the code without uploading to the server.现在在dreamweaver 中,您可以在不上传到服务器的情况下查看代码。 One thing you have to do is to set up you site with local network which include PHP and MYSQL.您必须做的一件事是使用本地网络设置您的站点,其中包括 PHP 和 MYSQL。 The version I am using now is CS5.我现在使用的版本是CS5。

I highly recommend using an IDE like Eclipse PDT it will greatly enhance your experience with PHP.我强烈建议使用 IDE 之类的Eclipse PDT ,它将极大地增强您使用 PHP 的体验。

I am personally very fond of NuSphere's phpED .我个人非常喜欢 NuSphere 的phpED It does code complete and syntax checking better than several other editor that i've tried.它比我尝试过的其他几个编辑器更好地完成代码和语法检查。

For view your work live, I recommend downloading WAMP and setting up a quick webserver on your computer.为了实时查看您的工作,我建议您下载WAMP并在您的计算机上设置一个快速的网络服务器。 It beets uploading via FTP every time you want to see a change.每次您想看到更改时,它都会通过 FTP 上传甜菜。

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

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