LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-21-2008, 04:40 AM   #1
brain_bucket
LQ Newbie
 
Registered: Aug 2003
Posts: 15

Rep: Reputation: 0
GPL for PHP


This isn't exactly a question concerning Linux in particular, but has to do with the GNU GPL. In brief my question is this: If I've written a PHP web app which borrows GPL'd code, and I run it on a public server, am I required to release the source of my web app?

In terms of compiled languages, the GPL is pretty clear about this. If you release the binaries to the public, you must also release the source. But, when it comes to PHP, there aren't really any binaries in the first place. One possibility is that running the PHP script on a public web server is equivalent to publicly distributing binaries, but I'm not so sure that that's correct. Running a PHP script is probably closer to distributing the output of a binary, rather than distributing the binary itself. This makes me think that GPLing PHP code is rather useless. It seems that you'd never be required to release the source.

So, any GPL experts here know how this works with interpreted (eg PHP) languages?

Last edited by brain_bucket; 05-21-2008 at 04:46 AM.
 
Old 05-21-2008, 05:59 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
GPL states that you have to make the source available aupon request. regardless of binary or non binray.

it is also ok to use 'snippets' of gpl'd code, and use a different license for the app as a whole though. (as long as you dont use LGPL'd code).

there are also ways to 'protect' php code (e.g. zend guard or obfuscators) yet if you release php code under GPL it makes no sense to use such methods.
 
Old 05-21-2008, 06:57 AM   #3
redgoblin
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 189

Rep: Reputation: 41
I'm certainly not a an expert, nor am I a lawyer. So take this advice with caution.

Quote:
GPL states that you have to make the source available aupon request. regardless of binary or non binray.
But only if you distribute it and I think that's the key difference. In the case of a dynamic website the script/programs used are not distributed. Rather they are used to generate the html source. The html is viewed much like the letter you might produce from a GPL'd Word Processor. It's the output of the program

Even the FSF are a bit vague on this one. But I believe there are some changes in the GPL3 to address this.

If not releasing your changes when asked for is important to you then seek some finer legal clarification of the contract or at least get in contact with the Free Software Foundation for some clarification.

I'd be interested to hear about what you find out.
 
Old 05-21-2008, 07:20 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
a website is a kind of making software published - and then also, if gpl'd and requested, you need to make the source available.

if you dont want to make your source available, you can simply utilize gpl'd software, but your are not required to make your website gpl'd and therefore are not requried to make source available
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gpl 2 hylke General 5 02-04-2007 12:20 PM
Differnets between GPL-1 , GPL-2 ?? isilinux Linux - Distributions 1 12-05-2006 04:16 PM
Regarding the GPL... pujolasdf Programming 5 04-01-2005 03:28 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
what GPL says? 286 Linux - Newbie 1 01-26-2004 05:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration