PHP Classes

modulus error

Recommend this page to a friend!

      TOTP  >  All threads  >  modulus error  >  (Un) Subscribe thread alerts  
Subject:modulus error
Summary:Under php 5.2.11 get bool(false) in modulus
Messages:11
Author:Christopher taylor
Date:2009-12-08 09:00:00
Update:2009-12-09 10:40:35
 
  1 - 10   11 - 11  

  11. Re: modulus error   Reply   Report abuse  
Picture of Protung Dragos Protung Dragos - 2009-12-09 10:40:35 - In reply to message 10 from Christopher taylor
Sorry about that, i missed it :)

I have no clue why is this happening, there is no reason i can think of why the modulo returns false. It may be some wired config on the server. i tried to open a free account but the hosting server is down (actually i get a forbidden response).

Have you test it on another server ? If it works everywhere else then i recommend you to switch to another free hosting.

If you still want to keep this free hosting just change the code and use fmod().Maybe put a if/else and use it only if the number of digits is 10.

Do you also use the checksum ? If so, set it to false and then use 10 digits.

 
  1 - 10   11 - 11