Current location: Hot Scripts Forums » General Web Coding » JavaScript » Hiding/protecting source code and searching the forum!

Hiding/protecting source code and searching the forum!

 
Prev Previous Post   Next Post Next
  #10 (permalink)  
Old 03-03-09, 04:58 PM
wirehopper's Avatar
wirehopper wirehopper is offline
Community Liaison
 
Join Date: Feb 2006
Posts: 1,565
Thanks: 2
Thanked 25 Times in 25 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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Method for searching and storing <html> code GrnEydGuy PHP 2 03-09-06 12:04 AM
Source Code Bravi JavaScript 6 02-09-05 06:03 AM
Look for a source code bionicsamir Script Requests 3 01-29-04 06:21 PM


All times are GMT -5. The time now is 08:16 AM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.