i have a form for entering data ,and all is working well!!
i got one program that calling my site and read a file that is return from a form of entering credit card details ,then the program is calling this file in my site and checking if there is problem with the card or its ok!!
what i need is the code to read the string for good and bad!
this is the starting code i found:
Expand|Select|Wrap|Line Numbers
- $myFile = "pull/INT_IN";
- $fh = fopen($myFile, 'r');
- $theData = fread($fh, 4);
- fclose($fh);
i want to have here the code like that:
if the string = 1111 ,the card is ok
if the string = 0000 ,the card is bad
sorry for my bad english :)
thanx