Solved

Best editor for php and logger

Posted on 2012-03-26
7
262 Views
Last Modified: 2012-04-03
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?
0
Comment
Question by:Sirdots
7 Comments
 
LVL 6

Expert Comment

by:Patrick Tallarico
ID: 37767596
I like Bluefish editor first and foremost...
Notepad++ is pretty decent for windows, and gedit is alright for linux.
0
 
LVL 7

Expert Comment

by:designatedinitializer
ID: 37767608
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
 

Author Comment

by:Sirdots
ID: 37767612
I use windows 7.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 13

Accepted Solution

by:
haloexpertsexchange earned 500 total points
ID: 37767656
Try notepad++ and as for having errors show up in your browser just set display_errors to on in your ini file.
0
 

Author Comment

by:Sirdots
ID: 37767684
Thanks. How about a logger? Do you know of any logger?
0
 
LVL 7

Expert Comment

by:designatedinitializer
ID: 37767801
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
 
LVL 17

Expert Comment

by:jrm213jrm213
ID: 37767843
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

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now