Would this be possible?
I just thought of it the other day when I was looking for a secure way to protect my marketed scripts. I was thinking just have a compiled file with the PHP code recorded in it. Have the file compiled to something like myscript.cphp
Then have an Apache module that recognizes the file and sends the php from the file to the php engine. This would in theory be possible would it not? If this was possible then people couldn't "steal" scripts because they wouldn't be able to see the source.
I personally think open source is a great feature but I would not sacrifise security for it. That got me thinking. You could simply compile your functions file with this technique. That would protect your work and still give clients the feel of an open source product.
What is everyone's opinion on this? Do you think its possible?
Concept - Hard Coded PHP Pages
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Concept - Hard Coded PHP Pages
Have you heard of IonCube or the Zend Encoder?Web Dummy wrote:Would this be possible?
I just thought of it the other day when I was looking for a secure way to protect my marketed scripts. I was thinking just have a compiled file with the PHP code recorded in it. Have the file compiled to something like myscript.cphp
Then have an Apache module that recognizes the file and sends the php from the file to the php engine. This would in theory be possible would it not? If this was possible then people couldn't "steal" scripts because they wouldn't be able to see the source.
I personally think open source is a great feature but I would not sacrifise security for it. That got me thinking. You could simply compile your functions file with this technique. That would protect your work and still give clients the feel of an open source product.
What is everyone's opinion on this? Do you think its possible?
Re: Concept - Hard Coded PHP Pages
Now I know its possible. Do you know of any free PHP encoders?d11wtq wrote:Have you heard of IonCube or the Zend Encoder?Web Dummy wrote:Would this be possible?
I just thought of it the other day when I was looking for a secure way to protect my marketed scripts. I was thinking just have a compiled file with the PHP code recorded in it. Have the file compiled to something like myscript.cphp
Then have an Apache module that recognizes the file and sends the php from the file to the php engine. This would in theory be possible would it not? If this was possible then people couldn't "steal" scripts because they wouldn't be able to see the source.
I personally think open source is a great feature but I would not sacrifise security for it. That got me thinking. You could simply compile your functions file with this technique. That would protect your work and still give clients the feel of an open source product.
What is everyone's opinion on this? Do you think its possible?
On The Ninja Space Goat's note:
restricting access to a functions file isn't unreasonable. Your still allowing access to all the other files which can then safely be modified. I personally think that compiled function files would be a benifit to php coders interested in selling their work.
Re: Concept - Hard Coded PHP Pages
Yes... that's true. I won't argue that. I like that so much of PHP is free and its community is so willing to share though... moving more towards compilation would make it more like Microsoft's crappy stuff that nobody can suggest fixes for.Web Dummy wrote:On The Ninja Space Goat's note:
restricting access to a functions file isn't unreasonable. Your still allowing access to all the other files which can then safely be modified. I personally think that compiled function files would be a benifit to php coders interested in selling their work.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: Concept - Hard Coded PHP Pages
Even though the open-source spirit is something we all enjoy as a community builder, there are those of us that would like to protect our intellecual rights. I've actually never had the need for encoding because my intellecual are lost with a contractThe Ninja Space Goat wrote:Yes... that's true. I won't argue that. I like that so much of PHP is free and its community is so willing to share though... moving more towards compilation would make it more like Microsoft's crappy stuff that nobody can suggest fixes for.Web Dummy wrote:On The Ninja Space Goat's note:
restricting access to a functions file isn't unreasonable. Your still allowing access to all the other files which can then safely be modified. I personally think that compiled function files would be a benifit to php coders interested in selling their work.
Re: Concept - Hard Coded PHP Pages
Yes I agree with that as well. Let's just hope it stays as open-source as possible without interfering with developer's rights to their own software. (if that makes sense)Jcart wrote:Even though the open-source spirit is something we all enjoy as a community builder, there are those of us that would like to protect our intellecual rights. I've actually never had the need for encoding because my intellecual are lost with a contractThe Ninja Space Goat wrote:Yes... that's true. I won't argue that. I like that so much of PHP is free and its community is so willing to share though... moving more towards compilation would make it more like Microsoft's crappy stuff that nobody can suggest fixes for.Web Dummy wrote:On The Ninja Space Goat's note:
restricting access to a functions file isn't unreasonable. Your still allowing access to all the other files which can then safely be modified. I personally think that compiled function files would be a benifit to php coders interested in selling their work.. But the bottom line is just because PHP is free, doesn't necesarily mean that it's products are