Best editor for php and logger

I am new to php. I dont want to use an Ide. I want to be able to use an editor suitable for php and then have compile error messages show up on my browser for me to debug. I am just avoiding an IDE.
Can you recommend any free tools I can use?
SirdotsAsked:
Who is Participating?
 
haloexpertsexchangeCommented:
Try notepad++ and as for having errors show up in your browser just set display_errors to on in your ini file.
0
 
Patrick TallaricoFSEP Systems AnalystCommented:
I like Bluefish editor first and foremost...
Notepad++ is pretty decent for windows, and gedit is alright for linux.
0
 
designatedinitializerCommented:
Well, the choice of editor depends on the platform you're using.
If you're on Mac, Coda is a good one with syntax highlighting, manuals & more.

As for debug... The command
error_reporting(E_ALL);

Open in new window

will do that magic.

However, I'm partial to using my Mac OS console and having the error log show up in there. That way you can see everything that's going wrong.

One other useful tool is the command
print_r($variable);

Open in new window

which will output the type, structure and data of $variable.
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
SirdotsAuthor Commented:
I use windows 7.
0
 
SirdotsAuthor Commented:
Thanks. How about a logger? Do you know of any logger?
0
 
designatedinitializerCommented:
You can use PHP built-in error_log() function.
Like this:
error_log("Error message", 3, "/path/to/yourlogfile.log");

Open in new window


Check that function on the online PHP manual for more details.
0
 
jrm213jrm213Commented:
I really like jEdit http://www.jedit.org/ as an editor.
It has a lot of plugin's including syntax highlighting for multiple languages. It is also free like notepad++
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.