EvilZone

Programming and Scripting => Web Oriented Coding => : Anks February 11, 2014, 09:35:02 AM

: Object Oriented PHP
: Anks February 11, 2014, 09:35:02 AM
Hello there,

i have just started learning PHP the object oriented way but i am trapped after learning the very basics of object,class and how they work actually with PHP.Does anybody know some great sites that can teach Session handling and more advanced concepts using Object oriented approach the simple way.

Please share your views.
: Re: Object Oriented PHP
: Phage February 11, 2014, 10:56:36 AM
Tbh, there's not really any difference in how to use objects, classes in PHP. But my recommendation would be to simply use the official docs for when you need to look up something and when you're completely stuck ask. The best way to learn programming is, well, by programming. So pick a project which involves what you want to learn and simply work on it.
: Re: Object Oriented PHP
: Stackprotector February 11, 2014, 12:08:42 PM
Unless you want to build a custom session handler, session handler is one of the first basic steps into PHP. You can read the bootk PHP and MYSQL Expert by wrox.com, teaches you the expert features and custom session handling. Though try to pick up a framework :)
: Re: Object Oriented PHP
: EmilKXZ February 11, 2014, 03:11:01 PM
For framework suggestions: CodeIgniter or Laravel, nothing else.

But don't jump just right now. It sucks to have a framework when you don't know all the subleties of the language, so first learn php properly.

Most vulnerabilities in web applications come thanks to bad development practices, such as those cheap YouTube tutorials where they step by step spoon feed you, but it's all chewed and you ONLY end up knowing what they EXACTLY told you. I don't think nobody has ever audited these dudes btw for webdev industry's sake, so expect the worst from them. (Not to prejudice you, but that's what I've seen).

Stick to PHP.NET, and make no mistake: this is a security forum, so you'd be wise to also stick with OWASP learning programs or similar. Oh yeah, and a tenet of security: whatever you do, should be secure from the ground-up (from its architecture, design, whatever you call it), anything that has "an external plugin for security" will be most likely flawed. Not necessarily flawed, but most likely. Cheerio! :)

EDIT: My engrish suked.
: Re: Object Oriented PHP
: Stackprotector February 11, 2014, 03:13:13 PM
For framework suggestions: CodeIgniter or Laravel, nothing else.

But don't jump just right now. It sucks to have a framework when you don't know all the subleties of the language, so first learn php properly.

Most vulnerabilities in web applications come thanks to bad development practices, such as those cheap YouTube tutorials where they step by step spoon feed you, but it's all chewed and ONLY know what they EXACTLY told you. I don't think nobody has ever audited these dudes btw, for webdev industry's sake, so expect the worst from them. (Not to prejudice you, but that's what I've seen).

Stick to PHP.NET, and make no mistake: this is a security forum, so you'd be wise to also stick with OWASP learning programs or similar. Oh yeah, and a tenet of security: whatever you do, should be security from the ground-up, anything that has "an external plugin for security" will be most likely flawed. Not necessarily flawed, but most likely. Cheerio! :)
There are other frameworks next to the horrible codeigniter and laraver (which i say you should try). And also, make shitloads of mistakes, that's when you start learning :)
: Re: Object Oriented PHP
: vezzy February 11, 2014, 08:28:54 PM
FuelPHP is another relatively good framework. As many here probably know, I'm no fan of PHP, although I guess the conventions used in Fuel make it tolerable.
: Re: Object Oriented PHP
: Anks February 12, 2014, 09:41:35 AM
And also, make shitloads of mistakes, that's when you start learning :)

Yes Exactly.


Stick to PHP.NET
And Now i think i should learn from PHP.net as suggested by EmilKXZ.
right??