[UPHPU] PHP reading html

Webot Graphics graphics at westernbotanicals.com
Wed Apr 4 12:44:25 MDT 2007


The reason I can't just use DHL's web tracking is because I need to  
incorporate the invoices that have been placed that haven't been  
shipped, and also those packages that are sent through the post office.

-------------- next part --------------


Justin Giboney
Graphic Design
Western Botanicals
Ph:800.651.4372, Fax:866.366.4372


On Apr 3, 2007, at 4:36 PM, Daniel C. wrote:

> 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
>
> _______________________________________________
>
> UPHPU mailing list
> UPHPU at uphpu.org
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>



More information about the UPHPU mailing list