Web Hosting Talk







View Full Version : compiling php scripts?


chuckt101
07-26-2001, 04:19 PM
Hi,
is it possible to compile php scripts to executables so random people can't just cd into my dir and view my code? :angry:

:eek:

SI-Chris
07-26-2001, 04:28 PM
Not compile, but for only $2,400 you can encode it:
http://www.zend.com/store/products/zend-encoder.php

ffeingol
07-26-2001, 04:30 PM
The only option that I know of is the Zend Encoder (http://www.zend.com/store/products/zend-encoder.php). It looks good, but a bit pricy for most (2,400 USD). I believe you also have to have the Zend Optimizer installed on the server to run it as it decodes the code to run it.

Frank

chuckt101
07-26-2001, 04:32 PM
Looks nice.. but.. thats a tad expensive for me :bawling:

kunal
07-27-2001, 12:45 AM
im looking for something cheaper, like zend, myself... why cant the open source industry come out with something like zend?? hmph!! :D

Jedito
07-27-2001, 01:38 AM
I think that this can help you. If so.. I save both $2400 :)
Kunal you can give the phpsupportdesk and Argon, well we can work in something else :D (j/k)
http://apc.communityconnect.com/
<EDITED>
Sorry That is an Alternative for Zend Cache
</Edited>
http://pbc.sourceforge.net/
PHP Encoder

kunal
07-27-2001, 05:56 AM
lol @ Jedito...

I think i will get a license of zend... hmm... should be worth it from what i read..

ill take a look at the links.. thanx :)

jks
07-27-2001, 08:52 AM
Originally posted by kunal
lol @ Jedito...

I think i will get a license of zend... hmm... should be worth it from what i read..


Don't waste money on Zend Encoder.

Download the APC (Alternative PHP Cache). In the newest versions it can work as an encoder too (though it's probably not mentioned on their homepage yet).

Just setup APC for mmap, and let it save the files in your directory. Afterwards you can remove your PHP files from the server, and run only on the encoded files.

<<MOD EDIT:>>
You may not post URLs in your posts. Please set up a signature in your profile.
<</MOD EDIT>>

(SH)Saeed
07-27-2001, 12:13 PM
But will they work on another server that does not have APC installed? Because I think kunal wants to protect the source of his phpdesktop program that he's _selling_ to others. And Zend would be a better option since almost everyone have it installed on their servers.

jks
07-27-2001, 12:35 PM
Originally posted by Mr. Amazon
But will they work on another server that does not have APC installed?

Nope. But if you use the Zend Encoder, you'll need the Zend Optimizer installed... same thing.

(I for one would rather _not_ have the Zend Optimizer installed on my servers...)


Because I think kunal wants to protect the source of his phpdesktop program that he's _selling_ to others.

Well, they provide a means of encoding your source. It isn't overly complicated to reverse the process and decode the source however.... (you do ofcourse not get something similar to the original source from this, but it is substantially better than normal decompiling of C programs or similar).

<<MOD EDIT:>>
You may not post URLs in your posts. Please set up a signature in your profile.
<</MOD EDIT>>

(SH)Saeed
07-27-2001, 01:11 PM
Originally posted by jks
But if you use the Zend Encoder, you'll need the Zend Optimizer installed... same thing.

I know that, but I don't agree it's the same thing since Zend Optimizer is included in a lot of PHP 4 install packages and you will find it installed on most servers.