[UPHPU] PHP reading html
Daniel C.
dcrookston at gmail.com
Tue Apr 3 16:36:14 MDT 2007
On 4/3/07, Webot Graphics <graphics at westernbotanicals.com> wrote:
> Is there a way to have PHP read the contents of another html page?
>
> The company I work for doesn't have a system for tracking their
> shipments and I was wondering if I could have a php page read a page
> from DHL's website.
Yes, but you'll have to do some low-level work on it. You'll want to
look at cURL and the string-parsing functions, especially the
Perl-compatible regular expression ones. I doubt that using fopen on
the URL will do what you need because I'm assuming you have to log in
for it to work. DHL doesn't provide any kind of web-compatible
interfacey thingy?
Dan
More information about the UPHPU
mailing list