Re: working with xml from a php file for xsl transformations

From: Date: Fri, 30 Sep 2005 05:57:32 +0000
Subject: Re: working with xml from a php file for xsl transformations
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-223447@lists.php.net to get a copy of this message
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/

« previous php.general (#223447) next »