note 23736 deleted from language.oop.serialization by dams
| From: | dams@php.net | Date: | Tue, 30 Jul 2002 00:47:09 +0000 |
| Subject: | note 23736 deleted from language.oop.serialization by dams | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-33946@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.