isnt there ANY WAY i can stop right clicks? (no Java) and dude yuh are right yuh dont see any source from other PC but isnt there any way they can steal it?
The only way to stop right clicks is really in JavaScript (not Java which you just referenced for some reason). It has to be client side script of some sort. The server can't enforce something client side, simple as that. Just as it can't ensure your CSS will render exactly as you expected (or at all!). Yes, you can serve the JavaScript up with PHP, but for something that static, I can't really see why you'd want to. The only way someone can copy your original PHP source is to either have bad security on your server (for example, anonymous FTP access to your public_html directory) or to have your server set up so badly that the PHP doesn't get parsed... but you'd notice that straight away I would hope. I think I'm going to be like mad4 and say "that's all there is to it". There's enough information in this thread for you to work out what you need and if there's not, then I would respectfully suggest trying to understand the actual process that PHP goes through, what it spits out and how communication between client and server take place. Client-server coding is very different to normal client only coding (eg. HTML, general JavaScript and general Flash). There are some concepts that take a little while to get straight and I would say that anyone who says "hey, I understood everything about the concepts straight away" is either a true guru, a liar, doesn't remember or doesn't know all the concepts yet Hey, I'll be the first to admit that I still screw up sometimes setting cookie values then wondering why I can't access them straight away!
ROFL dude, why are you so paranoid? No need to encrypt php since it's parsed by your webserver. Only people who have the source can see what the actually code is, and your server will never give it to anyone except if you put it on a non-php server. If your asking this because you want to sell a script and make sure no one will resell it, you could buy http://www.sourceguardian.com/faq/index.php or Zend Encoder which is available for $2400. But I'm sure your ready to pay the price if you're that paranoid.
If you *need* to obfuscate your PHP code, use PHPCodeBuster. It's free and it uses the actual PHP parser to determine what's what. For this sort of thing, though, you have to be careful that your code doesn't assume AUTOGLOBALS, doesn't use extract and so on. PHPCodeBuster is an all or nothing approach: it doesn't let you choose what things to obfuscate (it's not encryption as such). I've made a lot of additions to that codebase to let you pick and choose what things to change and so on. That code is in the hands of the original developer at the moment, but I'd be willing to share it for a price My additions make PCB one of very few (if any) PHP obfuscators that will hide constants, too. Anyway, Google it up.
the sourceguardian i could buy it but i'm affraid its easy to decode it so its not that safe... ANYONE HAS A REAL SOLUTION
F*cking hell mate do you work for NASA or something????? Nobody can get your PHP code, you only encode it if you are selling a commercial script. Encoding is not needed for normal applications. Open up your site in your browser, click view source. Do you see your PHP code? No. Nobody else can either.
Make sure you come back later and show us your site. I can't wait to see what all the fuss has been about
i have so many errors on it i encrypted it like 5 times and its all ruined!!! oh well i'll just have 2 do it over and over again THAT SUCKS
Hey, how about giving us the real reason you need that much "protection". If I were to find this kind of website, I wouldn't even want to deal with that much protection, it's useless. By the way, I hope you are using a SSL https secure tread between visitors and server, otherwise you're screwed.
Why are you even trying to do this. Remember 1 thing, whatever you do to hide source, there is someone else trying to find out ways to see your code. I prefer leaving it open.
I'm assuming a little here that your application is unique and couldn't be found anywhere else, that's why you are so keen on protecting it? Unless you are very sure that you can't find it anywhere else on the internet, maybe you have a case....but I highly doubt it. All kinds of coding are so easily accessible nowadays...