Solved

Best editor for php and logger

Posted on 2012-03-26
7
269 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

752 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