Re: php output to string

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

 



Hi,

You may make it with fopen() like that;

$fd = fopen($url, "r");
$returnString = ""
while (!feof($fd)) {
      $returnString .= fgets($fd);
}
fclose($fd);



Jesús Fernández <jesusfs@xxxxxxxxx> writes:

> 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. 
>
> how can i do this?
> thanks

-- 
Cafer Simsek
http://cafer.org

-- 
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