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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux