View Single Post
  #10 (permalink)  
Old 03-03-09, 04:58 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
It didn't really take long to convert, it was kind of fun. Maybe a day or two.

The syntax is fairly similar between javascript and PHP, so I picked out the code that they wanted to protect, converted it to PHP, and then added a bit of javascript to call that code to get the results required.

The code was used to calculate the cost of something, and the computation was very complex. I gave up trying to actually calculate it and created a matrix, which contained the fees based on the state of a bunch of radio buttons. The matrix is what I put into PHP, then I created javascript to send the input values and request the value.

If I had the code I'd send it to you. If you use an AJAX toolkit like dojo (http://dojotoolkit.org), it will probably take you a fraction of the time it took me.

Good luck!
Reply With Quote