Page 1 of 1

Protecting php script's agains copying

Posted: Tue Feb 24, 2009 9:34 am
by spiricon_x
Hi everyone.
Let's say I have a application that uses a mysql database on runs on Apache web server. All this is installed on a windows machine. How would you recommend to make it difficult or impossible to run that application on other machines? Maybe my question is very vague, but I have no other idea how to say it :)
Thanks for your help.

Re: Protecting php script's agains copying

Posted: Tue Feb 24, 2009 11:33 am
by ~BlitZ
Hmm, All i can think of is Secure your code as you go. It makes it alot simpler, Although remember, They cannot see the PHP source, Just the HTML output to the browser, Most likely all they can take is text, tables & pictures.
A few tips that i have learnt, Make sure you use only Global Variables you need, Hide most error messages when the are ouputted to the browser, You can easily do this by turning error_reporting off in your php.ini files & finaly try to use real_escape_string as much as you can.