Hacker News new | past | comments | ask | show | jobs | submit login

a) i haven't used any php related books, but this is invaluable:

http://www.php.net/docs.php

i would suggest downloading a version of it for quick reference. it's worth learning the commonly used functions, but a big chunk of php's value (and the main criticism against it) is a namespace filled with goodies (with varying degrees of good). This means there is probably a lot of useful functionality that's used sporadically enough that it's not worth committing permanent headspace to. Rather, learn to be quick about finding the right function to use. It's usually worth checking to see if there's some strange function/module that does exactly what you're trying to do. and if there's not, you can usually find example code in the comments - though i wouldn't recommend copying that code into production. rather, use it as a starting point for exploring the problem at hand.

i'd suggest learning php by giving yourself a well defined, if simple, project to start with and attacking it the same way you've learned languages in the past. probably with some reading, a lot of doing, occasional breaking, then more reading.

b) notepad++ or homesite are my preferred IDE's

c) codeigniter, cakephp ( http://cakephp.org/ ) and the zend framework ( http://framework.zend.com/ ) are the big frameworks i'm aware of, but i'm sure there are more out there.

enjoy!




Thanks. Still confused about the framework. Not sure why CodeIgniter doesn't support PHP 5 :(


From here: http://codeigniter.com/user_guide/overview/at_a_glance.html

"CodeIgniter is written to be compatible with PHP 4. Although we would have loved to take advantage of the better object handling in PHP 5 since it would have simplified some things we had to find creative solutions for (looking your way, multiple inheritance), at the time of this writing PHP 5 is not in widespread use, which means we would be alienating most of our potential audience. Major OS vendors like RedHat are moving slowly to support PHP 5, and they are unlikely to do so in the short term, so we felt that it did not serve the best interests of the PHP community to write CodeIgniter in PHP 5.

Note: CodeIgniter will run on PHP 5. It simply does not take advantage of any native features that are only available in that version."


Hmmm, interesting. I didn't read that. Thank you, thorax.


if you are looking into Code Igniter, i suggest that you look into http://kohanaphp.org/home - it is a fork of CodeIgniter.

CodeIgniter does support PHP5. But you will have to turn off warnings, etc.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: