Page 1 of 1
Newbee question: Handing object from one php to another
Posted: Mon Jun 02, 2008 3:40 pm
by KarlK
Hi, I have a PHP class and two PHP files using this class. I run each of the PHP files in a different browser window . Is it possible to instantiate an object wit the first PHP and hand it over to the second upon call? Are there other ways of object communication? Does anybody know good links where I can read more about this subject?
Karl
Re: Newbee question: Handing object from one php to another
Posted: Tue Jun 03, 2008 7:52 am
by vargadanis
I think what you want is way too tricky but not impossible. I guess the 2 browser windows are supposed to be 2 computers. If you want to establish communication between 2 computers with PHP (chat) than the best way to go is using temporary tables in a database. Of course it could be done by reading and writing to a file but not the best way to go.