Author Topic: Object Oriented PHP  (Read 1487 times)

0 Members and 1 Guest are viewing this topic.

Offline Anks

  • Serf
  • *
  • Posts: 26
  • Cookies: -5
    • View Profile
Object Oriented PHP
« on: 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.
AS578

Offline Phage

  • VIP
  • Overlord
  • *
  • Posts: 1280
  • Cookies: 120
    • View Profile
Re: Object Oriented PHP
« Reply #1 on: 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.
"Ruby devs do, in fact, get all the girls. No girl wants a python, but EVERY girl wants rubies" - connection

"It always takes longer than you expect, even when you take into account Hofstadter’s Law."

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: Object Oriented PHP
« Reply #2 on: 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 :)
~Factionwars

Offline EmilKXZ

  • Peasant
  • *
  • Posts: 109
  • Cookies: 10
  • likes monies :p
    • View Profile
    • EmilKXZ
Re: Object Oriented PHP
« Reply #3 on: 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.
« Last Edit: February 11, 2014, 03:14:22 pm by EmilKXZ »

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: Object Oriented PHP
« Reply #4 on: 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 :)
~Factionwars

Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: Object Oriented PHP
« Reply #5 on: 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.
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet

Offline Anks

  • Serf
  • *
  • Posts: 26
  • Cookies: -5
    • View Profile
Re: Object Oriented PHP
« Reply #6 on: 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??

AS578