Hey, sorry for posting something that has been covered before, but I've gone through the examplee that have already been posted to no avail...
Here's my problem....
I've got an enormous XML file which is loaded and then parsed w/ DOMDocument ect. since the xml file is 2+ megs i'd like to only load it once. i then call a function that displays a given range of the xml entries. everything looks like this...
code:
if ( !isset($SESSION['day'])) {
$obj = new DOMDocument();
$obj->load( 'WeeklySample.xml' );
$serialized = serialize($obj);
$SESSION["ser"] = $serialized;
$start = 1;
$end = 100;
}else{
$obj = unserialize( $_SESSION['ser'] );
}
function( $obj, $start, $end );
<a href='thispage.php?start=200&end=300'>200
to 300</a>
ideally i'd like to reload the page when the link is clicked, reset the variables $start and $end and display entries 200 - 300.
XML takes a bit of time to load the first time, and i'd like to only have to do it once, i know there's a way it just hasn't clicked yet.
Thanks in advance for the help.