Re: [PHP] PHP-FPM security.limit_extensions
On Feb 23, 2012 2:46 PM, Paspao pas...@gmail.com wrote: Hello , I need to parse PHP files with no extension , I was getting access denied error than I discovered that it was cause by security.limit_extensions option in PHP-FPM config file. I tried to add the script name (testscript) to the configuration file and now it works: security.limit_extensions = .php .php3 .php4 .php5 testscript I do not want to add all filenames and then restart php-fpm each time, is there a way to parse all file without extension or a wildcard to put in configuration? Thank you P. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I'm not sure why would you want to do that. Why dont you use rewrite rules instead? -- Nilesh Govindrajan http://nileshgr.com
Re: [PHP] Login
There is no such function! You have to write the code. On Wed, Oct 8, 2008 at 6:14 AM, Terry J Daichendt [EMAIL PROTECTED]wrote: I want to open a page if a login is correct and another if not. What is the function to open a page in PHP? Can you show me a simple example of the syntax? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Nilesh Govindrajan ([EMAIL PROTECTED]) iTech7 Site and Server Administrator www.itech7.com
Re: [PHP] Login
On Wednesday 08 October 2008 06:14:33 am Terry J Daichendt wrote: I want to open a page if a login is correct and another if not. What is the function to open a page in PHP? Can you show me a simple example of the syntax? There is no such function. You have many options like redirecting a user- header('Location: newfile.php'); showing another file- include('newfile.php'); or using fopen to open a HTML file and print it (this one is very rarely used!). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Zend_Form: How to change positions of elements ?
Hi, I am new to Zend Framework. I would like to know how to change the positions of elements created using Zend_Form. I mean that how do I place two elements one near other instead of in a top-down manner ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [fw-general] Re: Zend_Form: How to change positions of elements ?
On Tuesday 30 September 2008 07:13:11 pm Colin Guthrie wrote: Nilesh Govindrajan wrote: I am new to Zend Framework. I would like to know how to change the positions of elements created using Zend_Form. I mean that how do I place two elements one near other instead of in a top-down manner ? Just so you know it's generally considered bad netiquette to cross post unnecessarily. As this is a Zend specific query, the Zend Framework mailing list would have been the first port of call here. I've not gotten round to learning Zend_Form yet, so can't help you yet! Col Both of the lists are related to PHP. So if somebody who's not on Zend List but is on PHP List, he can help me out. signature.asc Description: This is a digitally signed message part.
Re: [PHP] db_* = pg_*/my_*/ifx_* ?
On Saturday 27 September 2008 10:01:51 pm Michelle Konzack wrote: Hello, I am using some crapy software, which does not allow switching the Database, where I use PostgreSQL since 1999 and those crapy software force me to install mysql, sqlite and other databases which let the administration, maintenance AND COSTS explode... My own tools are generaly build for PostgreSQL but very adaptive, since I use and include (e.g.: db_pgsql.inc) with the neccesary functions. This mean, I can create a db_mysql.inc and change the include path and all is working as expected. Now my question is: Is there a tool which support such thing already or do I have to do this crap for each software I code? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant you'll have to change the sql queries in your applications, etc., etc. and also you will have to move data from pgsql to mysql by some method (like XML ?) signature.asc Description: This is a digitally signed message part.
Re: [PHP] Making $_POST and $_FILES play together nicely
On Tuesday 30 September 2008 09:41:33 pm Mike Potter wrote: Hi, I have a PHP5 .class file that validates form inputs and sends notification emails from contact pages. Recently a client wanted to add a file upload function. No sweat, I thought. Well, I can't get the $_FILES portion to validate properly in my .class file, since it apparently only registers the $_POST vars. This is the section of code, *currently functional as-is* that I need to modify so that $_FILES is also processed: public function validateForm() { $requiredFields = array( name = My Name, phone = My Telephone, email = My Email, file = My Upload File, comments = My Comments ); if( isset( $_POST ) is_array( $_POST ) count( $_POST ) 0 ) { $reqFieldsPresent = true; $this-msg = pThe following required fields were not filled out:/pul; foreach( $requiredFields as $field = $value ) { if( !isset( $_POST[ $field ] ) || $_POST[ $field ] == || $_POST[ $field ] == $value ) { $reqFieldsPresent = false; $this-msg .= li . $value . /li; } How can I modify this so that if $_FILES['userfile']['name'] is present the fileUpload() function can be invoked and the file uploaded to the client's server, but if the upload file has not been specified the absence will be reported same as if $_POST['name'] is absent? Ski How about using - if(is_uploaded_file($_FILES['userfile']['tmp_name'])) { //success code } else { //failure code } signature.asc Description: This is a digitally signed message part.
Re: [PHP] extract column from multidimentional array
On Monday 29 September 2008 09:34:10 pm It flance wrote: Hi, below you will find the code for a small script where i'm able to extract a row but not a column. So the question is how can I do that. Here is the code: ?php $arr = array( array('00', '01', '02', '03'), array('10', '11', '12', '13'), array('20', '21', '22', '23'), ); $row = $arr[0]; $col = $arr[][0]; print_r($row); print \n; print_r($col); ? If you know the column index of the array, you can do it easily. $row = $arr[0]; // gives you -array('00', '01', '02', '03') Now use this to get the first column - ? for( $i=0; $i = count($arr); $i++ ) { $col[$i] = $arr[$i][0]; } print_r($col); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] error warning while connecting to posgreSQL
On Monday 29 September 2008 10:02:06 pm Richard Lynch wrote: -Original Message- i try to understand the error_reporting statement and to avoid all warning or error messages. for example i stop the postgresql service and i try to connect to it. when error_reporting is set to E_ALL, i get the following warning : *Warning*: pg_connect() [function.pg-connecthttps://192.168.1.2/se_admin/en/logon/function.pg- connect]: Unable to connect to PostgreSQL server: could not connect to server: Connection refused (0x274D/10061) Is the server running on host localhost and accepting TCP/IP connections on port 5432? in * L:\Webserver\se\log\checklogin.php* on line *48* Couldn't Connect: but if i have the error_reporting set to 0, i only get my die message Couldn't connect. i would like to know if i let the setting E_ALL do i have a way how to not display the warning message to end users but to display only Couldn't connect ? in fact to have the same behavior as error_reporting set to 0. In production, you can suppress them with E_NONE. Or, instead of displaying them to end users, log them and check the logs at your leisure. It is technically possible to just slap an @ in front of the offending function, but that's a really bad idea. ___ The information in this email or in any file attached hereto is intended only for the personal and confiden- tial use of the individual or entity to which it is addressed and may contain information that is propri- etary and confidential. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communica- tion is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product. Email trans- mission cannot be guaranteed to be secure or error- free. P6070214 Yeah that's true. Placing an @ before the function is a bad idea. Instead use error_reporting(E_NONE) OR error_reporting(0) signature.asc Description: This is a digitally signed message part.
Re: [PHP] extract column from multidimentional array
On Monday 29 September 2008 10:15:29 pm Philip Thompson wrote: On Sep 29, 2008, at 11:08 AM, Boyd, Todd M. wrote: -Original Message- From: It flance [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2008 11:04 AM To: php-general@lists.php.net Subject: [PHP] extract column from multidimentional array Hi, below you will find the code for a small script where i'm able to extract a row but not a column. So the question is how can I do that. Here is the code: ?php $arr = array( array('00', '01', '02', '03'), array('10', '11', '12', '13'), array('20', '21', '22', '23'), ); $row = $arr[0]; $col = $arr[][0]; print_r($row); print \n; print_r($col); ? Being that PHP is row-major (like most programming languages), that won't work. Loop through the array and build a new one out of just the 1st column from every row (or whatever column you're looking for): ?php $colarr = array(); for($a = 0; $a count($arr); $a++) { $colarr[$a] = $arr[$a][0] } print_r($colarr) ? HTH, Todd Boyd Web Programmer Or in his original code $col = $arr[0][0]; to get the first (element of the first sub array). Think of your array as this $arr = array( 0 = array(0='00', 1='01', 2='02', 3='03'), 1 = array(0='10', 1='11', 2='12', 3='13'), 2 = array(0='20', 1='21', 2='22', 3='23'), ); Notice the specific keys? That should help in determining which keys you're looking for. I'm probably totally off by what you're asking, but Todd's response hopefully helped you as well. =D ~Philip I think he wants to get the whole column. signature.asc Description: This is a digitally signed message part.
[PHP] Re: question about linux editor
Sudhakar wrote: i need to connect to the linux server using an editor. can anyone suggest which would be an ideal linux editor to connect to the server. apart from the ip address, username and password are there any other details i would need to connect to the server. please advice. thanks. gedit -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] tidy configuration disabled still html is generated
I have tried everything. setting tidy.clean_output = Off or 0 in php.ini OR using ini_set but still tidy makes a plaintext file html. help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] tidy configuration disabled still html is generated solved
Nilesh Govindrajan wrote: I have tried everything. setting tidy.clean_output = Off or 0 in php.ini OR using ini_set but still tidy makes a plaintext file html. help. I am sorry. :) It was a silly problem. FIXED. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] tidy configuration disabled still html is generated
Wolf wrote: Nilesh Govindrajan [EMAIL PROTECTED] wrote: I have tried everything. setting tidy.clean_output = Off or 0 in php.ini OR using ini_set but still tidy makes a plaintext file html. help. Contact the creators of Tidy I told na it was a silly problem. didn't you get it ? the fault was found and fixed. it was a hard-link of php.ini in the scan-dir. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange list behavior when replying to message on list
Mark Weaver wrote: Nilesh Govindrajan wrote: Shawn McKenzie wrote: Mark Weaver wrote: Andrew Ballard wrote: On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver [EMAIL PROTECTED] wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and also if this behavior is a feature or a bug. When I hit the reply button to respond to a message most of the time the actual sender's address is the one the message is being sent to rather than the list itself. This is the first mailing list I've been on that I've seen this behavior; all other lists I'm on when one hits the reply button, or CTRL+R the mailing list's address is inserted as it should be and is expected. I know with some email clients there is a menu item specifically there for responding to the list based on whether or not there is a list-header in the header information but that isn't an available option with Thunderbird. Is anyone else seeing this behavior or is there something I'm missing? Mark It's not specific to Thunderbird or any other mail client. I'm pretty sure it was configured that way on purpose. Have a look at this thread: http://marc.info/?l=php-generalm=105700032521606w=2 Andrew well, obviously since the issue still exists it's clear that this never got resolved. I just don't understand the obstenant behavior of some folks in the presence of clear and plain logic. Especially from a programmer. Makes no sense at all. Guess I'm off to create the necessary recipe for Procmail to do the adult thing and make sense of the non-sense. I use Thunderbird 2.x on Kubuntu and I just hit reply to this mail. I have news.php.net setup as a news account. I do receive and have received frequent timeouts contacting the news server though. Has been a pain for quite awhile. -Shawn That's what I also do. :D I have thunderbird 2.x on Fedora 8. So, it works. :) by the way... I thought everyone would be rather interested to know that because of the way the list is setup and running at the moment and not hiding the senders email address, it's extremely easy to harvest addresses from messages. That means that if someone got infected or a spammer, scammer, etc... ever subscribed to the list it wouldn't be any trouble at all to get list members' addresses. It took all of 10 seconds to grep the imap folder where all the messages I get are stored for the From: header and out popped everyone's address. Just another reason to hide the sender's address and use the reply-to header. It is not possible. This is one of the major drawbacks of mailing lists / news groups. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: problem with sessions config.
N . Boatswain wrote: Hello guys; i'm having a problem with session behavior; i'm going straight to it, but first some considerations: PHP Version 5.2.5IIF 5.1Running on localhost (XP machine)I start sessions at the top of every page. A the start of a test page, just as example, i do the assignment: $_SESSION[username] = aaa; At the end of the same page i print it's value: echo $_SESSION[username]; And i get the layout: aaa, as expecteed. Then I redirect to another page. On that one, after initializating the session (session_start();) print again the $_SESSION[username] content and the result is empty. If i try the same code on a server (all this is on my local machine), the code works as expected; so i think it is a configuration problem, here is my php.ini part that correspond to session configuration, so you can tell my if i'm doing anything wrong, long comments where removed: [Session]; Handler used to store/retrieve data.session.save_handler = files;session.save_path = /tmp BC 13/12/07session.save_path=/tmp; Whether to use cookies.session.use_cookies = 1;session.cookie_secure = ; This option enables administrators to make their users invulnerable to; attacks which involve passing session ids in URLs; defaults to 0.session.use_only_cookies = 1; Name of the session (used as cookie name).session.name = PHPSESSID; Initialize session on request startup.session.auto_start = 1; Lifetime in seconds of cookie or, if 0, until browser is restarted.session.cookie_lifetime = 0; The path for which the cookie is valid.session.cookie_path = /; The domain for which the cookie is valid.session.cookie_domain =; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.session.cookie_httponly = ; Handler used to serialize data. php is the standard serializer of PHP.session.serialize_ha ndler = php; Define the probability that the 'garbage collection' process is started; on every session initialization.; The probability is calculated by using gc_probability/gc_divisor,; e.g. 1/100 means there is a 1% chance that the GC process starts; on each request.session.gc_probability = 1session.gc_divisor = 1000; After this number of seconds, stored data will be seen as 'garbage' and; cleaned up by the garbage collection process.session.gc_maxlifetime = 1440session.bug_compat_42 = 0session.bug_compat_warn = 1; Check HTTP Referer to invalidate externally stored URLs containing ids.; HTTP_REFERER has to contain this substring for the session to be; considered as valid.session.referer_check =; How many bytes to read from the file.session.entropy_length = 0; Specified here to create the session id.session.entropy_file =;session.entropy_length = 16;session.entropy_file = /dev/urandom; Set to {nocache,private,public,} to determine HTTP caching aspects; or leave this empt y to avoid sending anti-caching headers.session.cache_limiter = nocache; Document expires after n minutes.session.cache_expire = 180session.use_trans_sid = 0; Select a hash function; 0: MD5 (128 bits); 1: SHA-1 (160 bits)session.hash_function = 0; Define how many bits are stored in each character when converting; the binary hash data to something readable.;; 4 bits: 0-9, a-f; 5 bits: 0-9, a-v; 6 bits: 0-9, a-z, A-Z, -, ,session.hash_bits_per_character = 5; The URL rewriter will look for URLs in a defined set of HTML tags.; form/fieldset are special; if you include them here, the rewriter will; add a hidden input field with the info which is otherwise appended; to URLs. If you want XHTML conformity, remove the form entry.; Note that all valid entries require a =, even if no value follows.url_rewriter.tags = a=href,area=href,frame=src,input=src,form=,fieldset= Well, thanks and sorry for my english; Nicolás. _ Watch “Cause Effect,” a show about real people making a real difference. Learn more. http://im.live.com/Messenger/IM/MTV/?source=text_watchcause It works for me; I am using php-5.2.5 with lighttpd and FastCGI. I called session_start() on both the pages. and I have enabled session.use_trans_sid. You can temporarily override it from the php script by using this - ? //...other code ini_set(session.use_trans_sid,1); //...other code ? Try and report again. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Memory Leaks
I am having 2 memory leaks while calling phpinfo() via FastCGI (lighttpd) when session.auto_start is 1. Otherwise there is no memory leak. Here are the two memory leaks - [Sat Mar 22 14:07:49 2008] Script: '/var/www/lighttpd/test.php' /root/php-5.2.5/ext/standard/url_scanner_ex.c(305) : Freeing 0x097BD7E0 (79 bytes), script=/var/www/lighttpd/test.php [Sat Mar 22 14:07:50 2008] Script: '/var/www/lighttpd/test.php' /root/php-5.2.5/ext/standard/url_scanner_ex.c(316) : Freeing 0x097BD85C (79 bytes), script=/var/www/lighttpd/test.php Is this a security threat ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange list behavior when replying to message on list
Greg Bowser wrote: Yeah. I always forget to reply to all. The problem is with the headers. Whereas other lists have a reply-to: mailing list address in the email headers, this list does not. It annoys the hell out of me. On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver [EMAIL PROTECTED] wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and also if this behavior is a feature or a bug. When I hit the reply button to respond to a message most of the time the actual sender's address is the one the message is being sent to rather than the list itself. This is the first mailing list I've been on that I've seen this behavior; all other lists I'm on when one hits the reply button, or CTRL+R the mailing list's address is inserted as it should be and is expected. I know with some email clients there is a menu item specifically there for responding to the list based on whether or not there is a list-header in the header information but that isn't an available option with Thunderbird. Is anyone else seeing this behavior or is there something I'm missing? Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Doesn't happen with me because I use Newsgroup type subscription system. I.e. I have created a newsgroup account for news.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange list behavior when replying to message on list
Brandon Orther wrote: I just signed back up to the list recently, but it was like this 5 years ago when I was still on it. I have always wondered why they didn't have that. It seems like they are pushing people to submit their solutions to the person with the question. Kind Regards, Brandon Orther -Original Message- From: Mark Weaver [mailto:[EMAIL PROTECTED] Sent: Saturday, March 22, 2008 10:57 AM To: php-general@lists.php.net Subject: Re: [PHP] strange list behavior when replying to message on list Nilesh Govindrajan wrote: Greg Bowser wrote: Yeah. I always forget to reply to all. The problem is with the headers. Whereas other lists have a reply-to: mailing list address in the email headers, this list does not. It annoys the hell out of me. Why in the bloody hell doesn't the list admin simply add that reply-to header. As far as I know Sendmail adds that auto-magically by default. (I'm assuming they're not using Sendmail as the lists' MTA). It sure would make life easier wouldn't it? How long has it been this way? The list admin, if uses a program called ezlm (or something similar), it adds the List-Id or the Newsgroups header which also helps. They must have it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange list behavior when replying to message on list
Shawn McKenzie wrote: Mark Weaver wrote: Andrew Ballard wrote: On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver [EMAIL PROTECTED] wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and also if this behavior is a feature or a bug. When I hit the reply button to respond to a message most of the time the actual sender's address is the one the message is being sent to rather than the list itself. This is the first mailing list I've been on that I've seen this behavior; all other lists I'm on when one hits the reply button, or CTRL+R the mailing list's address is inserted as it should be and is expected. I know with some email clients there is a menu item specifically there for responding to the list based on whether or not there is a list-header in the header information but that isn't an available option with Thunderbird. Is anyone else seeing this behavior or is there something I'm missing? Mark It's not specific to Thunderbird or any other mail client. I'm pretty sure it was configured that way on purpose. Have a look at this thread: http://marc.info/?l=php-generalm=105700032521606w=2 Andrew well, obviously since the issue still exists it's clear that this never got resolved. I just don't understand the obstenant behavior of some folks in the presence of clear and plain logic. Especially from a programmer. Makes no sense at all. Guess I'm off to create the necessary recipe for Procmail to do the adult thing and make sense of the non-sense. I use Thunderbird 2.x on Kubuntu and I just hit reply to this mail. I have news.php.net setup as a news account. I do receive and have received frequent timeouts contacting the news server though. Has been a pain for quite awhile. -Shawn That's what I also do. :D I have thunderbird 2.x on Fedora 8. So, it works. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: pulling text from a file
Richard Kurth wrote: I have a text file that looks like the one below. I need to read the file into a database. I was trying the script below but is not working can you help? $lines = file_get_contents('clientlist1.txt'); $find=Address:; $f= strstr($f,$find); $separat=City:; $ADDRESS = substr($f, 0, strpos($f,$separat)); $ADDRESS=ltrim($ADDRESS,Address:); $ADDRESS=trim($ADDRESS); echo $ADDRESS; echo br; $find=City:; $f= strstr($f,$find); $separat=State:; $CITY = substr($f, 0, strpos($f,$separat)); $CITY=ltrim($CITY,City:); $CITY=trim($CITY); echo $CITY; echo br; Text File Address: 5070 myaddress. City: mycity State: mystateZip: 97268 County: Signers Name: my name Address: 3925 myaddress. City: mycity2 State: mystate2 Zip: 97268 County: Signers Name: my name2 If the place where you run this script has PHP 5.1 installed, then you could use SimpleXML for this purpose. If the document MUST be in XML format. I don't know such methods in PHP 4, etc. On my server, I have PHP 5.2.5 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: spider
tedd wrote: Hi gang: How do you spider a remote web site in php? I get the general idea, which is to take the root page, strip out the links and repeat the process on those links. But, what's the code? Does anyone have an example they can share or a direction for me to take? Also, is there a way to spider through a remote web site gathering directory permissions? I know there are applications, such as Site-sucker, that will travel a remote web site looking for anything that it can download and if found, do so. But is there a way to determine what the permissions are for those directories? If not, can one attempt to write a file and record the failures/successes (0777 directories)? What I am trying to do is to develop a way to test if a web site is secure or not. I'm not trying to develop evil code, but if it can be done then I want to know how. Thanks and Cheers, tedd There is a complete search engine called Mihalism Search Engine which uses PHP to spider websites. Its available for free download. You could explore its source code and make your own. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: question about customized error
Sudhakar wrote: if a user by mistake types the wrong url directly in the address bar ex= www.website.com/abou.php instead of typing www.website.com/aboutus.php instead of the browser displaying File not found or a 404 error message i would like to display a customized page which will still have the same look and feel of my website in terms of the layout and i would like to a) display a message such as = Page could not be found and b) the url that the user originally typed should remain in the browser = I guess this would be the case anyway but i was wondering if something needs to be done in order to reatin the original address the user typed. Does this have to be done from apache perspective or can it be done using php. please suggest the procedure in either case apache OR php. please advice. thanks. .htaccess: ErrorDocument 404 /404-error.php 404-error.php: ?php soem code ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: selling gpl software?
Colin Guthrie wrote: Larry Garfield wrote: If the code is work for hire and the initial ownership is with the client/company, then there is no distribution and so you are not required to do anything. That includes if you are a full time employee of the company. OK, that's more or less my understanding. It is my understanding that, by default, contracting law states that any work done under contract is your (the contractor's) copyright (e.g. on a very loose contract that is the default case). Many employers of contractors will typically change this default stance. So in the OP's case, if he takes an existing GPLed project, modifies it in whatever way (including removing mention of the original project), and gives a copy to his client, his only legal obligation is to provide the client with the code under the GPL so that the client can, if he wants, pass the code on to someone else under the GPL. Someone else could be a public FTP server or not. I was half assuming the stance of the employer here was that he did not want the changes shared. So assuming this and the above note about contract law etc., then my original statement is correct. Whether these assumptions are correct in themselves (and this my whole thread of assumption breaks down!), I'll leave for future research and happily live in my bubble of ignorance ;) Col Larry, read the GPL license. It has can be used, distributed, modified under GPL only. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php