RE: [PHP] Remote Files using PHP: Help Please
| From: | John Holmes | Date: | Sun, 15 Sep 2002 17:36:58 +0000 |
| Subject: | RE: [PHP] Remote Files using PHP: Help Please | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116446@lists.php.net to get a copy of this message | ||
> I'm looking for a tutorial about transferring data from a remote file
(in
> this case a URL) using PHP.
>
> I need to take out certain parts of the string using regular
expressions
> and
> then place that string into an array and then format that data into an
> html
> table.
Just treat the URL like a local file:
$fp = fopen("http://www.domain.com/file.html");
and then fread() and parse the contents of the file.
---John Holmes...