JasonDFR
01-28-2009, 07:08 AM
I have been experimenting with Object Oriented PHP and have a couple questions.
1) How do I make objects persist? With variables, you can use SESSION, but what about objects? I found this:
$client_object = &$_SESSION['client_object'];
$client_object = new Client( $client_id );
http://blas.phemo.us/articles/2008/05/11/serializing-objects-into-session-data-for-object-persistence-in-php
but haven't tried it out yet. Going to now.
2) Can you describe an object oriented database and how it is different from a relational one? I've read the wikipedia entry on OO database, but it still left me with some questions.
and somewhat related: Anyone have any experience with Amazon Simple DB?
Thanks in advance.
J
1) How do I make objects persist? With variables, you can use SESSION, but what about objects? I found this:
$client_object = &$_SESSION['client_object'];
$client_object = new Client( $client_id );
http://blas.phemo.us/articles/2008/05/11/serializing-objects-into-session-data-for-object-persistence-in-php
but haven't tried it out yet. Going to now.
2) Can you describe an object oriented database and how it is different from a relational one? I've read the wikipedia entry on OO database, but it still left me with some questions.
and somewhat related: Anyone have any experience with Amazon Simple DB?
Thanks in advance.
J