You are here: Re: [PHP] php output to string « PHP « IT news, forums, messages
Re: [PHP] php output to string

Posted by "Richard Lynch" on 08/11/05 00:07

On Tue, August 9, 2005 2:55 pm, Jesús Fernández wrote:
> Hi there,
> i'm a little newbie you know.
> I have a php that returns some xml, and i want to parse that xml through
> php. the xml returned depends on the variable passed thru the url. what i
> need is to get the output of that php file and store it in a string. i
> have
> tried everything i have though, readfile, include, file_get_contents even
> eval. also i have tried with ob_start and so. but no luck.

Try this:

file_get_contents("http://example.com/yourfile.xml");

That will get you the exact same thing your browser would show you.

--
Like Music?
http://l-i-e.com/artists.htm

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация