SunQuest
           Development Software
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementDevelopment Software

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 10th, 2007, 09:21 AM
wordcall wordcall is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 5 wordcall User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 41 m 8 sec
Reputation Power: 0
PHP Open or Closed source?

Heh, i've seen the concept of open/closed source, but how does it apply to php? I think if you're going to develop something in PHP the source is always available or iam wrong?

Reply With Quote
  #2  
Old March 16th, 2007, 07:44 AM
unity100's Avatar
unity100 unity100 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Location: Antalya
Posts: 71 unity100 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 38 m 23 sec
Reputation Power: 3
Send a message via ICQ to unity100 Send a message via MSN to unity100 Send a message via Google Talk to unity100 Send a message via Skype to unity100
God. of course its not correct.

What you produce ON php is going to go with the license you choose it to have. GPL if you choose GPL, free software if you choose so, proprietary if you choose that.

Reply With Quote
  #3  
Old March 19th, 2007, 07:07 PM
jwdonahue jwdonahue is offline
Bellevue WA, USA
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2004
Location: Bellevue Washington, USA
Posts: 1,038 jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 23 h 14 m 51 sec
Reputation Power: 66
Don't confuse licensing with whether the source code will be available.

Pretty sure php is a scripting language, so your scripts, will be "open source" in the sense that they will be readable by your customers (unless there is a php compiler available?). Your license can place restrictions on redistribution of that code. This doesn't mean that the php code will be transmitted to every browser that views a php web page. The server hands the php code off to the interpreter which emits content of one form or another and/or has side effects on the server.

If you have a proprietary algorithm, the detailed implementation of which you wish to conceal from your customers, php might not be the best form of distribution. You can implement such algorithms in a compilable language and then call those functions from a php interface. I'm pretty sure php supports calling C functions, possibly others.
__________________
It's not always a matter of what you can do with a language, but whether you should. [JwD]

Reply With Quote
  #4  
Old April 9th, 2007, 08:54 AM
eurosvn eurosvn is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 9 eurosvn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 59 m 53 sec
Reputation Power: 0
To protect source of your PHP script you can use any php compiler. As far as I know the most popular php compilers are Ioncube and Zend.

Reply With Quote
  #5  
Old July 23rd, 2007, 04:22 PM
Fluffy Convict Fluffy Convict is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2006
Posts: 34 Fluffy Convict User rank is Lance Corporal (50 - 100 Reputation Level)Fluffy Convict User rank is Lance Corporal (50 - 100 Reputation Level)Fluffy Convict User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 h 16 m 8 sec
Reputation Power: 2
And if you would encrypt your scripts, use Zend. It has a much more widespread parser than IonCube :-)

Reply With Quote
  #6  
Old August 1st, 2007, 08:32 AM
ioncube ioncube is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 ioncube User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 13 sec
Reputation Power: 0
Quote:
Originally Posted by Fluffy Convict
And if you would encrypt your scripts, use Zend. It has a much more widespread parser than IonCube


I think you mean Loader rather than parser as when encoding, the parsing and compilation is made at encoding time.

As the folks at WHT will tell you, (webhostingtalk is where many hosters hangout), in practice you can generally run encoded files from Zend or ionCube on most servers, although there are a few notable exceptions such as Yahoo! who don't support encoded files from any vendor. There's also been a move away from using Zend Optimiser by some people unless absolutely necessary when it was realised that the net effect can be a machine slowdown rather than acceleration.

One of the features that we saw early on as very beneficial for end users was making it possible to run encoded files without server changes, and whilst this technique is not supported by every host, the "runtime install" method is widely supported so that hosts don't need to install the Loader themselves and the Loader is installed on the fly when required. Although installing in the php.ini file is best as it avoids the overhead of calling dl(), this means that it's one less thing for the host to install.

Producing code in C as suggested by another poster is also a way to go, perhaps combined with encoding. To do this, a PHP module could be created that gets installed into PHP at runtime and that provides a new set of PHP functions. Although not a problem for installs onto dedicated servers, the downside with this is that there would be problems when distributing modules to shared servers because of the distrust factor. Market leaders such as ourselves and Zend have established trust and world wide brand recognition with a proven track record for more than half a decade, but no host would install an unknown module.

There are some notable advantages to using custom modules though for security sensitive installations. With the runtime core of PHP plus all the libraries being opensource, even when using encoded files, runtime behaviour can potentially be observed by modifying PHP because all builtin PHP functions map to opensource C functions. Locking files to particular machines and having trojan detection such as tripwire can help minimise the chance of someone being able to use or substitute a modified version of PHP to expose sensitive data, but these are considerations that can get ignored.

For general script protection, encoding PHP is sufficient though, with the primary benefit being the opportunity to lock down evaluation code, and the opportunity to license scripts to specific machine by domain, IP and MAC (ethernet address) being a useful secondary benefit.



hth.

Reply With Quote
  #7  
Old August 1st, 2007, 09:12 AM
ioncube ioncube is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 ioncube User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 13 sec
Reputation Power: 0
As a followup, unity100 suggested that you should be able to choose the licensing model for your code and then go for it. In general this is certainly the case, but the case a few months ago of the Joomla team shooting themselves in the foot and being pursuaded that they should prohibit developers of Joomla extensions from making them closed source shows that it's not always that simple. For the leading developers in the thriving Joomla market, many of whom use our technology, this understandably caused quite a stir with talk of forking Joomla to a version that was closed source friendly and various other solutions.

Going back to the original subject of it not being worth developing free software, it actually can be useful and worth it as an adjunct to other commercial offerings. Open source code also need not be free, and there are ways to derive revenue from open source code. However those ways do not work well for all sizes of business, and for the smaller companies, their only revenue stream is likely to be from selling code hence the importance to protect it and maximise their revenue stream. Once they get established, having free versions and perhaps contributing open source code as well becomes more feasible, and many do this.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementDevelopment Software > No worth developing free software


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway