Love hurts: Moving from PHP4 to PHP5
Once upon a time I fell in love.
It was a wow feeling. Me and my beloved had a great time. But, as it happens in all typical Bollywood movies, the good time was over.
Now the memories haunt me. I feel the pain. I have started to tell myself, man its over now. Move on. Its high time to move on. ![]()
So, now I work in PHP5. I miss those short and sweet 2 liners which I created. PHP5 is totally different from PHP4. There used to be classes and objects in PHP4 but in PHP5 everything is different. Not only the OOPS is revamped PHP5 boasts some cool XML features. No need to do include(’nusoap.php’), SOAP is standard accessory in PHP5. MySQL and PHP are made for each other and PHP5 has got a new thing called mysqli extension. If MySQL is too big for any projects’ requirement, sounds a rare scenario, use SQLite.
Some cool features related to oops are
- Pass objects by reference
- magical stuff like __autoload
- access modifiers
- interfaces, yes we can do multiple inheritance
- type hinting is also present now
The OOPS part of PHP is heavily derived from Java. I never studied Java so the interfaces stuff turned me crazy initially. Some how I am trying to grip PHP5 but I still miss my beloved. I have spent some wonderful moments with her. How can I simply forget her? ![]()
Trackbacks
Use this link to trackback from your own site.


