From 966971aca84e8d910ffb31a80e4e92d7fe633276 Mon Sep 17 00:00:00 2001 From: Gabor Hojtsy Date: Thu, 2 Aug 2001 11:53:38 +0000 Subject: [PATCH] Corrected perlish file write (echo??) and a typo in text git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@53030 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/language/oop.xml b/language/oop.xml index e5289a1a84..cfec428d30 100644 --- a/language/oop.xml +++ b/language/oop.xml @@ -576,7 +576,7 @@ page1.php: $s = serialize($a); // store $s somewhere where page2.php can find it. $fp = fopen("store", "w"); - echo $s; + fputs($fp, $s); fclose($fp); page2.php: @@ -612,7 +612,7 @@ page2.php: - So if the in the example above $a became part of a session by + So if in the example above $a became part of a session by running session_register("a"), you should include the file classa.inc on all of your pages, not only page1.php and page2.php.