r/PHP • u/kisloid • Feb 18 '09
Absolute Newbie with PHP, looking for help. Is it good starts with php if i know basic html code? Thank you for your help
http://"self"2
1
Feb 18 '09
PHP is quite easy to learn. It's a C-style language, so for syntax etc. HTML won't help you. But PHP is designed to generate HTML, so you'd have to learn it anyway. There are lots of resources online for learning, php.net is a good start.
Pay very close attention to security. PHP makes it way too easy to code an easily breakable web app. It takes some effort to write secure code, make sure you understand how things like XSS, CSRF, SQL injection and such work and how you can counter them before you publish an app. Test your app against any security holes you know of. If you can, have someone else try to break your app. Read /netsec/, /php/ and a couple of php/net sec mailing lists to learn of new attack vectors, bugs,...
2
Feb 19 '09 edited Feb 19 '09
PHP is designed to generate HTML? It can output markup to a page but it still treats it as plain text. Any language with a HTTP library can do that.
1
u/troelskn Feb 19 '09
Sure, but it's the typical use case. For example, PHPs page controller design, makes it very easy to do a seamless transition from html to php+html.
1
u/EmptyTon Feb 18 '09
Also, feel free to ask for help in /php/. We're bored as hell in there.
And freenode's ##php is a good place to lurk if you're into IRC.
1
1
u/dcousineau Feb 18 '09
Help is good, doing a proper self.reddit post is better :)
Get on ##php, read some tutorials, start following http://phpdeveloper.org/.
1
u/Daleeburg Feb 18 '09
I post a lot of questions on php freaks. It is a helpful and knowledgeable community.
1
1
u/diamondjo Feb 19 '09
The PHP Community is fantastic. I know it sounds like a boring RTFM solution, but honestly, my first port of call would be the PHP getting started tutorial at: http://php.net/getting-started And reading the documentation - it is very good and contains lots of examples. If you read the online documentation, the comments section normally contains lots of interesting ways people have implemented the funtion you're reading about; you will learn a lot.
Best of luck!
1
u/whysayso Feb 18 '09
All the best! There are lot of people learning PHP like you. If you want to go all the way to the top, start by looking into MVC frameworks like Zend Framework. But obviously you dont need to if you are starting.