does PHP Version 4.3.10 support OOP?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

does PHP Version 4.3.10 support OOP?

Post by saumya »

Hi,
I am currently developing an application in PHP 5.0 with classes and OOP.But at the middle of it I realised that client's server supports only PHP 4.3.Does that mean, I have to redevelop my application or my application can run on PHP 4.3.
Please advice?
saumya
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

The object orientation functionality of PHP was changed considerably between version 4 and 5. PHP 4 has objects, but it handles lots of things differently. It's very unlikely your PHP 5 code will work. In future, it's probably best to make sure your development environment is set up approximately the same as your production server.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

There is object support for PHP 4, but a substantial amount of OOP support was introducted in PHP5.

Good thread related to this:
viewtopic.php?t=53940&highlight=php5+php4
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

Thanks guys
Post Reply