hello,
i've build a simple class that read an xml file into an array,
look for a specific data
add an element
remove an element
save the all array into same or other file...
no problem about it :mrgreen:
now, i build some other class, to work on specific xml data file...
so i
extend the previus class, and i add some method...
even this, it's ok on my local web server...
not the same on my host...
where, event if there's no error, the array became empty far away from the point i build it....
let me show u an example:
PHP Code:
<?php
session_start();
// at the begginig i include some class
include_once("clMenu.php"); // that extends a my xml class...
$menu=new clMenu("_Xml/vmenu.xml"); // i have to indicate the xml file
?>
<!-- some HTML CODE -->
<? // now i use my class
echo $menu->showHtml();
?>
the xml class build a global array variable with data in it,
but when this method (
showHtml), use this array, it see an array with
0 element, while i'm sure, at the moment it has been builded it has many element.... (and all works fine on my local web server!)
any idea?