Anyway to error check PHP in Dreamweaver?

JD Isaacks picture JD Isaacks · Mar 4, 2009 · Viewed 8.3k times · Source

I do all my PHP coding in Dreamweaver (currently version CS3) I am used to it and like it. 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?

Thanks.

Answer

ryeguy picture ryeguy · Mar 4, 2009

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#. The closest you can come to that is with PHPLint. Unfortunately, you have to do some hackery with Cygwin to get it to work under Windows.

I know that this isn't what you asked for, but Dreamweaver is not a very good editor for PHP. It lacks many features and isn't really meant to be used mainly for 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. I highly recommend Xampp. It's an all-in-one package to install Apache, MySQL, PHP, and more on your computer and has a spiffy control panel.