826 reputation
210
bio website jay.sh
location London, United Kingdom
age 23
visits member for 1 year, 9 months
seen Jun 22 at 20:30

Oct
14
awarded  Yearling
Feb
25
awarded  Constituent
Feb
18
awarded  Caucus
Jan
13
comment How to protect my php code running on a client server?
Please explain how a user login feature will work, if the PHP is hosted on a remote server (i.e. client -> clientServer -> developerServer). Also explain where the database is.
Jan
13
comment How to protect my php code running on a client server?
I did not claim you can reconstruct PHP from HTML. I asserted you can reconstruct PHP from PHP. The question is about protecting the PHP code itself, not its output.
Jan
13
comment How to protect my php code running on a client server?
In essence, you have: $code = fetch_code_via_api(); eval($code);. I raise you: $code = fetch_code_via_api(); file_put_contents('code1.txt', $code); eval($code); followed by changing the original code to eval(file_get_contents('code1.txt')); and the code is mine. At which point it'd probably be easier/cheaper to have bugs fixed internally than to pay you some fixed fee for usage of your API. If the code runs on the client, there is no way you can prevent it being taken. As I said in my answer, IonCube isn't perfect either, but it's close.
Jan
13
comment How to protect my php code running on a client server?
That wouldn't work anyway, since the client is open source so the code can be tampered with (i.e. they can change if ($response == $expected_result){ to if (true){ and they are done).
Jan
13
answered How to protect my php code running on a client server?
Nov
17
awarded  Nice Answer
Nov
17
answered How would you react if someone told you your code is a mess?
Nov
15
answered Verify uniqueness of new content
Nov
12
comment Unit test: How best to provide an XML input?
Option 2 is bad because, ignoring all else, you're going to embed a 30KB string in your code. Option 3 doesn't scale for the next time the OP wants to have large XML input.
Nov
12
comment would a composite design pattern be useful for group membership?
I superseded that with "i do need something scalable, and flexible". If the database is fundamentally wrong, the solution will never scale.
Nov
12
awarded  Custodian
Nov
12
reviewed Reviewed How do you know when you are tired of programming in your life?
Nov
12
comment Immutable Method in Java
Please improve your accept rate.
Nov
12
answered RESTful API design - should a PUT return related data?
Nov
12
revised would a composite design pattern be useful for group membership?
added 276 characters in body
Nov
12
answered would a composite design pattern be useful for group membership?
Nov
11
comment Suggestions for html tag info required for jQuery Plugin
Start from the beginning, and ask yourself why you want this plugin. Many PHP frameworks (CakePHP, CodeIgniter) offer full HTML-form suites which will generate <selects> and have the correct one selected (either automagically based on the form post, or something you supply, or a default) without writing a single line of HTML.