It is possible that the UPS server is now running under IIS in which case it 
will have the same issue as the AuthorizeNet server mentioned on page 44 in 
part 2 (php|architect Sept. 2004) where SSL connections do not get cleanly 
closed. If this is the case and the code works perfectly otherwise then you can 
preced fgets with an @ and it will surpress the error.

  ----- Original Message ----- 
  From: Timothy Boyden 
  To: NYPHP Talk 
  Sent: Friday, April 20, 2007 3:57 PM
  Subject: RE: [nyphp-talk] UPS XML Shipping Rates Calculator?


  Eric,

  I purchased the two PHP Architect editions you mentioned and was able to use 
the code for my purposes. The code produces the correct result (the rate price) 
however the shipping class throws a warning as follows:


  Warning: fgets() [function.fgets]: SSL: fatal protocol error in 
C:\Inetpub\wwwroot\bitweaver\themes\styles\supercoups\ups_shipping.class.php on 
line 64

  Line 64 reads as follows:

  while(!feof($fp)) $upsresponse[]=fgets($fp, 4096);

  Any idea why this happens or should I just ignore the warning? I have 
display_errors turned on temporarily for debugging purposes otherwise this 
wouldn't show up.

  Thanks,

  Tim Boyden

  ---------------------------

  Timothy Boyden
  Network Administrator

  [EMAIL PROTECTED]


  SuperCoups®

   

  350 Revolutionary Drive | E. Taunton, MA 02718

  508-977-2034  | www.supercoups.com 

   

  We Support Alex's Lemonade Stand Foundation, 

  "Fighting Childhood Cancer One Cup At A Time"

  Donations Accepted at: www.firstgiving.com/SuperCoups

  ---------------------------

  Local Coupons. Super Savings.®




------------------------------------------------------------------------------
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dynamic Ink
  Sent: Thursday, April 19, 2007 10:35 PM
  To: NYPHP Talk
  Subject: Re: [nyphp-talk] UPS XML Shipping Rates Calculator?


  There is a detailed example along with a full explanation in an article that 
I wrote for PHP Architect:

  The Ultimate PHP 5 Shopping Cart, spanning Aug. and Sept. 2004

    ----- Original Message ----- 
    From: Timothy Boyden 
    To: [email protected] 
    Sent: Thursday, April 19, 2007 11:04 AM
    Subject: [nyphp-talk] UPS XML Shipping Rates Calculator?


    Hi All,

    Anyone have a code sample or link to an example for getting UPS shipping 
rates via UPS's XML Online Tools?

    I downloaded their documentation but the only examples they provide are in 
ASP or Java.

    Thanks for any help you can provide.

    -Tim
    ---------------------------
    Timothy Boyden
    Network Administrator

    [EMAIL PROTECTED]


    SuperCoups®

     

    350 Revolutionary Drive | E. Taunton, MA 02718

    508-977-2034  | www.supercoups.com 

     

    We Support Alex's Lemonade Stand Foundation, 

    "Fighting Childhood Cancer One Cup At A Time"

    Donations Accepted at: www.firstgiving.com/SuperCoups

    ---------------------------

    Local Coupons. Super Savings.®




----------------------------------------------------------------------------


    _______________________________________________
    New York PHP Community Talk Mailing List
    http://lists.nyphp.org/mailman/listinfo/talk

    NYPHPCon 2006 Presentations Online
    http://www.nyphpcon.com

    Show Your Participation in New York PHP
    http://www.nyphp.org/show_participation.php


------------------------------------------------------------------------------


  _______________________________________________
  New York PHP Community Talk Mailing List
  http://lists.nyphp.org/mailman/listinfo/talk

  NYPHPCon 2006 Presentations Online
  http://www.nyphpcon.com

  Show Your Participation in New York PHP
  http://www.nyphp.org/show_participation.php
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to