Hi friends....
I am bigtime fan of PHP but have little diffficulties in my current assignment.I major in J2EE and have also worked on coldfusion and PHP.
Comming from the Object oriented background, I have a fair idea how OO technologies can help you build extensible applications.
To the point,I need to build whoseonline using PHP OO methodology.I am aware that complete conformance is missing in PHP 4.x and will be added in PHP5. Have built similar whosonline using Java, where instantiation of user objects from "User class" and storing it into static ,synchronized treeset,hashtable datastucture of "Onliners class" helped me into building a working solution.Although for simplicity I have skipped the algorithm in here.
I wish to do the same but have lots of problems using the ARRAY structure in PHP.I am building an user class and on the same lines creating user object (holding user info) during login and store them into the array structure of onliners class.But sorry to say or maybe I have a limited knowledge in PHP , I am not able to do the same.
Also can I create static array which will hold previous user objects in
the onliners class. Or everytime I create reference of the onliners
$onliners = new Onliner();
will actually create new structure each time..?
I just hope the Zend engineers really make PHP 5 completely OO if PHP ever wishes to compete in enterprise market.And moreover scripting really makes like difficult for developers when the site plans for extensions.Very vry cruel to maintain scripts.
Can you help me in finding out the solution
My deployment environment is PHP 4.2,MySQL 3.23.x,Apache 1.3.26,Linux
and development being windows using Coldfusion studio 4.5
Thanx
Vijay.K
🆒