developing site.Selling it.How to hide php code?

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

evilcoder
Forum Contributor
Posts: 345
Joined: Tue Dec 17, 2002 5:37 am
Location: Sydney, Australia

Post by evilcoder »

yes, yes i do. everyone steals code except me, thats right....... Dont blame me for my stupidity i work at a boring seemingly endless job, all i have to pass the time is answering questions from forums. After 12 hours sitting my backside, then realising i have to work another 4 hours, i get a bit narky.
kcomer
Forum Contributor
Posts: 108
Joined: Tue Aug 27, 2002 8:50 am

Post by kcomer »

Find a new job
User avatar
Elmseeker
Forum Contributor
Posts: 132
Joined: Sun Dec 22, 2002 5:48 am
Location: Worcester, MA

Post by Elmseeker »

Kcomer said:
To hide the db structure of mysql, I don't think it can be done.
Sure it can, simply host the DB on a remote server that they don't have access to...they can never see the schema that way...I am not saying any of this is "right" but it is a way to do it...

Gen-ik wrote:
I guess we should just all agree to disagree on this one.. and stop this turning into one of those never ending 'to copyright or not to copyright, that is the question' posts.
I agree, copyrighting material is a personal choice not a must IMHO...some stuff I write I do copyright most I don't bother. Most of the time copyrighting php code, to me anyway, is a waste of time and energy as would be going after anyone who decided to steal despite your copyright.
kcomer
Forum Contributor
Posts: 108
Joined: Tue Aug 27, 2002 8:50 am

Post by kcomer »

why not just host the php site on a remote server as well, along with the database. Of course this does nothing close to what you aked but it's an answer, even if it's wrong(not right).
User avatar
Elmseeker
Forum Contributor
Posts: 132
Joined: Sun Dec 22, 2002 5:48 am
Location: Worcester, MA

Post by Elmseeker »

Yeah someone else had suggested that as well, I am assuming they want all of the URLs to be on here server so the way to do it would be give them a php page that contains:

Code: Select all

<?
include("http://my.server.com/fullcode.php");
?>
IMHO it's not a bad way of doing it, but as Kcomer just pointed out it may not be right. Another issue is of course if these people are paying you to develop their site for them and you're writing code in order to do that, they technically own allo copyrights to that code because you have coded it as a "work for hire". If you are reusing old code you wrote BEFORE you were hired to do their site it's all good...otherwise you're seriously looking at the possibility of a lawsuit if you try to hide the code from them...
User avatar
James Pelow
Site Admin
Posts: 51
Joined: Sat Jun 01, 2002 5:28 am
Location: Killiney, Co. Dublin, Ireland
Contact:

Post by James Pelow »

Why not get the MD5 of each file and then if the string doesn't match block the script..... presumably you would need to make the MD5 checking code hard to find... or even use one of those encryption things memtioned earlier.

-James
encoder4php
Forum Newbie
Posts: 5
Joined: Thu Jan 02, 2003 7:02 am

Encoder4php

Post by encoder4php »

Try to use http://encoder4php.pag1.com

It's easy to use and install!!!
Post Reply