jonathan wrote:
//neither of these work
//$menu=file_get_contents(urlencode('menu_render.php?
menu_id=4&format=xml'));
$xml->load('menu_render.php?menu_id=4&format=xml');
You need to pass those get variables through a web server, otherwise
you're looking for a file called "menu_render.php?menu_id=4&format=xml"
which doesn't exist.
Try:
$menu = file_get_contents(
'http://www.yoursite.com/yourpath/menu_render.php?menu_id=4&format=xml' );
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php