473,748 Members | 2,567 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

compiling php scripts - does it really work?

I am confused regarding the status of development for converting php
scripts into compiled, distributable files. Can anyone provide a
summary of the current situation?

I have a set of about 200 php scripts that all work together to create
a CMS-like system. I've worked a long time on those scripts, and they
will, hopefully, someday make a living for my family, but I need to
take measures that to protect the code. It seems to me that the best
way to do that is to put all the scripts into a single, compiled
executable and run that on the server, instead of the human-readable
php.

Is this possible, and, if so, what are the best tools for the job?
Jun 2 '08 #1
3 1412
On 20 Apr, 20:41, firewoodtim <firewood...@ca vtel.netwrote:
I am confused regarding the status of development for converting php
scripts into compiled, distributable files. Can anyone provide a
summary of the current situation?

I have a set of about 200 php scripts that all work together to create
a CMS-like system. I've worked a long time on those scripts, and they
will, hopefully, someday make a living for my family, but I need to
take measures that to protect the code. It seems to me that the best
way to do that is to put all the scripts into a single, compiled
executable and run that on the server, instead of the human-readable
php.

Is this possible, and, if so, what are the best tools for the job?
Yes - but be warned there are lots of PHP obfuscators out there
masquerading as compilers/proper encryptors. As such they will slow
down your code significantly.

I only have experience of the bad sort - but hope that Zend Guard or
Turck encoder might do a better job.

C.
Jun 2 '08 #2
NC
On Apr 20, 12:41 pm, firewoodtim <firewood...@ca vtel.netwrote:
>
I am confused regarding the status of development for converting php
scripts into compiled, distributable files. Can anyone provide a
summary of the current situation?
There are commercial PHP compilers that do not rely on Zend engine:

http://www.roadsend.com/home/index.php?pageID=compiler
http://www.php-compiler.net/

(The last one is Windows-only)
I have a set of about 200 php scripts that all work together to create
a CMS-like system. I've worked a long time on those scripts, and they
will, hopefully, someday make a living for my family,
That, in my opinion, is not likely to happen. To pull it off, you
need
either a Microsoft-size marketing machine (which they use to sell
SharePoint) or a razor-sharp focus on a well-defined market niche (in
which case you still need a boatload of money; witness SugarCRM
raising
another $20 million in February, which brings the total funding
raised
from outside sources to $46 million).
but I need to take measures that to protect the code.
If you do that, your target audience is automatically limited to
those
with dedicated servers; you can't run an executable on a shared
server.

Rather than play "code protection" games, consider versioning. Give
away the "Community Edition", sell the "Profession al Edition" for
deployment on customers' hardware (with an option to buy a
preconfigured
"appliance" ), and offer the "Enterprise Edition" strictly as a hosted
solution.

Cheers,
NC
Jun 2 '08 #3
On Sun, 20 Apr 2008 15:41:32 -0400, in comp.lang.php firewoodtim
<fi*********@ca vtel.net>
<qe************ *************** *****@4ax.comwr ote:
>| I am confused regarding the status of development for converting php
| scripts into compiled, distributable files. Can anyone provide a
| summary of the current situation?
|
| I have a set of about 200 php scripts that all work together to create
| a CMS-like system. I've worked a long time on those scripts, and they
| will, hopefully, someday make a living for my family, but I need to
| take measures that to protect the code. It seems to me that the best
| way to do that is to put all the scripts into a single, compiled
| executable and run that on the server, instead of the human-readable
| php.
|
| Is this possible, and, if so, what are the best tools for the job?
Have a look at:
http://www.nusphere.com/products/nucoder.htm
http://www.nusphere.com/products/phpexpress.htm
-- -------------------------------------------------------------
jn******@yourpa ntsyahoo.com.au : Remove your pants to reply
-- -------------------------------------------------------------
Jun 2 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3067
by: David W. Fenton | last post by:
Today I was working on a hideous old app that I created a long time ago that does a lot of showing/hiding/resizing of fields on one of the forms. I had used constants to store reference values for many of the top/height/left settings. I noticed that some of the constants were defined by using other constant values, and I was impressed that VBA could do that. Here's an example: Const row1Top = 1.0208 * 1440 ' top of first row Const...
7
9999
by: Clint Herron | last post by:
Howdy! I posted this question on CSharpCorner.com, but then realized I should probably post it on a more active newsgroup. This will be my only cross-post. I'm creating a game engine, and using CodeDOM for my scripting needs (I realize I could use yacc or something else, but I wanted to try using CodeDOM -- this is more of an exercise for me to learn this stuff). Well, I compile my in-game scripts just fine. See appendix A for my code
1
1729
by: Mike Hutton | last post by:
I need some help. I am trying to set up our development environment so as to make life easy for my fellow developers (none of whom have used ASP.NET or VS.NET before). We are developing our intranet which will comprise basic content with a number of small data-driven ASP.NET applications. I need to keep things simple, so I need to avoid stuff which needs too much in-depth knowledge to work.
45
4747
by: Pat | last post by:
its seems asp.net validation doesn't fire when using FireFox? Tested a page and it doesn't fire. It seems the javascript doesn't fire Any ideas?
0
9744
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile. I need it to be compiled with threads. Anyone have any wisdom on how best to do this? Here's a transcript of my latest attempt. It's long; you might want to skip to the bottom, where I try "make" and the fatal errors start happening.
0
1457
by: phoolimin | last post by:
Dear all, I am trying to embed python into another scripting language, to do this I need to solve a number of problems on importing or compiling python script. First let me state what exactly I want to do, that is, I want the following syntax to be supported in the host language which I am developing: ###################################################### # scripts in the host language
8
2203
by: WebSnozz | last post by:
I have an application written in C that does a lot of low level stuff. It does a lot of things like casting from void*'s. I want to create a new GUI for it in either C# or MC++, but reuse the existing code. The options I've considered so far: 1. Create a new MC++ GUI project and add the *.c files to them and mark them with pragma unamanged. However, the /clr option does not compile *.c files, so I rename them to *.cpp, and now they...
2
1669
by: giovannifreda | last post by:
I am new to python and I am wondering if there is a way to take a python script and turn it into an object of some kind such that the python system doesn't have to take the script and compile it down to python code every time i try to run the script in my program. I have a lot of scripts and they are getting used a lot so this is a performance question really. If anybody knows how to take the .py file and "compile" it into byte code that i...
10
2207
by: Tomás Ó hÉilidhe | last post by:
I'd post this on a gcc newsgroup but I'd be more productive talking to the wall. Anyway, let's say someone throws some source code at you for a particular program and says, "Just compile it, it works fine". Now admittedly, I tend to have a phobia of this situation because I recall from my Windows days the numerous times I was given code that was supposedly "good to go", but which failed to compile for some stupid reason. Of course I...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9562
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.