Msg#: 4052701 posted 9:58 pm on Jan 1, 2010 (gmt 0)
I have a PHP program that I have created and would like to offer to customers. I currently use IonCube for encryption but I'm finding many customers don't know how to enable support on their hosting/server for this type of encryption.
I'm looking for a better way to protect my code while still offering it to my customers. Does anyone here have any experience with offering a PHP application that works across most hosting accounts but still protects the PHP code?
Is it possible to setup an external "offsite" PHP include that houses all the PHP functions? Or, do most hosting accounts not support this?
Msg#: 4052701 posted 11:07 pm on Jan 5, 2010 (gmt 0)
I have been thinking about this same issue lately with my most recent project. But you are going to have issues setting up trust relationships between servers, and in most shared enviroments this wont be possible.
You could build your own API that accepts HTTP requests and return the data in JSON or XML.
You supply open code wrapper that makes calls to this api via curl or fopen and return the work. Probably would be a lot of work to recode your application, but might be worth it to keep it safe.
Msg#: 4052701 posted 1:18 pm on Jan 6, 2010 (gmt 0)
Thanks Willis! The XML is a good idea but might be a bit taxing on my server if I get multiple people using my application.
I already offer hosting and considered the option of offering the hosting with the application and not providing them FTP access.
Do you know anything about setting up an API or Serial for the code? I already created a PHP function that creates a serial number based on their domain but it is in the code so they would be able to see the function and how it works.