Re: How to get PHP to download web contents

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

 



> How would you get PHP to download a file such as a web page and put it in
a string?

>From the manual:
    $html = implode ('', file ('http://www.example.com/'));

Note: As of PHP 4.3.0 you can use file_get_contents() to return the contents
of a file as a string.



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux