Solved

Best editor for php and logger

Posted on 2012-03-26
7
272 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

628 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