Thanks bradgrafelman.
I've tried this code which works perfectly when reading from a simple test HTML page on my local host:
<?php
$file = 'filename.xml';
$source = file_get_contents("http://localhost/clock/testpage.html");
file_put_contents($file, $source);
echo $source;
?>
However, when I substitute the url for the one I mentioned in my first post, the one that generates the XML, I get a blank page and an empty file.
Could it be that as the URL from the help desk app takes a second or so to do the search and load the page, that the PHP is missing it? Or as it's not actually generating a file as such, this is the wrong approach?
Again, any help much appreciated.
Thanks, John