note 23736 added to language.oop.serialization
| From: | lueur3 at caramail dot com | Date: | Fri, 26 Jul 2002 09:36:07 +0000 |
| Subject: | note 23736 added to language.oop.serialization | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33579@lists.php.net to get a copy of this message | ||
i read your script concerning saving linked objects (serialize() and unserialize(),
i think you had a small mistake but it's the cause why your script doesn't work. in
page2.php you should put this : page2.php:
<?php
// Ceci est nécessaire pour que unserialize() fonctionne correctement
include("classa.inc");
$s = implode("", @file("store"));
$s = unserialize($s); //there was the mistake.
// maintenant, utilisez la méthode show_one de l'objet $a.
$a->show_one();
?>
that's all, think you.
khalid.
--
http://www.php.net/manual/en/language.oop.serialization.php
http://master.php.net/manage/user-notes.php?action=edit+23736
http://master.php.net/manage/user-notes.php?action=delete+23736
http://master.php.net/manage/user-notes.php?action=reject+23736