PHP Classes

CREDITCARD_CLASS

Recommend this page to a friend!

      CreditCard Class  >  All threads  >  CREDITCARD_CLASS  >  (Un) Subscribe thread alerts  
Subject:CREDITCARD_CLASS
Summary:errro in creditcard class
Messages:1
Author:anant
Date:2009-09-21 14:50:58
 

  1. CREDITCARD_CLASS   Reply   Report abuse  
Picture of anant anant - 2009-09-21 14:50:58
i tried to use this example, but it didnt worked for me,
i downloaded the zipped code , extracted to the root folder of machine. then opened as http://localhost:8080/creditcardclass-2002-02-16/creditcart.php
nothing is working fine for me it is giving wierd string like this

\n", $card, (($ccret = $cc->check($card))?"valid":"false")); if($ccret) { printf("The card type is %s or %d
\n", $cc->detectTypeString(), $cc->detectType()); printf("Card number: %s
\n", $cc->getCardNumber()); } else printf("%s
\n", $cc->strError()); } ?>
Card:

card : [ ]
[submit]

could you please help me out to solve this problem why printf or echo statement is not working,when i tried to debug in nusphear it worked fine.