Re: [PHP] Tracking shipments UPS, FEDEX, etc...
I am not clear in what you want to do. I think the simplest solution is to build a table in your favorite database with the tracking number and the vendor. Make another table or switch statement that points to the URL for the vendors tracking mechanism. Now you can just write a function that links to the vendoes tracking mechanism passing along the tracking number to their form. I am not sure if this is legal or they allow permission to do this on their site. Otherwise you need to get their data via XML and write whole set of functions and what not to do something that already exists. This is not trivial. /dkm - Original Message - From: "Joe Sheble (Wizaerd)" <[EMAIL PROTECTED]> To: "General PHP List" <[EMAIL PROTECTED]> Sent: Thursday, September 06, 2001 1:47 AM Subject: [PHP] Tracking shipments UPS, FEDEX, etc... > has anybody written any routines or functions they'd care to share for > parsing the tracking information out of UPS, FEDEX, or other shipping > carriers tracking pages? > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Tracking shipments UPS, FEDEX, etc...
I don't want the rate, I have that through a 3rd party shipping engine... it's the tracking info I need... unfortunately not just for UPS... FedEx, DHL, Airborne, etc...At 03:09 PM 9/6/2001 -0500, Christopher CM Allen wrote: > > > > > > > > > has anybody written any routines or functions they'd care to share for > > > parsing the tracking information out of UPS, FEDEX, or other shipping > > > carriers tracking pages? > > > > >/* >Begin FEDX GROUND >*/ > $fp = fopen >("http://grd.fedex.com/cgi-bin/rrr2010.exefunc=Rate&Screen=Ground&; >OriginZip=$orig_zip&OriginCountryCode=US&DestZip=$new_zip&DestCountryCode=US >&Weight=$w_total", "r"); > if(!$fp) > { > echo "Didnt open $errstr >($errno)\n"; > } > else > { > fputs($fp,"GET / HTTP/1.0\n\n"); > > while(!feof($fp)) > { > >$buffer=fgets($fp,100); > if ( ereg > "^(<\!TotalCharges>)([0-9]{1,4})(\.)([0-9]{1,})", $buffer, $regs)) > { > > $fee >.=$regs[2]; > $fee >.=$regs[3]; > $fee >.=$regs[4]; > } > echo >"The Shipping Fee is $fee"; > >} > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Tracking shipments UPS, FEDEX, etc...
The ups tools are quite complicated. You have to open a pipe and the send and retrieve xml documents. Not for the weak of heart. Data Driven Design 1506 Tuscaloosa Ave Holly Hill, Florida 32117 http://www.datadrivendesign.com Phone: (386) 226-8979 Websites That WORK For You - Original Message - From: "Brian V Bonini" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Joe Sheble (Wizaerd)" <[EMAIL PROTECTED]>; "General PHP List" <[EMAIL PROTECTED]> Sent: Thursday, September 06, 2001 4:05 PM Subject: RE: [PHP] Tracking shipments UPS, FEDEX, etc... > Doesn't UPS provide tools to do this? Not necessarily > using PHP but I thought > > > -Original Message- > > From: Dan Harrington [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, September 06, 2001 3:45 PM > > To: Joe Sheble (Wizaerd); General PHP List > > Subject: RE: [PHP] Tracking shipments UPS, FEDEX, etc... > > > > > > No kidding :-) > > > > or calculating shipping costs. > > > > > > > -Original Message- > > > From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, September 05, 2001 11:47 PM > > > To: General PHP List > > > Subject: [PHP] Tracking shipments UPS, FEDEX, etc... > > > > > > > > > has anybody written any routines or functions they'd care to share for > > > parsing the tracking information out of UPS, FEDEX, or other shipping > > > carriers tracking pages? > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Tracking shipments UPS, FEDEX, etc...
> > > > > > has anybody written any routines or functions they'd care to share for > > parsing the tracking information out of UPS, FEDEX, or other shipping > > carriers tracking pages? > > /* Begin FEDX GROUND */ $fp = fopen ("http://grd.fedex.com/cgi-bin/rrr2010.exefunc=Rate&Screen=Ground&; OriginZip=$orig_zip&OriginCountryCode=US&DestZip=$new_zip&DestCountryCode=US &Weight=$w_total", "r"); if(!$fp) { echo "Didnt open $errstr ($errno)\n"; } else { fputs($fp,"GET / HTTP/1.0\n\n"); while(!feof($fp)) { $buffer=fgets($fp,100); if ( ereg "^(<\!TotalCharges>)([0-9]{1,4})(\.)([0-9]{1,})", $buffer, $regs)) { $fee .=$regs[2]; $fee .=$regs[3]; $fee .=$regs[4]; } echo "The Shipping Fee is $fee"; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Tracking shipments UPS, FEDEX, etc...
Doesn't UPS provide tools to do this? Not necessarily using PHP but I thought > -Original Message- > From: Dan Harrington [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 06, 2001 3:45 PM > To: Joe Sheble (Wizaerd); General PHP List > Subject: RE: [PHP] Tracking shipments UPS, FEDEX, etc... > > > No kidding :-) > > or calculating shipping costs. > > > > -Original Message- > > From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, September 05, 2001 11:47 PM > > To: General PHP List > > Subject: [PHP] Tracking shipments UPS, FEDEX, etc... > > > > > > has anybody written any routines or functions they'd care to share for > > parsing the tracking information out of UPS, FEDEX, or other shipping > > carriers tracking pages? > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Tracking shipments UPS, FEDEX, etc...
No kidding :-) or calculating shipping costs. > -Original Message- > From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 05, 2001 11:47 PM > To: General PHP List > Subject: [PHP] Tracking shipments UPS, FEDEX, etc... > > > has anybody written any routines or functions they'd care to share for > parsing the tracking information out of UPS, FEDEX, or other shipping > carriers tracking pages? > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]