Good way to learn php?

Want to chit chat about anything, do it here ... posting here won't increase your post count (or shouldn't!). Please do not post any "phpBB" specific topics here unless they do not fit into the category above. Do not post bug reports, feature or support requests!
Forum rules
Please do not post any "phpBB" specific topics here unless they do not fit into the category above.

Do not post bug reports, feature or support requests! No really... Do not post bug reports, feature or support requests! Doing so will make Bertie a very sad bear indeed. :(
Post Reply
DanoruX
Registered User
Posts: 156
Joined: Fri Mar 18, 2005 11:47 pm
Contact:

Good way to learn php?

Post by DanoruX »

I figured I needed to improve my php skills a little, so I'm gonna make something like phpnuke. I have no idea what I'm up against, but I'll try anyway. 8)

Good/bad idea?

Natan
Registered User
Posts: 304
Joined: Tue Dec 30, 2003 4:31 pm
Contact:

Re: Good way to learn php?

Post by Natan »

The manual is always a good place to start :mrgreen:
http://www.php.net/manual/en/" target="_blank
"You may only be one person to the world, but you may also be the world to one person."

DanoruX
Registered User
Posts: 156
Joined: Fri Mar 18, 2005 11:47 pm
Contact:

Re: Good way to learn php?

Post by DanoruX »

Natan wrote: The manual is always a good place to start :mrgreen:
http://www.php.net/manual/en/" target="_blank
The manual is a great resource, but to truely learn, one must apply the knowledge too! ;)

...and I also have a book or two on php/mysql :D

User avatar
Stallyon
Registered User
Posts: 73
Joined: Mon May 31, 2004 1:30 pm
Location: BNE
Contact:

Re: Good way to learn php?

Post by Stallyon »

I first learned PHP back in the begining of 1999 when PHP 4 was a baby. I learned by jumping in and looking at code. I had been programming in assembler and C/C++ and scripting in Perl for a few years before that, so I had the advantage of knowing basically how code is structured, particularly OOP. I was even writing OOP assembler programs. I didn't really start MySQL until 2001, thought I knew SQL very well thanks to my computer science degree. I was just using flat-file databases until then.

Back to your question, your best bet would be to learn how to structure code first. I have seen some horribly written code out there these days, written by script kiddies who write long, cumbersome scripts that are slow and resource greedy. Start with the basics. Start with conditional statements, when and where to use them, and deciding on the best approach to take. People forget important phases of 3GL coding like psuedo code, which seems to be a dying artform; testing the results of statements and functions.

Start simple: learn it right the first time; keep your knowledge current.

DanoruX
Registered User
Posts: 156
Joined: Fri Mar 18, 2005 11:47 pm
Contact:

Re: Good way to learn php?

Post by DanoruX »

Stallyon wrote: Back to your question, your best bet would be to learn how to structure code first. I have seen some horribly written code out there these days, written by script kiddies who write long, cumbersome scripts that are slow and resource greedy. Start with the basics. Start with conditional statements, when and where to use them, and deciding on the best approach to take. People forget important phases of 3GL coding like psuedo code, which seems to be a dying artform; testing the results of statements and functions.
I never said I was new to programming as a whole, I'm pretty fluent in Java and the basics C++. I'm working towards a CS degree myself ;). But yeah I do know the nightmares of badly written code - take any programming course and there will be at least 3 people writing code they can't read themselves! To not go that way, I actually think about whats going on first. The phpbb coding guidelines are roughly how I code. You're right about psuedo code, people don't use it as much as they should. (I find it useful for planning out algorythms just before I code for real).

All that said, magicquotes is annoying. :evil:

Jezz
Registered User
Posts: 1
Joined: Sat Jan 28, 2006 9:08 pm

Re: Good way to learn php?

Post by Jezz »

I still haven't read it all yet... But a really good book I found is 'Sams - PHP and MySQL Web Development' maybe it won't teach you everthing, but I think it's a good starting point.
I'm not so happy with a different Sams book that I bought though..
It was a teach yourself C# book, The guy spend half the book talking about what he wasn't going to teach you :(

Martin Blank
Registered User
Posts: 687
Joined: Sun May 11, 2003 11:17 am

Re: Good way to learn php?

Post by Martin Blank »

I find the Sams books to be a bit lacking. They teach, but not that well.

I found that The PHP Bible, printed by Wiley, was quite good. There's an updated version that covers PHP5 called The PHP and MySQL Bible that is sort of misnamed, as its focus is much more on PHP; you're not going to get a particularly extensive education on MySQL in it. However, it covers everything from installation through dynamic pages with a completeness few other books match.
You can never go home again... but I guess you can shop there.

Craig321
Registered User
Posts: 12
Joined: Thu Mar 18, 2004 4:15 pm

Re: Good way to learn php?

Post by Craig321 »

DanoruX wrote: I figured I needed to improve my php skills a little, so I'm gonna make something like phpnuke. I have no idea what I'm up against, but I'll try anyway. 8)

Good/bad idea?
I learnt mostly from php.net, also from examples and I did one tutorial for MySQL which is now useless because the coding in the tutorial only worked in older php, not php 5, doesn't bother me though, I can easily still do it in php 5.

So my main sources were php.net and examples on the net.

Anon
Registered User
Posts: 120
Joined: Fri Jan 30, 2004 7:55 am

Re: Good way to learn php?

Post by Anon »

I personally have got "PHP 4 Beginners". It's good, but I'm lazy and haven't got round to reading all it :mrgreen:

Code: Select all

:D|-<
:D/-<
:D\-<

User avatar
Lastof
Registered User
Posts: 518
Joined: Wed Mar 17, 2004 8:10 pm
Location: Two weeks last wednesday
Contact:

Re: Good way to learn php?

Post by Lastof »

I have "PHP For The World Wide Web, Visual Quick Start Guide".

Usually I don't find the Visual Quick Start and Visual Quick Pro Guides very good, but Larry Ullman who does the php and mysql ones seems very good.
Last edited by Lastof on 04 May 2008, 00:00, edited -1 times in total
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Look, I'm officially not a bug!!
SHS`: "Oooh Bertie, spank me with that casing stick, spank me spank me spaaaaannnnk mee!"
Image

Post Reply