Protecting php script's agains copying

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
spiricon_x
Forum Newbie
Posts: 1
Joined: Tue Feb 24, 2009 9:05 am

Protecting php script's agains copying

Post 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.
~BlitZ
Forum Newbie
Posts: 22
Joined: Mon Feb 23, 2009 5:36 pm
Location: United Kingdom

Re: Protecting php script's agains copying

Post 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.
Post Reply