Re: XML to PHP help
| From: | David Otton | Date: | Sun, 31 Aug 2003 16:54:21 +0000 |
| Subject: | Re: XML to PHP help | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161310@lists.php.net to get a copy of this message | ||
On Sun, 31 Aug 2003 11:20:23 -0500, you wrote:
>No, what I'm looking for is a script that will download the backend.php
>file like you get from slashdot.org, and turn it into a readable html
>file that can be insterted into another php file. Make sense?
Not really. Forget about the file extension (php, html, etc). Doesn't matter
once you're off the server. What is the /content/ of the file you're trying
to recover?
Sounds like you're screen-scraping HTML. Getting the file should be a
one-liner, but depending on what you want to do, parsing it might be more
complex.
(slashdot's scripts are Perl writing out static HTML every five minutes,
anyway. It doesn't have a "backend.php")