php-general Digest 30 Jul 2007 18:30:14 -0000 Issue 4933
php-general Digest 30 Jul 2007 18:30:14 - Issue 4933 Topics (messages 259796 through 259822): Re: Bizarre array create error 259796 by: Ken Tozier Re: import spreadsheet 259797 by: Angelo Zanetti Wordpress Theme Switcher plugin redirect modification 259798 by: Erik Gyepes Re: Rules of Engagement 259799 by: David Robley 259802 by: Lester Caine Re: The Official OT Name Tedd's Grandson Thread 259800 by: Michelle Konzack Unit testing 259801 by: Emil Edeholt 259803 by: Thijs Lensselink Changing URLs from Relative to Absolute 259804 by: Tom Chubb 259807 by: Al 259808 by: Richard Heyes $HTTP_POST_FILES always produces empty value. 259805 by: Patrik Hasibuan 259806 by: David Robley 259809 by: Patrik Hasibuan 259812 by: Patrik Hasibuan Re: Pirate PHP books online? 259810 by: David Powers 259811 by: Stut 259813 by: tedd 259814 by: David Powers 259815 by: Stut 259816 by: Stut 259817 by: tedd 259818 by: Crayon Shin Chan 259819 by: tedd 259821 by: carlton.whitehead.cebesius.com 259822 by: Robert Cummings Reading registry values 259820 by: \Crash\ Dummy Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- ---BeginMessage--- On Jul 30, 2007, at 2:23 AM, Paul Novitski wrote: At 7/29/2007 09:59 PM, Ken Tozier wrote: /*--*/ /* Next two lines are where the problem starts */ /* If I comment either of them out the script runs */ /* but with both uncommented, it dies /*--*/ // create the rect and usable rect records $result-rect = array(0, 0, $result- page_width, $result- page_height); Does this typo exist in your script? $result- page_height with a space between - and ? No. Must be an email thing. ---End Message--- ---BeginMessage--- Richard Lynch wrote: On Fri, July 27, 2007 4:01 am, Angelo Zanetti wrote: Does anyone have any resources or links as to how to import a spreadsheet but it might have different number of columns and many sheets (those tab things at the bottom). What I thought of doing was creating a table that has 10 fields and if the file thats being imported only has 4 fields then the remaining six fields are blank. So basically my script must dynamically take the format (which changes) and try save it in the database in a semi standard format. If anyone thinks its possible or not please advise. Any help or advice would be greatly appreciated. I didn't actually import multiple sheets, but the tool I used returned an array sheets and the 0-th element was the only sheet in there, so I suspect a second sheet would have been the next element... It's a PECL package up on sourceforge: http://sourceforge.net/projects/phpexcelreader/ As far as columns and rows goes, it just built an array the right size to hold everything in the spreadsheet. Though if you've got a stray space in column ZZZ row 65535, then I suppose you could be in trouble... It's got a bug as of a couple weeks ago where it tries to 'include' a file that doesn't exist... Change that to include the similarly-named file that's actually there and bob's your uncle. YMMV PS Watch out for those serial killer dates... :-) I blogged a little bit about this here: http://richardlynch.blogspot.com/2007/07/php-microsoft-excel-reader-and-serial.html hi guys. Thanks to those that responded, I will check out all the responses! Much appreciated! regards Angelo ---End Message--- ---BeginMessage--- Hello, I would like to modify the Theme Switcher Plugin for Wordpress (http://dev.wp-plugins.org/wiki/ThemeSwitcher). When I currently request the page to switch the theme (for example: mydomain.com/?wptheme=My+Theme) I'm redirected to the index.php, but instead I would like to redirect back to the page where I was before (for example: mydomain.com/?p=15) Here is the code which is redirecting the page: function ts_set_theme_cookie() { $expire = time http://www.php.net/time() + 3000; if (!empty http://www.php.net/empty($_GET[wptheme])) { setcookie http://www.php.net/setcookie(wptheme . COOKIEHASH, stripslashes http://www.php.net/stripslashes($_GET[wptheme]), $expire, COOKIEPATH ); $redirect = get_settings('home').'/'; if (function_exists http://www.php.net/function_exists('wp_redirect'))
Re: [PHP] Bizarre array create error
On Jul 30, 2007, at 2:23 AM, Paul Novitski wrote: At 7/29/2007 09:59 PM, Ken Tozier wrote: /*--*/ /* Next two lines are where the problem starts */ /* If I comment either of them out the script runs */ /* but with both uncommented, it dies /*--*/ // create the rect and usable rect records $result-rect = array(0, 0, $result- page_width, $result- page_height); Does this typo exist in your script? $result- page_height with a space between - and ? No. Must be an email thing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Bizarre array create error
At 7/29/2007 09:59 PM, Ken Tozier wrote: /*--*/ /* Next two lines are where the problem starts */ /* If I comment either of them out the script runs */ /* but with both uncommented, it dies /*--*/ // create the rect and usable rect records $result-rect = array(0, 0, $result-page_width, $result- page_height); Does this typo exist in your script? $result- page_height with a space between - and ? Regards, Paul __ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] import spreadsheet
Richard Lynch wrote: On Fri, July 27, 2007 4:01 am, Angelo Zanetti wrote: Does anyone have any resources or links as to how to import a spreadsheet but it might have different number of columns and many sheets (those tab things at the bottom). What I thought of doing was creating a table that has 10 fields and if the file thats being imported only has 4 fields then the remaining six fields are blank. So basically my script must dynamically take the format (which changes) and try save it in the database in a semi standard format. If anyone thinks its possible or not please advise. Any help or advice would be greatly appreciated. I didn't actually import multiple sheets, but the tool I used returned an array sheets and the 0-th element was the only sheet in there, so I suspect a second sheet would have been the next element... It's a PECL package up on sourceforge: http://sourceforge.net/projects/phpexcelreader/ As far as columns and rows goes, it just built an array the right size to hold everything in the spreadsheet. Though if you've got a stray space in column ZZZ row 65535, then I suppose you could be in trouble... It's got a bug as of a couple weeks ago where it tries to 'include' a file that doesn't exist... Change that to include the similarly-named file that's actually there and bob's your uncle. YMMV PS Watch out for those serial killer dates... :-) I blogged a little bit about this here: http://richardlynch.blogspot.com/2007/07/php-microsoft-excel-reader-and-serial.html hi guys. Thanks to those that responded, I will check out all the responses! Much appreciated! regards Angelo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Wordpress Theme Switcher plugin redirect modification
Hello, I would like to modify the Theme Switcher Plugin for Wordpress (http://dev.wp-plugins.org/wiki/ThemeSwitcher). When I currently request the page to switch the theme (for example: mydomain.com/?wptheme=My+Theme) I'm redirected to the index.php, but instead I would like to redirect back to the page where I was before (for example: mydomain.com/?p=15) Here is the code which is redirecting the page: function ts_set_theme_cookie() { $expire = time http://www.php.net/time() + 3000; if (!empty http://www.php.net/empty($_GET[wptheme])) { setcookie http://www.php.net/setcookie(wptheme . COOKIEHASH, stripslashes http://www.php.net/stripslashes($_GET[wptheme]), $expire, COOKIEPATH ); $redirect = get_settings('home').'/'; if (function_exists http://www.php.net/function_exists('wp_redirect')) wp_redirect($redirect); else header http://www.php.net/header(Location: . $redirect); exit http://www.php.net/exit; } } I've tried to change the $redirect variable to $_SERVER['REQUEST_URI'] but it doesn't worked. Then I realized that I should save the current page URL in the cookies, so I've set a cookie and then I tried redirect the page to the URL in that cookie. It worked, but not as intended, there are some situations when it is redirecting in a loop. Any recommendations how to do it properly? Thanks, Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Re: Rules of Engagement
Colin Guthrie wrote: Daniel Brown wrote: As a relatively-new contributor to this list (read: under 2 years), I realize that I have no business requesting a change, but I'll breech etiquette and hope for the best. Can we update the filters on the list to have the reply-to address header marked to the php-general address? The reason I ask this is because, when people are on vacation (such as Juan is now), we receive responses to our personal addresses. Secondly, we have to continually Reply All the messages, which - though it's not a problem - can cause issues when attempting to respond to those [URGENT] replies. Third, our addresses are included in gmane, et al, which is an inherent risk --- I understand. Maybe it's just the ramblings of someone attempting to read and type on a limited-bandwidth mobile device while bored due to delays in mass-transit facilities (here, read: I'm fucking exhausted, and yes, I dropped the F bomb). In either case, it's not conducive to a new contributor to have to weed through vacation response messages each time he/she replies to the list. I agree here. I am on many lists and if I'm interested in something then I expect people to expect me to read the list for replies. But for noobs, the personal reply is quite good. I guess the rule should be public list - reply to poster, subscription list - reply to list. AFAIK Gmane etc. can be configured to obfuscate email addresses - certainly other lists I read through Gmane are... Col I'd bet we did this a number of times over the last few years; all I can offer other than suggesting a search of the archives is http://www.unicom.com/pw/reply-to-harmful.html which puts a view for not mucking around with the headers on mailing list messages. FWIW as a sometime mailing list admin I fully support the products or services therein :-) Cheers -- David Robley I like camping, said Tom intently. Today is Sweetmorn, the 65th day of Confusion in the YOLD 3173. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Re: The Official OT Name Tedd's Grandson Thread
Hello *, Am 2007-07-26 11:33:52, schrieb Robert Cummings: On Thu, 2007-07-26 at 16:24 +0100, Colin Guthrie wrote: M. Sokolewicz wrote: It's not the only, about 50% of threads have it, and another 50% don't. For instance, the DOM thread does not have it, this thread has it in between Re:'s, Hide the real URL has it, Pirate PHP books doesn't, etc. I don't get them on any of my messages but then I read them all via nntp and Gmane.org I get it in every message... must be a mail client thingy. Cheers, Rob. - END OF REPLIED MESSAGE - Maybe I am one of them, WHO HATE this Subject-Addy. I use procmail and sed to kill it... [ '~/.procmail/FLT_subject' ]--- # # FLT_subject # :0fh * ^Subject:.*\[PHP\-ANNOUNCE\] |sed -e s/\[PHP\-ANNOUNCE\]//;s/\ \ / / :0fh * ^Subject:.*\[PHP\-DB\] |sed -e s/\[PHP\-DB\]//;s/\ \ / / :0fh * ^Subject:.*\[PHP\-EVANGELISM\] |sed -e s/\[PHP\-EVANGELISM\]//;s/\ \ / / :0fh * ^Subject:.*\[PHP\-GTK\-DEV\] |sed -e s/\[PHP\-GTK\-DEV\]//;s/\ \ / / :0fh * ^Subject:.*\[PHP\-GTK\] |sed -e s/\[PHP\-GTK\]//;s/\ \ / / :0fh * ^Subject:.*\[PHP\-WIN\] |sed -e s/\[PHP\-WIN\]//;s/\ \ / / :0fh * ^Subject:.*\[PHP\ Classes\] |sed -e s/\[PHP\ Classes\]//;s/\ \ / / Greetings Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSN LinuxMichi 0033/6/6192519367100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Unit testing
Hi What (preferably open source) tools are the best for unit testing php? JUnit is not available for PHP from what I can see? Thanks for your time! -- Best Regards Emil Edeholt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Rules of Engagement
Nathan Nobbe wrote: gmail seems to consume these 'double replies' transparently w/ its 'conversations'. i never notice them :) sorry to everyone who gets hit w/ the extra mail when i hit reply-to-all. youll have to forgive my laziness, its just easier that way. Interestingly your reply is duplicated here. The one bounced via the list is a different format and hence not filtered at this end since they are in essence different :( -- Lester Caine - G8HFL - Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://home.lsces.co.uk MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Firebird - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Unit testing
On Mon, 30 Jul 2007 13:57:08 +0200, Emil Edeholt [EMAIL PROTECTED] wrote: Hi What (preferably open source) tools are the best for unit testing php? JUnit is not available for PHP from what I can see? Thanks for your time! -- Best Regards Emil Edeholt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Take a look at : http://www.phpunit.de/ And maybe : http://simpletest.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Changing URLs from Relative to Absolute
Dear list, I was recently trying to write a script where a user copy and pastes their HTML code to display something on a listings site and tried to find a way to change the URL of an image from relative to absolute. For example img src=images/1.jpg becomes img = src= http://domain.com/images/1.jpg;. That is easy enough and I created a regexp, but I found that some people call the img tag differently such as: img a=A photo src=images/1.jpg Does anyone have experience of this? How can I create a regexp that will find it in every case? Thanks in advance. Tom -- Tom Chubb [EMAIL PROTECTED]
[PHP] $HTTP_POST_FILES always produces empty value.
Dear my friends I don't understand why $HTTP_POST_FILES always produces empty value. This is my code === //cgi/cgiprodukcatalogadmin.php ?php $berkasgambarproduk=$HTTP_POST_FILES['gambarproduk']['name']; echo gambarproduk: $gambarprodukbr; echo berkasgambarproduk: $berkasgambarprodukbr; ? === This is the output in my Opera internet browser: === gambarproduk: /tmp/phppd6DZy berkasgambarproduk: === this is my php.ini: === ; File Uploads ; ; Whether to allow HTTP file uploads. file_uploads = On ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ;upload_tmp_dir = upload_tmp_dir = /srv/www/htdocs/tmpphp ; Maximum allowed size for uploaded files. upload_max_filesize = 100M === Please tell me, where is my mistake?. Thank you very much in advance. -- Patrik Hasibuan [EMAIL PROTECTED] Junior Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: $HTTP_POST_FILES always produces empty value.
Patrik Hasibuan wrote: Dear my friends I don't understand why $HTTP_POST_FILES always produces empty value. This is my code === //cgi/cgiprodukcatalogadmin.php ?php $berkasgambarproduk=$HTTP_POST_FILES['gambarproduk']['name']; echo gambarproduk: $gambarprodukbr; echo berkasgambarproduk: $berkasgambarprodukbr; ? === This is the output in my Opera internet browser: === gambarproduk: /tmp/phppd6DZy berkasgambarproduk: === this is my php.ini: === ; File Uploads ; ; Whether to allow HTTP file uploads. file_uploads = On ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ;upload_tmp_dir = upload_tmp_dir = /srv/www/htdocs/tmpphp ; Maximum allowed size for uploaded files. upload_max_filesize = 100M === Please tell me, where is my mistake?. Thank you very much in advance. Unless you are using an old version of php 4.1.0 you probably should use the $_FILES array instead of $_HTTP_POST_FILES Try that and see what happens. More info at http://php.net/file-upload if you need it. Cheers -- David Robley Oxymoron: Working Vacation. Today is Sweetmorn, the 65th day of Confusion in the YOLD 3173. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Changing URLs from Relative to Absolute
In general, you must have patterns and code that deal with most common errors. As to your example, your regex pattern must not be good. Is your complete string simply: img a=A photo src=images/1.jpg ? If so, then %src\x20*=\x20*\*([\w/]+\x2Ejpg)%i should do it for you. \x20*, may have 0 or more spaces; \x2E = period; () will capture the file name; i can handle upper or lower case. Incidentally, be careful that you have good security checking on the pasted in html stuff. Tom Chubb wrote: Dear list, I was recently trying to write a script where a user copy and pastes their HTML code to display something on a listings site and tried to find a way to change the URL of an image from relative to absolute. For example img src=images/1.jpg becomes img = src= http://domain.com/images/1.jpg;. That is easy enough and I created a regexp, but I found that some people call the img tag differently such as: img a=A photo src=images/1.jpg Does anyone have experience of this? How can I create a regexp that will find it in every case? Thanks in advance. Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Changing URLs from Relative to Absolute
I was recently trying to write a script where a user copy and pastes their HTML code to display something on a listings site and tried to find a way to change the URL of an image from relative to absolute. For example img src=images/1.jpg becomes img = src= http://domain.com/images/1.jpg;. That is easy enough and I created a regexp, but I found that some people call the img tag differently such as: img a=A photo src=images/1.jpg Does anyone have experience of this? How can I create a regexp that will find it in every case? You could try this (from my rather poor memory): /img.*src=(.*)/Uis -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: $HTTP_POST_FILES always produces empty value.
Hi David, it's solved. Your advise solved my problem. Thank you very much. === On Mon, 30 Jul 2007 22:03:06 +0930 David Robley [EMAIL PROTECTED] wrote: Patrik Hasibuan wrote: Dear my friends I don't understand why $HTTP_POST_FILES always produces empty value. This is my code === //cgi/cgiprodukcatalogadmin.php ?php $berkasgambarproduk=$HTTP_POST_FILES['gambarproduk']['name']; echo gambarproduk: $gambarprodukbr; echo berkasgambarproduk: $berkasgambarprodukbr; ? === This is the output in my Opera internet browser: === gambarproduk: /tmp/phppd6DZy berkasgambarproduk: === this is my php.ini: === ; File Uploads ; ; Whether to allow HTTP file uploads. file_uploads = On ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ;upload_tmp_dir = upload_tmp_dir = /srv/www/htdocs/tmpphp ; Maximum allowed size for uploaded files. upload_max_filesize = 100M === Please tell me, where is my mistake?. Thank you very much in advance. Unless you are using an old version of php 4.1.0 you probably should use the $_FILES array instead of $_HTTP_POST_FILES Try that and see what happens. More info at http://php.net/file-upload if you need it. Cheers -- David Robley Oxymoron: Working Vacation. Today is Sweetmorn, the 65th day of Confusion in the YOLD 3173. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Patrik Hasibuan [EMAIL PROTECTED] Junior Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
Larry Garfield wrote: copyright infringement is NOT taking something without paying for it. Copyright infringement is duplicating an expression of an idea that is fixed in a medium without the permission of the copyright holder. Money doesn't enter into it. If the licence under which the work was released stipulates payment, money does become an integral aspect of any infringement. If copyright infringement were taking something without paying for it, then anyone who's ever installed PHP is guilty of copyright infringement unless they sent Rasmus a check. That is, of course, nonsense. This is a nonsensical comparison, because installing PHP is not an infringement of copyright. The PHP licence specifically grants the right to use and distribute PHP, as long as certain conditions are met: http://www.php.net/license/3_01.txt A great many people -- myself included but also the Creative Commons folks, the FSF, many open source developers, and many others -- believe the current system of copyright law to be fundamentally flawed. Not that we shouldn't have copyright, but that the current form of copyright is broken. A work restricted for an entire generation after the original author is dead? Digital Restriction Management software that makes even Fair Use a felony? Retroactively extending copyright terms? Making experimentation with either art or technology either prohibited or prohibitively expensive? Yes, broken. These are excellent points, with which I basically agree. And the rank-and-file artists and authors of the world do not benefit from perpetuating that lie. The current direction the law is moving, toward more restrictions on the exchange of information, is bad for anyone who isn't Robert Iger or Britney Spears. That's why it is important to confront and correct that lie. It must be corrected before copyright can be sanely reformed to benefit the public (its supposed goal) and original artists/authors, not a select few mega-corps. Unfortunately, the tactics used by pirates are disproportionately harmful to rank-and-file artists and authors. I don't see the pirates simply going away if and when copyright law is amended. At no point have I said that copyright infringement is not illegal. At no point have I said that copyright infringement is a good thing. At no point have I encouraged people to engage in copyright infringement. Thank you for clarifying that. I highly recommend Larry Lessig's book Free Culture: http://free-culture.cc/ You can even download it free, not for money, legally, without it being copyright infringement. How about that. That's because he has released it under a Creative Commons licence. However, if you copy it and sell it or use in some other way for commercial gain, you break the terms of the licence. When somebody distributes copies of my eBooks to others, they break the terms of the licence. They also deprive me of income, as do bit torrent sites that assist in that distribution. It might not be stealing in a strict legal sense, but it results in financial harm to me. So money does frequently come into it where copyright infringement is concerned. David Powers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
David Powers wrote: When somebody distributes copies of my eBooks to others, they break the terms of the licence. They also deprive me of income, as do bit torrent sites that assist in that distribution. It might not be stealing in a strict legal sense, but it results in financial harm to me. So money does frequently come into it where copyright infringement is concerned. This conversation is getting pointless guys. The argument being had is about whether copyright infringement should be called stealing or theft. Personally I don't believe it should, but going back and forth on a public mailing list is not going to do anyone . To summarise... * Nobody thinks copyright infringement is a good thing and nobody is denying that it causes harm to every layer of the commercial chain that exists to create and publish copyrighted work * A lot of people believe copyright infringement should not be called theft, and those who do not seem unwilling to see the difference * Comparisons in this arena are always full of holes so stop trying to use them I believe both sides have adequately explained their position and justification, and it's now turning into a game of tennis. Can we please leave it alone now and get back to making something worthy of being copied? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: $HTTP_POST_FILES always produces empty value.
Hi David, it's solved. Your advise solved my problem. Thank you very much. === On Mon, 30 Jul 2007 22:03:06 +0930 David Robley [EMAIL PROTECTED] wrote: Patrik Hasibuan wrote: Dear my friends I don't understand why $HTTP_POST_FILES always produces empty value. This is my code === //cgi/cgiprodukcatalogadmin.php ?php $berkasgambarproduk=$HTTP_POST_FILES['gambarproduk']['name']; echo gambarproduk: $gambarprodukbr; echo berkasgambarproduk: $berkasgambarprodukbr; ? === This is the output in my Opera internet browser: === gambarproduk: /tmp/phppd6DZy berkasgambarproduk: === this is my php.ini: === ; File Uploads ; ; Whether to allow HTTP file uploads. file_uploads = On ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ;upload_tmp_dir = upload_tmp_dir = /srv/www/htdocs/tmpphp ; Maximum allowed size for uploaded files. upload_max_filesize = 100M === Please tell me, where is my mistake?. Thank you very much in advance. Unless you are using an old version of php 4.1.0 you probably should use the $_FILES array instead of $_HTTP_POST_FILES Try that and see what happens. More info at http://php.net/file-upload if you need it. Cheers -- David Robley Oxymoron: Working Vacation. Today is Sweetmorn, the 65th day of Confusion in the YOLD 3173. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Patrik Hasibuan [EMAIL PROTECTED] Junior Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
At 8:50 PM -0500 7/29/07, Larry Garfield wrote: You can call whatever you want anything you want, but that doesn't make it true. For instance, no, copyright infringement is NOT taking something without paying for it. Copyright infringement is duplicating an expression of an idea that is fixed in a medium without the permission of the copyright holder. Money doesn't enter into it. PERMISSION !!! And that's the point of this entire thread. You BUY a car, then society says you have permission to use it. You STEAL a car, then society says that you don't have permission to use it. Terms terms of BUY are expressly stated in no matter what you use, including all of what's been discussed in this thread. The opposite of BUYING is STEALING (excluding of course that you choose to do neither). Our entire legal system is built on allowing (granting permission) certain actions and not allowing (not granting permission) other actions. You do not have permission to steal. And if someone has not granted you the permission to use their whatever and you do use their whatever, then that's stealing. If copyright infringement were taking something without paying for it, then anyone who's ever installed PHP is guilty of copyright infringement unless they sent Rasmus a check. That is, of course, nonsense. No, it's not nonsense -- if the terms that Rasmus required were that we had to send him a check, then that's what his terms would have been -- why must I state the obvious? Fortunately, for all of us, his terms did not require that we had to send him a check so that's the reason why we don't have to send him a check -- again, why must I state the obvious? A great many people -- myself included but also the Creative Commons folks, the FSF, many open source developers, and many others -- believe the current system of copyright law to be fundamentally flawed. You have a right to your belief, but that doesn't make your belief right. Your position that copyright infringement is not stealing is fundamentally flawed. And, I doubt that the organizations you site actually agree with you. Not that we shouldn't have copyright, but that the current form of copyright is broken. A work restricted for an entire generation after the original author is dead? What about descendants of the author? When anyone dies, their descendants have a rightful claim on their parent's assets -- it been that way since the dawn of mankind. Do you think you know better than the practice of thousands of generations? Digital Restriction Management software that makes even Fair Use a felony? Retroactively extending copyright terms? Making experimentation with either art or technology either prohibited or prohibitively expensive? Yes, broken. It's only broken for those who want to infringe on other's work product without paying for it, which includes getting permission. As many people in this thread have already stated, most artists/authors don't actually benefit from this system. Bullshit -- nobody has said that. Additionally, artists/authors would certainly not benefit from your point of view. Everything is open source with no responsibility to the author -- it all up for grabs -- if you can get it, then woo ho it's yours. Yeah, like that will work. Is that what you're advocating? Because if you don't recognize copyright infringement as stealing, then you are advocating stealing by calling it something else. The public certainly doesn't. The public most certainly does -- they get the best product that they can afford AND there is incentive for people to produce such works for hire. The entertain industry is a prime example -- do you think you would get the caliber of movies we do without incentive? And that incentive includes copyright infringement laws which helps stop people from STEALING their work. Under your view, they do it for grins so that others raid freely and without prejudice all other's works because it's not stealing. Is that what you're supporting? Because if you don't recognize copyright infringement as stealing, then you are supporting that practice. I dare say that copyright infringement is not a mortal sin. Stealing is! And calling it by any other name doesn't get around that fact. At every point, I have pointed out what the law actually says, and why it says it. Again, bullshit. The spirit of the law is to prevent the stealing of copyrighted material. Even the definition of stealing is defined as taking another person property without permission and violating his legal rights of ownership. Now, you want to confuse the issue by saying copyright infringement is duplicating something authored without the permission of the copyright holder, but it's not stealing -- instead, it's violating his rights of ownership, which has the same definition as does the act of stealing. Stealing: taking another person property without permission and
Re: [PHP] Re: Pirate PHP books online?
Stut wrote: This conversation is getting pointless guys. I agree that it's going round in circles, and is best left alone. * Nobody thinks copyright infringement is a good thing and nobody is denying that it causes harm to every layer of the commercial chain that exists to create and publish copyrighted work If that were the case, I don't think this would have dragged out so long. The book that Larry Garfield pointed to (Free Culture by Larry Lessig) argues that *some* copyright infringement is harmless, and in certain circumstances, it can be beneficial (for example, when a work is out of print). Larry Lessig's arguments are quite persuasive and worthy of consideration. And for the record, Larry Lessig is in favour of seeing creators of original material receive fair payment for their efforts. It's irrelevant whether copyright infringement is stealing, or whether big companies are making too much money out of rights management. Copyright infringement is against the law in most countries, and it does disproportionate damage to the vast majority of artists and authors. End of story. David Powers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
tedd wrote: At 8:50 PM -0500 7/29/07, Larry Garfield wrote: If copyright infringement were taking something without paying for it, then anyone who's ever installed PHP is guilty of copyright infringement unless they sent Rasmus a check. That is, of course, nonsense. No, it's not nonsense -- if the terms that Rasmus required were that we had to send him a check, then that's what his terms would have been -- why must I state the obvious? Fortunately, for all of us, his terms did not require that we had to send him a check so that's the reason why we don't have to send him a check -- again, why must I state the obvious? Copyright exists to prevent unauthorised *usage* of material. It does not exist to prevent the unauthorised taking of instances of that material - that's what the laws regarding theft are for. This is the fundamental difference between copyright infringement and theft. Usage is not ownership, and you cannot steal usage. According to Thames Valley Police here in the UK... The basic legal definition of theft is 'the dishonest appropriation of property belonging to another with the intention of permanently depriving that person of it'.[1] How can that possibly apply to copyrighted material? By infringing copyright you are not permanently depriving the author/publisher/anyone of it. You have a right to your belief, but that doesn't make your belief right. This works both ways. Your position that copyright infringement is not stealing is fundamentally flawed. How? Nobody is not being permanently deprived of the content you are using in an unauthorised fashion. Digital Restriction Management software that makes even Fair Use a felony? Retroactively extending copyright terms? Making experimentation with either art or technology either prohibited or prohibitively expensive? Yes, broken. Larry: Fair use exists in the US, it does not exist in a lot of other countries and whether it should exist at all is not relevant to this discussion. Also, the duration of copyright protection could not have less to do with whether it can accurately be called theft or not. And I think you'll find that patents prevent experimentation with either art or technology. It's only broken for those who want to infringe on other's work product without paying for it, which includes getting permission. That's a rediculous statement. Larry is not saying that there should not be any protection for creative work, he's just saying that the current system does not operate as well as it could. The main reason for this is that the world changes faster than the law. But again, this is not really relevant to the discussion. As many people in this thread have already stated, most artists/authors don't actually benefit from this system. Bullshit -- nobody has said that. Additionally, artists/authors would certainly not benefit from your point of view. Everything is open source with no responsibility to the author -- it all up for grabs -- if you can get it, then woo ho it's yours. Yeah, like that will work. Is that what you're advocating? Because if you don't recognize copyright infringement as stealing, then you are advocating stealing by calling it something else. I don't believe Larry suggested everything should be open source with no responsibility to the author. All he's saying, and I agree, is that the current copyright system is not perfect and need to be reviewed. I dare say that copyright infringement is not a mortal sin. Stealing is! And calling it by any other name doesn't get around that fact. But it's not stealing. We talk about stealing an idea but in reality that's not possible. Please tell me you can see that. At every point, I have pointed out what the law actually says, and why it says it. Again, bullshit. The spirit of the law is to prevent the stealing of copyrighted material. Even the definition of stealing is defined as taking another person property without permission and violating his legal rights of ownership. You're trying to prove that copyright infringement is stealing by using the phrase stealing of copyrighted material. The legal definition of stealing does not allow it to be used like this. Now, you want to confuse the issue by saying copyright infringement is duplicating something authored without the permission of the copyright holder, but it's not stealing -- instead, it's violating his rights of ownership, which has the same definition as does the act of stealing. You cannot own copyrighted material. You have control over it, not ownership. Stealing: taking another person property without permission and violating his legal rights of ownership. Copyright infringement: taking another person property without permission and violating his legal rights of ownership. I don't see much difference. That's because you wrote the definitions. More accurately... Stealing: the dishonest appropriation
Re: [PHP] Re: Pirate PHP books online?
tedd wrote: But, the importance here is one of euphemism. Calling the act of stealing something more palatable, such as copyright infringement, simply makes it easier to do. Conversely, calling the act of copyright infringement something less palatable, such as stealing, simply makes it harder to do. That's a very curious comment. Do you really think people who are actively infringing copyright really care what you call it? In my mind copyright infringement is no better or worse a crime than stealing. And, legally speaking, what you call it makes a world of difference. The punishments for stealing are very different to those for copyright infringement. If they were the same thing then surely the potential punishments would be the same? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
At 3:14 PM +0100 7/30/07, Stut wrote: This conversation is getting pointless guys. The argument being had is about whether copyright infringement should be called stealing or theft. Personally I don't believe it should, but going back and forth on a public mailing list is not going to do anyone . To summarise... * Nobody thinks copyright infringement is a good thing and nobody is denying that it causes harm to every layer of the commercial chain that exists to create and publish copyrighted work * A lot of people believe copyright infringement should not be called theft, and those who do not seem unwilling to see the difference * Comparisons in this arena are always full of holes so stop trying to use them I believe both sides have adequately explained their position and justification, and it's now turning into a game of tennis. Can we please leave it alone now and get back to making something worthy of being copied? -Stut I agree with your summation, both sides are rooted in their position and such discussion is pointless. But, the importance here is one of euphemism. Calling the act of stealing something more palatable, such as copyright infringement, simply makes it easier to do. Conversely, calling the act of copyright infringement something less palatable, such as stealing, simply makes it harder to do. So, pick a side and live with it. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
On Monday 30 July 2007 23:49, tedd wrote: The opposite of BUYING is STEALING I think you meant SELLING. -- Crayon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
At 12:50 AM +0800 7/31/07, Crayon Shin Chan wrote: On Monday 30 July 2007 23:49, tedd wrote: The opposite of BUYING is STEALING I think you meant SELLING. -- Crayon Crayon: No, if you want something that you don't have -- you have three choices: a) go without; b) BUY it; c) STEAL it. Cheers, tedd PS: In this, BUY means to preform to the expectations of the owner for purchase. -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Reading registry values
I want to convert some ASP pages to PHP to go along with a transition from IIS to Apache. One of the ASP script functions involves reading data from the Windows registry. How does one read from the registry with PHP? Also, is it possible to use ActiveX objects with PHP? The above mentioned script uses a third party control to facilitate the registry operations. The VBScript code looks like this: Set objRegistry = CreateObject(RegObj.Registry) Is there a PHP equivalent? This newbie thanks you. -- Crash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
So, when a person travels to some unfamiliar place, and said person wants to have a car for private transportation purposes and does not have one nearby, said person must: a) go without; b) BUY it; c) STEAL it. What I'm trying to say here is: Kindly stop polluting my mailbox with this ridiculous, unhelpful, off-topic nonsense. Regards, Carlton Whitehead - Original Message - From: tedd [EMAIL PROTECTED] To: Crayon Shin Chan [EMAIL PROTECTED], php-general@lists.php.net Sent: Monday, July 30, 2007 2:08:51 PM (GMT-0500) America/New_York Subject: Re: [PHP] Re: Pirate PHP books online? At 12:50 AM +0800 7/31/07, Crayon Shin Chan wrote: On Monday 30 July 2007 23:49, tedd wrote: The opposite of BUYING is STEALING I think you meant SELLING. -- Crayon Crayon: No, if you want something that you don't have -- you have three choices: a) go without; b) BUY it; c) STEAL it. Cheers, tedd PS: In this, BUY means to preform to the expectations of the owner for purchase. -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
On Mon, 2007-07-30 at 14:08 -0400, tedd wrote: At 12:50 AM +0800 7/31/07, Crayon Shin Chan wrote: On Monday 30 July 2007 23:49, tedd wrote: The opposite of BUYING is STEALING I think you meant SELLING. -- Crayon Crayon: No, if you want something that you don't have -- you have three choices: a) go without; b) BUY it; c) STEAL it. You forgot Rent, Lease, Win and a whole slew of other transferral systems. At any rate, wasn't the entire North American continent stolen? If I were a religious man I'd quote the phrase: Render unto Caesar the things which are Caesar’s, and unto God the things that are God’s But I'm not (even though I did just quote it ;). More appropriate to the world of today is the following quote: All your base are belong to us. Ownership is an illusion... What you have may be taken away at anytime by the state (be it your own state or a victorious state that just subjugated your previous state). Moving along to the philosophical... anything that exists is merely a permutation of what might exist. Don't expect that only one living entity can envision such a permutation. Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Reading registry values
[snip] I want to convert some ASP pages to PHP to go along with a transition from IIS to Apache. One of the ASP script functions involves reading data from the Windows registry. How does one read from the registry with PHP? [/snip] PHP is server-side and cannot read client side info. You would need to use something client-side, like JavaScript. JavaScript cannot read the registry either. It's a security thing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
Crayon Shin Chan wrote: On Monday 30 July 2007 23:49, tedd wrote: The opposite of BUYING is STEALING I think you meant SELLING. I think he meant alternative not opposite. I'd laugh for years if someone tried to defend the position that stealing is the opposite of buying. Then I'd send them back to school to start again. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Reading registry values
Jay Blanchard wrote: [snip] I want to convert some ASP pages to PHP to go along with a transition from IIS to Apache. One of the ASP script functions involves reading data from the Windows registry. How does one read from the registry with PHP? [/snip] PHP is server-side and cannot read client side info. You would need to use something client-side, like JavaScript. JavaScript cannot read the registry either. It's a security thing. I think you'll find the OP means on the server-side, which is kinda obvious when you consider the fact the OP already has an ASP app that does this. Crash: The COM extension (http://php.net/com) should let you do that in essentially the same way ASP does. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Reading registry values
I'm not sure that there's actually anything you'd need to access in the server registry (and certainly no registry in Linux if you're also transitioning from Windows to Linux). And depending on what the ActiveX control your ASP pages accessed actually does, it may be better to recreate it in PHP instead of trying to access ActiveX via PHP. What, exactly, is being pulled from the registry and if the ActiveX control does more than just facilitate registry access, what else does it do that you'd need to emulate? I have a feeeling that you don't need to worry about these things after you transition to PHP and Apache. More info please? :) -TG = = = Original message = = = I want to convert some ASP pages to PHP to go along with a transition from IIS to Apache. One of the ASP script functions involves reading data from the Windows registry. How does one read from the registry with PHP? Also, is it possible to use ActiveX objects with PHP? The above mentioned script uses a third party control to facilitate the registry operations. The VBScript code looks like this: Set objRegistry = CreateObject(RegObj.Registry) Is there a PHP equivalent? This newbie thanks you. -- Crash ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Reading registry values
PHP is server-side and cannot read client side info. You would need to use something client-side, like JavaScript. JavaScript cannot read the registry either. It's a security thing. ASP is also server side and the registry I want to read is on the server platform. I am not trying to read the client's registry. -- Crash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Reading registry values
Crash: The COM extension (http://php.net/com) should let you do that in essentially the same way ASP does. Thank you. More stuff to confuse me! :-) -- Crash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] Reading registry values
Hi, Monday, July 30, 2007, 7:40:52 PM, you wrote: I'm not sure that there's actually anything you'd need to access in the server registry (and certainly no registry in Linux if you're also transitioning from Windows to Linux). And depending on what the ActiveX control your ASP pages accessed actually does, it may be better to recreate it in PHP instead of trying to access ActiveX via PHP. I've seen ASP components that required access to the registry in order to validate they were legal. I.e. the installer of the component wrote some serial number or something to the registry, which the ASP scripts checked. Nasty, but true. Just saying that he may well have a genuine need for it. Cheers, Rich -- Zend Certified Engineer http://www.corephp.co.uk Never trust a computer you can't throw out of a window -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Reading registry values
I'm assuming you are intending to read the web server registry for configuration purposes, not the client's registry. Look at the section on COM in the manual. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
tedd wrote: At 5:46 PM +0100 7/30/07, Stut wrote: tedd wrote: But, the importance here is one of euphemism. Calling the act of stealing something more palatable, such as copyright infringement, simply makes it easier to do. Conversely, calling the act of copyright infringement something less palatable, such as stealing, simply makes it harder to do. That's a very curious comment. Do you really think people who are actively infringing copyright really care what you call it? I don't know what they think, and neither do you. But I do believe that if I raised my son with the idea of stealing software was not really stealing, but rather copyright infringement I think he would have a different view in acquiring it -- is that not common sense? Stealing software - that would be walking into a shop and taking a box of software. Not the same as downloading it from a pirate website. My personal view is that it's important that we don't dumb things down for children, and in my opinion calling copyright infringement stealing is dumbing it down so you don't have to explain the difference. In my mind copyright infringement is no better or worse a crime than stealing. Ok, we agree that copyright infringement is as bad as stealing. If it looks like a duck Corporate manslaughter and murder? I would get very worried if we started treating those the same! And, legally speaking, what you call it makes a world of difference. The punishments for stealing are very different to those for copyright infringement. If they were the same thing then surely the potential punishments would be the same? The punishments for any crime vary regardless of what you call it -- that's in the guts of the legal system. I'm not using the failings of our legal system to make any point, I'm just stating the obvious. And the obvious here is that if you deny rights to another, then you are stealing something. No, you're not. If I imprison you am I stealing from you? No. Again I'm forced to repeat the basic point... stealing involves a thing, copyright involves a legal protection mechanism. I cannot steal a legal protection mechanism, but I can infringe it. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
At 5:46 PM +0100 7/30/07, Stut wrote: tedd wrote: But, the importance here is one of euphemism. Calling the act of stealing something more palatable, such as copyright infringement, simply makes it easier to do. Conversely, calling the act of copyright infringement something less palatable, such as stealing, simply makes it harder to do. That's a very curious comment. Do you really think people who are actively infringing copyright really care what you call it? I don't know what they think, and neither do you. But I do believe that if I raised my son with the idea of stealing software was not really stealing, but rather copyright infringement I think he would have a different view in acquiring it -- is that not common sense? In my mind copyright infringement is no better or worse a crime than stealing. Ok, we agree that copyright infringement is as bad as stealing. If it looks like a duck And, legally speaking, what you call it makes a world of difference. The punishments for stealing are very different to those for copyright infringement. If they were the same thing then surely the potential punishments would be the same? The punishments for any crime vary regardless of what you call it -- that's in the guts of the legal system. I'm not using the failings of our legal system to make any point, I'm just stating the obvious. And the obvious here is that if you deny rights to another, then you are stealing something. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
At 5:43 PM +0100 7/30/07, Stut wrote: Copyright exists to prevent unauthorised *usage* of material. It does not exist to prevent the unauthorised taking of instances of that material - that's what the laws regarding theft are for. Well, when I *use* my neighbor's car without his authorization it's called stealing This is the fundamental difference between copyright infringement and theft. Usage is not ownership, and you cannot steal usage. Usage is ALL you can steal regardless of what it is you're stealing. Ownership is only a concept that is provided, or prohibited, by society. You cannot steal ownership of anything. You can deny the lawful owner the use of the item stolen, OR diminish it's use, OR do something that devalues the object, but you cannot steal ownership of the object. The object, unless returned to the owner, will always be stolen and the act of stealing it makes you a thief. According to Thames Valley Police here in the UK... The basic legal definition of theft is 'the dishonest appropriation of property belonging to another with the intention of permanently depriving that person of it'.[1] How can that possibly apply to copyrighted material? By infringing copyright you are not permanently depriving the author/publisher/anyone of it. [1] Of course it is. The unlawful appropriation of copyrighted material permanently denies the author payment or whatever terms the author considers required for it's distribution. Furthermore, it permanently degrades the marketability potential of the copyrighted material. Both of those real and tangible damages that the author can pursue in court -- do you deny that? So, if you are stealing code, you are permanently depriving the author of full use of his work product. You do not have to steal everything to steal something. You have a right to your belief, but that doesn't make your belief right. This works both ways. Oh yeah, well my dad can beat up your dad. Your position that copyright infringement is not stealing is fundamentally flawed. How? Nobody is not being permanently deprived of the content you are using in an unauthorised fashion. Of course you're being permanently deprived -- I described how above. I don't believe Larry suggested everything should be open source with no responsibility to the author. All he's saying, and I agree, is that the current copyright system is not perfect and need to be reviewed. I will agree that the copyright system is not perfect when considering how people can view stealing as something other than what it is. But it's not stealing. We talk about stealing an idea but in reality that's not possible. Please tell me you can see that. Certainly, stealing an idea is possible -- that's the reason behind patent laws and laws protecting intellectual properties. Ideas are the foundation of advancement for our society and of course they can be stolen. It so common it's a clique. Again, I don't understand why we have to debate the obvious? You cannot own copyrighted material. You have control over it, not ownership. So, you are saying that an author does not own his work product? Microsoft does not own Word? They only have control of it? So Microsoft dumps tons of money into programmers to produce control -- and the IRS accepts this expenditure as a deductible expense? I don't think so, I think Microsoft is producing and selling a product -- a product that can be (and is) stolen. Legally speaking, and I'd love to see a legal reference that disputes this, copyright infringement is not stealing. I seldom look to the law to determine what's right and wrong -- the law is certainly not my moral compass. Besides, the law has enough problems determining what's right and wrong itself. Instead, I look to common sense and upbringing -- from childhood I've been taught that if I take something that's not mine, it's stealing. A very basic childhood concept that some have apparently lost or misplaced in the technical complexities of today. Think about this... if I were to be accused of copyright theft, surely I've stolen the right to control the material because it's the control that copyright provides, not the material itself. That simple 2-word phrase makes no sense at all. Here's hoping that made my point of view a bit clearer. OK, then you think about this -- you are stealing the right of control OVER the item you took. Clearly, after you steal the item, then you can do anything you want with it; you can give it away; use it for your own use; publish it on a web site free for everyone to download -- is that not true? As such, you DO have control over the item you stole and thus have stolen control. Control does not have to be complete, total, and absolute to constitute stealing. If someone steals my car and I have control over a tracking device attached to it, does it make their act any less of a theft? Of course not. I don't
Re: Re[2]: [PHP] Reading registry values
Yeah, that could be one thing that the ASP/ActiveX combo need to access the registry for.. but if he's replacing ASP with PHP and if the ActiveX control doesn't do anything he can't re-create in PHP, then there's no need to verify that anything relating to ASP or ActiveX is registered and genuine because it would have been replaced with a PHP alternative. I can't think of anything that a PHP app is going to need access to the registry for, so I'm trying to verify that there actually is a need for him to access the registry and/or use ActiveX via PHP. I'm guessing that he doesn't need to at all. -TG = = = Original message = = = Hi, Monday, July 30, 2007, 7:40:52 PM, you wrote: I'm not sure that there's actually anything you'd need to access in the server registry (and certainly no registry in Linux if you're also transitioning from Windows to Linux). And depending on what the ActiveX control your ASP pages accessed actually does, it may be better to recreate it in PHP instead of trying to access ActiveX via PHP. I've seen ASP components that required access to the registry in order to validate they were legal. I.e. the installer of the component wrote some serial number or something to the registry, which the ASP scripts checked. Nasty, but true. Just saying that he may well have a genuine need for it. Cheers, Rich -- Zend Certified Engineer http://www.corephp.co.uk Never trust a computer you can't throw out of a window -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
At 2:30 PM -0400 7/30/07, Robert Cummings wrote: On Mon, 2007-07-30 at 14:08 -0400, tedd wrote: At 12:50 AM +0800 7/31/07, Crayon Shin Chan wrote: On Monday 30 July 2007 23:49, tedd wrote: The opposite of BUYING is STEALING I think you meant SELLING. -- Crayon Crayon: No, if you want something that you don't have -- you have three choices: a) go without; b) BUY it; c) STEAL it. You forgot Rent, Lease, Win and a whole slew of other transferral systems. At any rate, wasn't the entire North American continent stolen? If I were a religious man I'd quote the phrase: And you forgot my PS, which read; PS: In this, BUY means to preform to the expectations of the owner for purchase. Expectations of the owner could mean Rent, Lease, Win and a whole slew of other transferral systems. Render unto Caesar the things which are Caesar's, and unto God the things that are God's Yes, but that was Christ answer to a question of paying taxes, was it not? But I'm not (even though I did just quote it ;). More appropriate to the world of today is the following quote: All your base are belong to us. Ownership is an illusion... What you have may be taken away at anytime by the state (be it your own state or a victorious state that just subjugated your previous state). But illusion all we have. There is no truth in perception. Moving along to the philosophical... anything that exists is merely a permutation of what might exist. More accurately, what doesn't exist is merely a permutation in variations in the theme of what does. Don't expect that only one living entity can envision such a permutation. Don't expect anyone with our limitations to be capable to determine the truth of that statement. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
tedd wrote: At 2:30 PM -0400 7/30/07, Robert Cummings wrote: Ownership is an illusion... What you have may be taken away at anytime by the state (be it your own state or a victorious state that just subjugated your previous state). But illusion all we have. There is no truth in perception. Then there is no truth in anything for all things are based on perception. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
At 7:37 PM +0100 7/30/07, Stut wrote: Crayon Shin Chan wrote: On Monday 30 July 2007 23:49, tedd wrote: The opposite of BUYING is STEALING I think you meant SELLING. I think he meant alternative not opposite. I'd laugh for years if someone tried to defend the position that stealing is the opposite of buying. Then I'd send them back to school to start again. -Stut Give me a break Stut -- address what I said, not what's taken out of context. Have we resorted to a rush to judgement regardless of what was actually said or intended to support a point of view and discredit/demean the opposite view? You're better than that. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[2]: [PHP] Reading registry values
I can't think of anything that a PHP app is going to need access to the registry for, so I'm trying to verify that there actually is a need for him to access the registry and/or use ActiveX via PHP. I'm guessing that he doesn't need to at all. I don't _need_ it for anything in the scripts or the server. I _want_ to read some stuff from the registry for my own purposes. The registry datum is not a means to an end, it is the end in itself. As for why I need or want to use an ActiveX control, I am simply going by my past experience with VBScript, which has only rudimentary registry access methods. Now I'll go read up on the COM object and see if it solves my problems. -- Crash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
On Mon, 2007-07-30 at 15:06 -0400, tedd wrote: At 2:30 PM -0400 7/30/07, Robert Cummings wrote: On Mon, 2007-07-30 at 14:08 -0400, tedd wrote: At 12:50 AM +0800 7/31/07, Crayon Shin Chan Render unto Caesar the things which are Caesar's, and unto God the things that are God's Yes, but that was Christ answer to a question of paying taxes, was it not? That doesn't change it's applicability beyond the realm of taxes. But I'm not (even though I did just quote it ;). More appropriate to the world of today is the following quote: All your base are belong to us. Ownership is an illusion... What you have may be taken away at anytime by the state (be it your own state or a victorious state that just subjugated your previous state). But illusion all we have. There is no truth in perception. No, we don't all have the illusion. I am in no way under the illusion, but I do find myself disinclined to pursue change :) Moving along to the philosophical... anything that exists is merely a permutation of what might exist. More accurately, what doesn't exist is merely a permutation in variations in the theme of what does. There is no more accuracy in the above statement. It is the complement of the former statement... although you worded it quite strangely. Don't expect that only one living entity can envision such a permutation. Don't expect anyone with our limitations to be capable to determine the truth of that statement. The phone was independently envisioned by two distinct humans at the same time. The same is true of calculus. So you are wrong, we are capable of determine the validity of the statement by the existence of such events in history. Let's just say that all that is owned is owned because one or more creatures died so that ownership could be enforced. Yes, you may go to Walmart and buy your CD, but the resources that built Walmart, that built your CD, that built the stereos that play the CD, or the computer, or what have you, were created from resources that at one time in existence were freely available to all creatures upon this planet. The entire principle of ownership is based on misery. Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
At 8:23 PM +0100 7/30/07, Stut wrote: tedd wrote: At 2:30 PM -0400 7/30/07, Robert Cummings wrote: Ownership is an illusion... What you have may be taken away at anytime by the state (be it your own state or a victorious state that just subjugated your previous state). But illusion all we have. There is no truth in perception. Then there is no truth in anything for all things are based on perception. -Stut You are now one with the universe. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
On Mon, 2007-07-30 at 20:23 +0100, Stut wrote: tedd wrote: At 2:30 PM -0400 7/30/07, Robert Cummings wrote: Ownership is an illusion... What you have may be taken away at anytime by the state (be it your own state or a victorious state that just subjugated your previous state). But illusion all we have. There is no truth in perception. Then there is no truth in anything for all things are based on perception. The concepts of ownership and copyright both rely on perception... :) Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
Robert Cummings wrote: On Mon, 2007-07-30 at 20:23 +0100, Stut wrote: tedd wrote: At 2:30 PM -0400 7/30/07, Robert Cummings wrote: Ownership is an illusion... What you have may be taken away at anytime by the state (be it your own state or a victorious state that just subjugated your previous state). But illusion all we have. There is no truth in perception. Then there is no truth in anything for all things are based on perception. The concepts of ownership and copyright both rely on perception... As does gravity. I'm done now, there really is no point continuing and I dunno about anyone else but I have better things to do. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
On Mon, 2007-07-30 at 20:35 +0100, Stut wrote: Robert Cummings wrote: On Mon, 2007-07-30 at 20:23 +0100, Stut wrote: tedd wrote: At 2:30 PM -0400 7/30/07, Robert Cummings wrote: Ownership is an illusion... What you have may be taken away at anytime by the state (be it your own state or a victorious state that just subjugated your previous state). But illusion all we have. There is no truth in perception. Then there is no truth in anything for all things are based on perception. The concepts of ownership and copyright both rely on perception... As does gravity. I'm done now, there really is no point continuing and I dunno about anyone else but I have better things to do. Like fly right? :B Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
On Mon, 2007-07-30 at 15:33 -0400, tedd wrote: At 8:23 PM +0100 7/30/07, Stut wrote: tedd wrote: At 2:30 PM -0400 7/30/07, Robert Cummings wrote: Ownership is an illusion... What you have may be taken away at anytime by the state (be it your own state or a victorious state that just subjugated your previous state). But illusion all we have. There is no truth in perception. Then there is no truth in anything for all things are based on perception. -Stut You are now one with the universe. We are all one with the universe and at the same time not one with the universe. Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
Don't expect that only one living entity can envision such a permutation. Don't expect anyone with our limitations to be capable to determine the truth of that statement. The phone was independently envisioned by two distinct humans at the same time. The same is true of calculus. So you are wrong, we are capable of determine the validity of the statement by the existence of such events in history. -snip- No, I was addressing a concept deeper than that. The only one who can envision such a permutation is God, not man. Your previous paragraph mentioned permutation of what might exist -- which would be infinite. The only living entity that fills that bill is God. Now, you may argue that, but it's not a topic for this list. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
tedd wrote: Don't expect that only one living entity can envision such a permutation. Don't expect anyone with our limitations to be capable to determine the truth of that statement. The phone was independently envisioned by two distinct humans at the same time. The same is true of calculus. So you are wrong, we are capable of determine the validity of the statement by the existence of such events in history. -snip- No, I was addressing a concept deeper than that. The only one who can envision such a permutation is God, not man. Your previous paragraph mentioned permutation of what might exist -- which would be infinite. The only living entity that fills that bill is God. Now, you may argue that, but it's not a topic for this list. Indeed not, but I must point out your assumption that God exists which is in no way a certainty regardless of your beliefs. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
On Mon, 2007-07-30 at 15:44 -0400, tedd wrote: Don't expect that only one living entity can envision such a permutation. Don't expect anyone with our limitations to be capable to determine the truth of that statement. The phone was independently envisioned by two distinct humans at the same time. The same is true of calculus. So you are wrong, we are capable of determine the validity of the statement by the existence of such events in history. -snip- No, I was addressing a concept deeper than that. The only one who can envision such a permutation is God, not man. Your previous paragraph mentioned permutation of what might exist -- which would be infinite. The only living entity that fills that bill is God. We are what we think. All that we are arises with our thoughts. With our thoughts we make the world. Now, you may argue that, but it's not a topic for this list. Copyright is not a topic for this list either. Now bow your head in shame and allow for this ridiculous thread to die :) Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] audio recorder
Not exactly a php question. but I'm doing the project in php, so does that count? ;-) A client of mine wants a simple audio recorder for users to record a short clip/message for other users. anyone recommend any simple audio recorder applets or similar that can easily be integrated with php? Thanks! J
Re: [PHP] audio recorder
On 7/31/07, John Pillion [EMAIL PROTECTED] wrote: Not exactly a php question. but I'm doing the project in php, so does that count? ;-) A client of mine wants a simple audio recorder for users to record a short clip/message for other users. anyone recommend any simple audio recorder applets or similar that can easily be integrated with php? Thanks! J How do you want to implement it? Where is the microphone connected? Server? Client? or is it a Stand Alone app (CLI)? If it's connected to the client PC (which I'm guessing), then you can't use PHP for recording it, it needs to be done in a client side language, and if you don't want the client to download an application, you have a few options, but there's only one I can recommend, and that is java. But really, you're not on the right list for that ;) If it's connected to the server, or if it's an Stand Alone app, then I would recommend you looking for some software that does record from the microphone, and use it through system, exec, ``, ... functions. Tijnema -- Vote for PHP Color Coding in Gmail! - http://gpcc.tijnema.info -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] audio recorder
-Original Message- From: Tijnema [mailto:[EMAIL PROTECTED] Sent: Monday, July 30, 2007 4:25 PM To: John Pillion Cc: php-general@lists.php.net Subject: Re: [PHP] audio recorder On 7/31/07, John Pillion [EMAIL PROTECTED] wrote: Not exactly a php question. but I'm doing the project in php, so does that count? ;-) A client of mine wants a simple audio recorder for users to record a short clip/message for other users. anyone recommend any simple audio recorder applets or similar that can easily be integrated with php? Thanks! J How do you want to implement it? Where is the microphone connected? Server? Client? or is it a Stand Alone app (CLI)? [JP] You guessed right... client side. If it's connected to the client PC (which I'm guessing), then you can't use PHP for recording it, it needs to be done in a client side language, and if you don't want the client to download an application, you have a few options, but there's only one I can recommend, and that is java. But really, you're not on the right list for that ;) [JP] I knew PHP couldn't do it... but I was hoping there was a better option than Java. If not, then so be it I guess. Agreed that this isn't the right list for that though ;-) If it's connected to the server, or if it's an Stand Alone app, then I would recommend you looking for some software that does record from the microphone, and use it through system, exec, ``, ... functions. [JP] Don't want a stand alone app, as I/they want it as simple and user friendly as possible. J Tijnema -- Vote for PHP Color Coding in Gmail! - http://gpcc.tijnema.info -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Reading registry values -Solved!
The bad news is that there are no intrinsic PHP functions for accessing the registry and my third party registry object is not a compatible COM object. The good news is that I can run an external VBS script with the Exec command that does everything I want and feeds the results back to the PHP script. Thanks to all for your inputs and help. -- Crash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] audio recorder
On 7/31/07, John Pillion [EMAIL PROTECTED] wrote: -Original Message- From: Tijnema [mailto:[EMAIL PROTECTED] Sent: Monday, July 30, 2007 4:25 PM To: John Pillion Cc: php-general@lists.php.net Subject: Re: [PHP] audio recorder On 7/31/07, John Pillion [EMAIL PROTECTED] wrote: Not exactly a php question. but I'm doing the project in php, so does that count? ;-) A client of mine wants a simple audio recorder for users to record a short clip/message for other users. anyone recommend any simple audio recorder applets or similar that can easily be integrated with php? Thanks! J How do you want to implement it? Where is the microphone connected? Server? Client? or is it a Stand Alone app (CLI)? [JP] You guessed right... client side. :) If it's connected to the client PC (which I'm guessing), then you can't use PHP for recording it, it needs to be done in a client side language, and if you don't want the client to download an application, you have a few options, but there's only one I can recommend, and that is java. But really, you're not on the right list for that ;) [JP] I knew PHP couldn't do it... but I was hoping there was a better option than Java. If not, then so be it I guess. Agreed that this isn't the right list for that though ;-) It might be possible with ASP + ActiveX or something like that, but then your limiting yourself ;) ASP works only fully on Windows servers , while the mono project does a good part of implementing it, it's not perfect yet (neither is the official version from microsoft ;) ). ActiveX works only with IE browser, and with some kind of hacks it is possible with FF etc too, but also this is far from perfect (and user friendly ;) ) If it's connected to the server, or if it's an Stand Alone app, then I would recommend you looking for some software that does record from the microphone, and use it through system, exec, ``, ... functions. [JP] Don't want a stand alone app, as I/they want it as simple and user friendly as possible. J Everyone wants that ;) An example of audio recording in Java: www.javasonics.com Or if you're going to write it yourself, you have a) The Java Sound API (integrated into Java) b) Java Media FrameWork (http://java.sun.com/products/java-media/jmf) Tijnema -- Vote for PHP Color Coding in Gmail! - http://gpcc.tijnema.info -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] audio recorder
Tijnema wrote: On 7/31/07, John Pillion [EMAIL PROTECTED] wrote: Not exactly a php question. but I'm doing the project in php, so does that count? ;-) A client of mine wants a simple audio recorder for users to record a short clip/message for other users. anyone recommend any simple audio recorder applets or similar that can easily be integrated with php? Thanks! J How do you want to implement it? Where is the microphone connected? Server? Client? or is it a Stand Alone app (CLI)? If it's connected to the client PC (which I'm guessing), then you can't use PHP for recording it, it needs to be done in a client side language, and if you don't want the client to download an application, you have a few options, but there's only one I can recommend, and that is java. But really, you're not on the right list for that ;) If it's connected to the server, or if it's an Stand Alone app, then I would recommend you looking for some software that does record from the microphone, and use it through system, exec, ``, ... functions. Tijnema You could also implement it using Shockwave Flash, no idea how though, as I've never bothered looking into that stuff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: need insights on encrypting and uploading ASCII file using PHP
There's a lot of things you could do. You could use ssl and some sort of PGP on the server side hooked into the ssl, and a whole mess of other things. But that still won't guarentee who sent the file, as all the PGP stuff is done server side, digital signatures wouldn't mean anything. The best way to do it would be to have the users whom are submitting the file to upload use a copy of PGP or GnuPGP on their local machiene then just upload the file like you always have. If people are requesting encryption from you request that they do something too(mainly encrypt it) since you'll decrypt it later. - Dan John A DAVIS [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] We have various labs that submit coliform sample results in an ASCII file, quoted/comma delimited. We are being asked to encrypt this file for internet transfer. We are also being asked to create a secure process by which to transfer this file across the interent. Currently: the lab pushes and button and generates the ASCII file (12 columns) the lab logs in to a PHP webpage and uses the file upload input to submit the file. If data is valid, file is saved on our server in a folder where we can pull it into the respective tables. Be nice to have some insights on how to encrypt this file at the source and how to transfer the file securely. We keep hearing the words, digital signature. Thanks in advance, John A. Davis Programmer State of Oregon DHS OIS CNE, MCSE Don't think of the problem, think of the solution
Re: [PHP] Re: Pirate PHP books online?
On Monday 30 July 2007, David Powers wrote: Larry Garfield wrote: copyright infringement is NOT taking something without paying for it. Copyright infringement is duplicating an expression of an idea that is fixed in a medium without the permission of the copyright holder. Money doesn't enter into it. If the licence under which the work was released stipulates payment, money does become an integral aspect of any infringement. If copyright infringement were taking something without paying for it, then anyone who's ever installed PHP is guilty of copyright infringement unless they sent Rasmus a check. That is, of course, nonsense. This is a nonsensical comparison, because installing PHP is not an infringement of copyright. The PHP licence specifically grants the right to use and distribute PHP, as long as certain conditions are met: http://www.php.net/license/3_01.txt It's supposed to be a nonsensical comparison. :-) I was pointing out that the copyright infringement == taking without giving money statement was false because of examples like PHP itself. And the rank-and-file artists and authors of the world do not benefit from perpetuating that lie. The current direction the law is moving, toward more restrictions on the exchange of information, is bad for anyone who isn't Robert Iger or Britney Spears. That's why it is important to confront and correct that lie. It must be corrected before copyright can be sanely reformed to benefit the public (its supposed goal) and original artists/authors, not a select few mega-corps. Unfortunately, the tactics used by pirates are disproportionately harmful to rank-and-file artists and authors. I don't see the pirates simply going away if and when copyright law is amended. Nor do I. Some degree of copyright infringement will always exist, and changes in technology increase the ease with which copying (legal or illegal) can occur. The solution, in my opinion, is to revise copyright law such that more typical behavior has a better chance of benefiting the original author/artist without creating a hostile environment for the the end user. That is, make casual pirates into customers. As long as we hold onto the OMG he copied a CD it's stealing send him to prison for a decade! mentality, though, that cannot happen. And no, that won't do anything about professional pirates, the groups who duplicate illicitly for profit. I am perfectly happy with them behind bars. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it. -- Thomas Jefferson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
On 7/31/07, Larry Garfield [EMAIL PROTECTED] wrote: On Monday 30 July 2007, David Powers wrote: Larry Garfield wrote: copyright infringement is NOT taking something without paying for it. Copyright infringement is duplicating an expression of an idea that is fixed in a medium without the permission of the copyright holder. Money doesn't enter into it. If the licence under which the work was released stipulates payment, money does become an integral aspect of any infringement. If copyright infringement were taking something without paying for it, then anyone who's ever installed PHP is guilty of copyright infringement unless they sent Rasmus a check. That is, of course, nonsense. This is a nonsensical comparison, because installing PHP is not an infringement of copyright. The PHP licence specifically grants the right to use and distribute PHP, as long as certain conditions are met: http://www.php.net/license/3_01.txt It's supposed to be a nonsensical comparison. :-) I was pointing out that the copyright infringement == taking without giving money statement was false because of examples like PHP itself. And the rank-and-file artists and authors of the world do not benefit from perpetuating that lie. The current direction the law is moving, toward more restrictions on the exchange of information, is bad for anyone who isn't Robert Iger or Britney Spears. That's why it is important to confront and correct that lie. It must be corrected before copyright can be sanely reformed to benefit the public (its supposed goal) and original artists/authors, not a select few mega-corps. Unfortunately, the tactics used by pirates are disproportionately harmful to rank-and-file artists and authors. I don't see the pirates simply going away if and when copyright law is amended. Nor do I. Some degree of copyright infringement will always exist, and changes in technology increase the ease with which copying (legal or illegal) can occur. The solution, in my opinion, is to revise copyright law such that more typical behavior has a better chance of benefiting the original author/artist without creating a hostile environment for the the end user. That is, make casual pirates into customers. As long as we hold onto the OMG he copied a CD it's stealing send him to prison for a decade! mentality, though, that cannot happen. And no, that won't do anything about professional pirates, the groups who duplicate illicitly for profit. I am perfectly happy with them behind bars. Yeah, put all those CD Copiers in jail... LOL, all those CD Copiers would fit in one big jail as big as the whole USA Tijnema -- Vote for PHP Color Coding in Gmail! - http://gpcc.tijnema.info -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
On Monday 30 July 2007, tedd wrote: Our entire legal system is built on allowing (granting permission) certain actions and not allowing (not granting permission) other actions. You do not have permission to steal. And if someone has not granted you the permission to use their whatever and you do use their whatever, then that's stealing. So jay-walking (illegal, you do not have permission to do it) is now stealing, because it's something you're not granted permission to do? A great many people -- myself included but also the Creative Commons folks, the FSF, many open source developers, and many others -- believe the current system of copyright law to be fundamentally flawed. And, I doubt that the organizations you site actually agree with you. I have personally spoken to both Larry Lessig (Creative Commons) and Richard Stallman (FSF) on the subject, and feel confident in saying that both agree with the distinction. Lessig doesn't feel it's an issue worth pursuing when there are bigger fish to fry. I respectfully disagree. Not that we shouldn't have copyright, but that the current form of copyright is broken. A work restricted for an entire generation after the original author is dead? What about descendants of the author? When anyone dies, their descendants have a rightful claim on their parent's assets -- it been that way since the dawn of mankind. Do you think you know better than the practice of thousands of generations? Actually no, property law didn't really come in until civilization, some 5000 years ago, which is rather small on the scale of dawn of mankind. And copyright didn't exist until perhaps 5 centuries ago in England, and covered just publication, and was for less than 20 years. Copyright being long enough term for inheritance to matter is less than a century. Over the scale of human history, unrestricted information flow has been the rule, not the exception. But what you're suggesting is that legalized extortion should be inheritable. Copyright is, fundamentally, legalized extortion as a means of promoting the progress of Science and the Useful Arts. Do you keep paying the guy who built your TV every time you watch something on it? Do you keep paying the company that built your house every time you move? Do you pay your teachers from college every time you use something you learned there? Do you pay your dentist every time you eat? And for that, I am accused of having no morality and values. I don't think anyone has accused you of that, but saying what you have, leaves us with the obvious conclusion that you don't recognize copyright infringement as stealing -- and that does cast a long shadow as to morality and values. I will simply leave the above snippet in place, as I think it speaks for itself. tedd PS: I said I wouldn't get back into this argument, but your claims are just absurd. This from the man who just claimed that perpetual copyright for all decedents of an artist was a fundamental part of human existence for as long as they've been humans. Can we stick to facts when making logical arguments rather than completely made up nonsense? -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it. -- Thomas Jefferson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Pirate PHP books online? - ENOUGH ALREADY
into the possession of every one, and the receiver cannot dispossess himself of it. -- Thomas Jefferson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 2429 (20070730) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online? - ENOUGH ALREADY
]ICQ: 6817012 If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it. -- Thomas Jefferson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 2429 (20070730) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Vote for PHP Color Coding in Gmail! - http://gpcc.tijnema.info -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] audio recorder
A service called AudioGenerator provides an online recording capability like you are describing via Flash. Their flash app is at: http://upload.audiogenerator.com/audio_recorder.swf Normally called with the code: object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0; id=video_recorder viewastext= align=middle height=300 width=215 param name=allowScriptAccess value=sameDomain param name=movie value=audio_recorder.swf param name=FlashVars value=imefajl=1055s4dfsd45amp;w=newrecordbymicrophone2.aspamp;popup= param name=menu value=false param name=quality value=high param name=bgcolor value=#CC /object I don't know if this is a custom component they created or a purchasable one. I provide the above link and info only as an example of one approach; kindly confirm all proper licensing requirements prior to making any use of this applet. If you do find a solution with a viable license kindly update me (or the list) as I too would be interested in this. -Geoff On 7/30/07, M. Sokolewicz [EMAIL PROTECTED] wrote: Tijnema wrote: On 7/31/07, John Pillion [EMAIL PROTECTED] wrote: Not exactly a php question. but I'm doing the project in php, so does that count? ;-) A client of mine wants a simple audio recorder for users to record a short clip/message for other users. anyone recommend any simple audio recorder applets or similar that can easily be integrated with php? Thanks! J How do you want to implement it? Where is the microphone connected? Server? Client? or is it a Stand Alone app (CLI)? If it's connected to the client PC (which I'm guessing), then you can't use PHP for recording it, it needs to be done in a client side language, and if you don't want the client to download an application, you have a few options, but there's only one I can recommend, and that is java. But really, you're not on the right list for that ;) If it's connected to the server, or if it's an Stand Alone app, then I would recommend you looking for some software that does record from the microphone, and use it through system, exec, ``, ... functions. Tijnema You could also implement it using Shockwave Flash, no idea how though, as I've never bothered looking into that stuff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
On Tuesday 31 July 2007 02:08, tedd wrote: No, if you want something that you don't have -- you have three choices: a) go without; b) BUY it; c) STEAL it. Rubbish. You can borrow, lease, hire purchase, rent, and there are probably other options as well. -- Crayon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Pirate PHP books online?
On Tuesday 31 July 2007 02:45, tedd wrote: Well, when I *use* my neighbor's car without his authorization it's called stealing If your intention was not to keep the car on a permenant basis then you would probably be prosecuted for joyriding rather than stealing. How? Nobody is not being permanently deprived of the content you are using in an unauthorised fashion. Of course you're being permanently deprived -- I described how above. The whole phrase as quoted above is being permanently deprived of the _content_. What you described does NOT deprive the author/originator of his/her content. Certainly, stealing an idea is possible -- that's the reason behind patent laws and laws protecting intellectual properties. Ideas are the foundation of advancement for our society and of course they can be stolen. It so common it's a clique. Unfortunately the present patent and copyright laws are much abused and instead of promoting advancement in society they hinder it. I seldom look to the law to determine what's right and wrong -- the law is certainly not my moral compass. Besides, the law has enough problems determining what's right and wrong itself. But you've been forever quoting points of law to backup your arguments as to what is right or wrong. OK, then you think about this -- you are stealing the right of control OVER the item you took. Clearly, after you steal the item, then you can do anything you want with it; you can give it away; use it for your own use; publish it on a web site free for everyone to download -- is that not true? As such, you DO have control over the item you stole and thus have stolen control. How about if you BUY the item in question, does it mean you have BOUGHT control, and hence you're allowed to give it away, sell it etc. -- Crayon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] audio recorder
On 7/31/07, John Pillion [EMAIL PROTECTED] wrote: Not exactly a php question. but I'm doing the project in php, so does that count? ;-) A client of mine wants a simple audio recorder for users to record a short clip/message for other users. anyone recommend any simple audio recorder applets or similar that can easily be integrated with php? I don't know if it will fit your application design or business process, but for a dirt simple recording application, Gerd Knorr's record is the bee's knees: http://bytesex.org -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Reading registry values
On Mon, July 30, 2007 1:32 pm, Jay Blanchard wrote: [snip] I want to convert some ASP pages to PHP to go along with a transition from IIS to Apache. One of the ASP script functions involves reading data from the Windows registry. How does one read from the registry with PHP? [/snip] PHP is server-side and cannot read client side info. You would need to use something client-side, like JavaScript. JavaScript cannot read the registry either. It's a security thing. I'm pretty sure the original ASP script was reading the SERVER registry... Even ASP isn't *that* insecure! :-) -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Changing URLs from Relative to Absolute
Tom Chubb wrote: Dear list, I was recently trying to write a script where a user copy and pastes their HTML code to display something on a listings site and tried to find a way to change the URL of an image from relative to absolute. For example img src=images/1.jpg becomes img = src= http://domain.com/images/1.jpg;. That is easy enough and I created a regexp, but I found that some people call the img tag differently such as: img a=A photo src=images/1.jpg Does anyone have experience of this? How can I create a regexp that will find it in every case? You may want to use DOM instead of Regex, since the order of the attributes can be whatever the HTML coder felt like using that week... Your regex is gonna get awfully complicated, since there could be all manner of attributes, including browser-specific ones, or even garbage ones, not to mention JavaScript... -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $HTTP_POST_FILES always produces empty value.
On Mon, July 30, 2007 7:00 am, Patrik Hasibuan wrote: I don't understand why $HTTP_POST_FILES always produces empty value. php.ini might have long names turned off. Try just $_FILES -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Wordpress Theme Switcher plugin redirect modification
On Mon, July 30, 2007 4:48 am, Erik Gyepes wrote: I would like to modify the Theme Switcher Plugin for Wordpress (http://dev.wp-plugins.org/wiki/ThemeSwitcher). When I currently request the page to switch the theme (for example: mydomain.com/?wptheme=My+Theme) I'm redirected to the index.php, but instead I would like to redirect back to the page where I was before (for example: mydomain.com/?p=15) Here is the code which is redirecting the page: function ts_set_theme_cookie() { $expire = time http://www.php.net/time() + 3000; if (!empty http://www.php.net/empty($_GET[wptheme])) { setcookie http://www.php.net/setcookie(wptheme . COOKIEHASH, stripslashes http://www.php.net/stripslashes($_GET[wptheme]), $expire, COOKIEPATH ); $redirect = get_settings('home').'/'; if (function_exists http://www.php.net/function_exists('wp_redirect')) wp_redirect($redirect); else header http://www.php.net/header(Location: . $redirect); exit http://www.php.net/exit; } } I don't know what added all those links, but it made this pretty unreadable... That said, the call to stripslashes is a dead giveaway that something is very messed up in the code indeed... This is awfully WordPress specific... I've tried to change the $redirect variable to $_SERVER['REQUEST_URI'] but it doesn't worked. REQUEST_URI is the page you are on right now. Re-directing there is pretty much an infinite loop. Then I realized that I should save the current page URL in the cookies, so I've set a cookie and then I tried redirect the page to the URL in that cookie. It worked, but not as intended, there are some situations when it is redirecting in a loop. Put it in $_SESSION maybe, but not a Cookie. Any recommendations how to do it properly? Rewrite WordPress from scratch? :-v Ask the WordPress guys is probably the real answer. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php