up vote 1 down vote favorite
Share on Facebook

I'm a 5 years Python programmer, but shortly I'll be also working with PHP. Could you recommend me some readings to getting in touch with this language having in mind my Python skills?

Thanks,

link|flag

1 Answer

up vote 1 down vote

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

That's all you will ever need. But you will quickly discover that all of the kinds of things that you know to be bad ideas or poor style are idiomatic and common-place. The majority of the examples you will see are poorly-designed algorithms wrapped in poorly thought out code.

Just please don't use the mysql_* functions and instead prefer the mysqli_* functions, if you use MySQL. Regardless of the database you use, please use parametric queries.

link|flag
3  
I was considering a +1, until you mentioned PHP safe mode. – George Marian Nov 11 at 3:19
@George Marian: Why? – greyfade Nov 11 at 5:24
Why would you ever use MySQLi when PDO exists? Also, recommending safe mode for production use is a pretty silly thing: it's a poor attempt to solve the web server security problem and was deprecated over a year ago in 5.3. This advice might've been useful 5 or 6 years ago, but your recommendations are outdated at best—and dangerous at worst—for a new PHP programmer. – Mark Trapp Nov 11 at 6:50
^ That's why. I found this article to be quite useful for understanding PHP security concerns: owasp.org/index.php/PHP_Top_5 – George Marian Nov 11 at 16:11
I confess I haven't used PHP since 5.1 for these reasons. I've stricken the part about safe mode. – greyfade Nov 11 at 17:38

Your Answer

 
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.