|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-12-09 05:36 UTC] chregu@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 16:00:01 2025 UTC |
Imagine this scenario: You load an XML file (with configuration data) into the current session along with some custom methods to change data in the XML object in memory to , finally, save your changes. But actually you can't use DOM Methods like dump_mem() after registering your DOM object in the current session. Try this script: ------------------------------------- <?php session_start(); if (!isset($_SESSION['doc'])) $_SESSION['doc'] = domxml_open_file('lalala.xml'); $_SESSION['doc']->dump_mem(); ?> <a href="<?=$_SERVER['SCRIPT_NAME']?>">click</a> -------------------------------------- lalala.xml is a valid xml file.