cvs: php-src /ext/simplexml/examples security.php
| From: | Christian Stocker | Date: | Sun, 26 Oct 2003 18:56:04 +0000 |
| Subject: | cvs: php-src /ext/simplexml/examples security.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-24287@lists.php.net to get a copy of this message | ||
chregu Sun Oct 26 13:56:04 2003 EDT
Modified files:
/php-src/ext/simplexml/examples security.php
Log:
fix example for saving to file
Index: php-src/ext/simplexml/examples/security.php
diff -u php-src/ext/simplexml/examples/security.php:1.3
php-src/ext/simplexml/examples/security.php:1.4
--- php-src/ext/simplexml/examples/security.php:1.3 Wed May 21 16:16:04 2003
+++ php-src/ext/simplexml/examples/security.php Sun Oct 26 13:56:03 2003
@@ -2,5 +2,5 @@
$s = simplexml_load_file('security.xml');
echo $s->id;
$s->id = 20;
-simplexml_save_document_file('security.new.xml', $s);
+$s->to_xml_file('security.new.xml');
?>