NEW TO PHP - Question(s)... Need your thoughts...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tsaw
Forum Newbie
Posts: 4
Joined: Tue Oct 21, 2008 1:40 pm

NEW TO PHP - Question(s)... Need your thoughts...

Post by tsaw »

Hi,

I am new to this forum and also new to programming with PHP. I have programmed for years with C and assemble language, but not much with PHP - just a tweak here and there...

I have been searching around and really haven't found any answers to a few questions that you may have some good thoughts for not only me but others to benefit from...

so...

I am on a MAC and use dreamweaver for editing.

1. What would you suggest / recommend for using for a good editor for using with PHP and runs on a MAC?

2. I haven't found any type of a debugging tool to use - for example setting breakpoints, etc... as well as being able to step through my code and look at variable, etc... Is there anything that is available that runs on a MAC and would do this sort of thing?

Anyhow, thanks for any thoughts or suggestions that you might have with these questions.

Thanks!

Tim
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: NEW TO PHP - Question(s)... Need your thoughts...

Post by jayshields »

This thread is probably of interest. viewtopic.php?f=6&t=81100
tsaw
Forum Newbie
Posts: 4
Joined: Tue Oct 21, 2008 1:40 pm

Re: NEW TO PHP - Question(s)... Need your thoughts...

Post by tsaw »

Hi Jay,

Thanks! I have checked it out and have downloaded 3 of the editors to test drive...

Any ideas on the debugging options with PHP? Breakpoint, variables, etc...

Thanks so much!

Tim

PS - I used to live in Plymouth back in the 80's - Beautiful country!
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: NEW TO PHP - Question(s)... Need your thoughts...

Post by onion2k »

The best I've found for debugging is XDebug, but it's a bit of a pain to configure properly.

PS Plymouth is nowhere near Leeds/Manchester.
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: NEW TO PHP - Question(s)... Need your thoughts...

Post by jayshields »

:lol: Think he probably knows that onion if he lived there?!

Anyway, yeah XDebug is good, but it isn't an IDE. You'll probably want to try a bulky IDE like Eclipse or NetBeans with the PHP addons.
tsaw
Forum Newbie
Posts: 4
Joined: Tue Oct 21, 2008 1:40 pm

Re: NEW TO PHP - Question(s)... Need your thoughts...

Post by tsaw »

Hi Jay and Jedi,

Thanks for the input! I have both sites up and will take a closer look...

I really did like getting out into the country over there... Such beautiful land and the people were awesome! Actually got to play my first / last and only ever game of rugby... Ouch!

Thanks again!

Tim
User avatar
Syntac
Forum Contributor
Posts: 327
Joined: Sun Sep 14, 2008 7:59 pm

Re: NEW TO PHP - Question(s)... Need your thoughts...

Post by Syntac »

If you aren't going to be doing any heavy coding, you probably won't need an IDE. Just a good, solid programmer's text editor should do.
tsaw
Forum Newbie
Posts: 4
Joined: Tue Oct 21, 2008 1:40 pm

Re: NEW TO PHP - Question(s)... Need your thoughts...

Post by tsaw »

Doesn't the IDE get you breakpoint and variable inspection?
User avatar
Syntac
Forum Contributor
Posts: 327
Joined: Sun Sep 14, 2008 7:59 pm

Re: NEW TO PHP - Question(s)... Need your thoughts...

Post by Syntac »

Sorry, I was just talking about the editor there.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: NEW TO PHP - Question(s)... Need your thoughts...

Post by josh »

tsaw wrote:Doesn't the IDE get you breakpoint and variable inspection?
Yes, there's also code insight features like jumping to the definition of a class who's name is held in a variable ( during debugging "run time" )
Post Reply