You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
(9) |
May
(28) |
Jun
(54) |
Jul
(68) |
Aug
(34) |
Sep
(20) |
Oct
(62) |
Nov
(58) |
Dec
(77) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(91) |
Feb
(101) |
Mar
(73) |
Apr
(107) |
May
(56) |
Jun
(43) |
Jul
(68) |
Aug
(31) |
Sep
(35) |
Oct
(50) |
Nov
(20) |
Dec
(37) |
2004 |
Jan
(17) |
Feb
(3) |
Mar
(2) |
Apr
(7) |
May
(3) |
Jun
(11) |
Jul
(8) |
Aug
(22) |
Sep
(10) |
Oct
(9) |
Nov
(17) |
Dec
(6) |
2005 |
Jan
(14) |
Feb
(11) |
Mar
(6) |
Apr
(30) |
May
(17) |
Jun
(57) |
Jul
(18) |
Aug
(18) |
Sep
(32) |
Oct
(49) |
Nov
(19) |
Dec
(40) |
2006 |
Jan
(48) |
Feb
(68) |
Mar
(74) |
Apr
(92) |
May
(90) |
Jun
(60) |
Jul
(25) |
Aug
(47) |
Sep
(36) |
Oct
(64) |
Nov
(57) |
Dec
(21) |
2007 |
Jan
(74) |
Feb
(24) |
Mar
(49) |
Apr
(37) |
May
(56) |
Jun
(27) |
Jul
(23) |
Aug
(24) |
Sep
(24) |
Oct
(58) |
Nov
(13) |
Dec
(9) |
2008 |
Jan
(41) |
Feb
(16) |
Mar
(53) |
Apr
(19) |
May
(53) |
Jun
(20) |
Jul
(44) |
Aug
(12) |
Sep
(19) |
Oct
(22) |
Nov
(64) |
Dec
(14) |
2009 |
Jan
(16) |
Feb
(37) |
Mar
(30) |
Apr
(24) |
May
(3) |
Jun
(14) |
Jul
(39) |
Aug
(30) |
Sep
(38) |
Oct
(10) |
Nov
(9) |
Dec
(30) |
2010 |
Jan
(27) |
Feb
(9) |
Mar
(8) |
Apr
(38) |
May
(17) |
Jun
(2) |
Jul
(15) |
Aug
(3) |
Sep
(9) |
Oct
(3) |
Nov
(14) |
Dec
(6) |
2011 |
Jan
(1) |
Feb
(14) |
Mar
(18) |
Apr
(7) |
May
(3) |
Jun
(5) |
Jul
(3) |
Aug
|
Sep
(3) |
Oct
(3) |
Nov
(3) |
Dec
(2) |
2012 |
Jan
(2) |
Feb
(2) |
Mar
(1) |
Apr
|
May
(2) |
Jun
(1) |
Jul
(2) |
Aug
(2) |
Sep
(1) |
Oct
(4) |
Nov
(5) |
Dec
|
2013 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Arlo L. <ar...@ar...> - 2009-03-10 16:19:57
|
> Dollars to doughnuts, it's not what you think it is... Okay, I had to Google that one! http://www.randomhouse.com/wotd/index.pperl?date=19970210 Cheers, -Arlo _______________________________ Arlo Leach 773.769.6106 http://arlomedia.com |
From: Richard L. <ce...@l-...> - 2009-03-10 15:50:02
|
var_dump($_args) right before you make the call. Dollars to doughnuts, it's not what you think it is... On Tue, March 10, 2009 12:49 am, Walter Torres wrote: > I'm trying to make call to a random class and pass an array for its > arguements > > Similar to... > > http://www.php.net/manual/en/function.call-user-func-array.php#74427 > > $classObj = new ReflectionClass($_class); > return $classObj->newInstanceArgs($_args); > > $_class is a valid class name > $_arg is an array of parameters to send it > > The call sort of works; I get to the right class/method, but the > arguments are converted to a string, and I only get the first element > on my array. > > Not the behavior I'm reading/expecting. > > what am I doing wrong? > > I even tried this... > > return call_user_func_array( > array(new ReflectionClass($_class), 'newInstance'), > $_args > ); > > same result: no array, just the first element of the array gets into > the > > Thx > > Walter > -- > ...that's the thing about people who think they hate computers. > What they really hate is lousy programmers. > - Larry Niven and Jerry Pournelle in "Oath of Fealty" > > > ------------------------------------------------------------------------------ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch |
From: Richard L. <ce...@l-...> - 2009-03-10 14:34:38
|
Please follow up with Brian: -------------------------- Original Message -------------------------- Subject: New LAMP position through TEKsystems From: "Crowther, Brian" <bcr...@te...> Date: Mon, March 9, 2009 4:17 pm To: "Crowther, Brian" <bcr...@te...> ---------------------------------------------------------------------- Hi, TEKsystems recently acquired a 6 month contract for a mid-level PHP developer. Below are the skills required, I realize that we're a little light on information, but if you know anyone looking please let them know that we'd like to talk to them. You can send me their names/numbers, or have them contact me. The purpose of this project is to automate a ticket process for field technicians. 3-5 yrs of website development Very strong working knowledge of PHP Experience using PHP with MySql Javascript, XML, SOAP, C# are all pluses. (C# portion will be minimal, and within an existing framework) Thanks, Brian Brian Crowther - Technical Recruiter 1400 Opus Place Suite 800, Downers Grove, IL 60532 P: 630-795-3347 Toll Free:877-686-8455 F: 630-795-3390 <http://www.teksystems.com/> ____________________________________________________________________________________________________ This electronic mail (including any attachments) may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic email or its contents (including any attachments) by persons other than the intended recipient(s) is strictly prohibited. If you have received this message in error, please notify us immediately by reply email so that we may correct our internal records. Please then delete the original message (including any attachments) in its entirety. Thank you. -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch |
From: Walter T. <php...@to...> - 2009-03-10 06:15:51
|
I'm trying to make call to a random class and pass an array for its arguements Similar to... http://www.php.net/manual/en/function.call-user-func-array.php#74427 $classObj = new ReflectionClass($_class); return $classObj->newInstanceArgs($_args); $_class is a valid class name $_arg is an array of parameters to send it The call sort of works; I get to the right class/method, but the arguments are converted to a string, and I only get the first element on my array. Not the behavior I'm reading/expecting. what am I doing wrong? I even tried this... return call_user_func_array( array(new ReflectionClass($_class), 'newInstance'), $_args ); same result: no array, just the first element of the array gets into the Thx Walter -- ...that's the thing about people who think they hate computers. What they really hate is lousy programmers. - Larry Niven and Jerry Pournelle in "Oath of Fealty" |
From: Richard L. <ce...@l-...> - 2009-03-09 16:18:18
|
I neglected to mention that the contract would potentially be extended, if things work out! -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch |
From: Richard L. <ce...@l-...> - 2009-03-09 15:16:12
|
I have a nice job, but have to move on to a nicer job, and don't want to leave them hanging. It's a fairly simple web form app, with business logic about what is available to whom, in what stage of the sales planning cycle. The business requirements are fairly well documented and clear. Environment is your basic standard corporate culture. It's PHP4, no framework, no crutches. Just raw HTML/PHP. Oracle database behind it, but the schema and accessor calls are not on your plate. Time-frame is starting ASAP, and completing in 2 months. Call me at 773-531-1591 or email me back. You'll be going through a recruiter firm, working for an out-sourced company, with deliverables to the client, a major pharmaceutical company. Everybody is very nice, and extremely understanding, at least to me. -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch |
From: Richard L. <ce...@l-...> - 2009-03-06 04:10:32
|
First, finding a php.ini does not guarantee that it is the one PHP is actually loading... So begin at the beginning, and view the output of a new file with just this in it: <?php phpinfo();?> Hopefully, this will work and show you PHP information, including the path where PHP found (or expected to find) php.ini If it shows just a directory, that is where it EXPECTED to find php.ini, but didn't. If you can't view the <?php phpinfo()?> file, then you need to start guessing where log files might be, based on your OS / Web Server. On Thu, March 5, 2009 1:23 pm, chi...@li... wrote: > As list administrator, your authorization is requested for the > following mailing list posting: > > List: chi...@li... > From: cat...@ya... > Subject: Re: [chiPHPug-discuss] Why php page could not run-Urgent > help > Reason: Message body is too big: 53465 bytes with a limit of 40 > KB > > At your convenience, visit: > > https://lists.sourceforge.net/lists/admindb/chiphpug-discuss > > to approve or deny the request. > -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch |
From: cathy w. <cat...@ya...> - 2009-03-05 19:23:49
|
Hello, Neil: I could not sent message to the list. It said that the file is big and need to wait approval, so I send it to you directly. I am using window 2000 server. I find php ini at Winnt directory. I turned on: display_startup_errors, track_errors etc. Still see the blank page. Attached please find the php file. ; Print out errors (as a part of the output). For production web sites, ; you're strongly encouraged to turn this feature off, and use error logging ; instead (see below). Keeping display_errors enabled on a production web site ; may reveal security information to end users, such as file paths on your Web ; server, your database schema or other information. display_errors = On ; Even when display_errors is on, errors that occur during PHP's startup ; sequence are not displayed. It's strongly recommended to keep ; display_startup_errors off, except for when debugging. display_startup_errors = Off ; Log errors into a log file (server-specific log, stderr, or error_log (below)) ; As stated above, you're strongly advised to use error logging in place of ; error displaying on production web sites. log_errors = Off ; Store the last error/warning message in $php_errormsg (boolean). track_errors = Off =================================================== Your help is highly appreciated. Cathy --- On Thu, 3/5/09, Neil Young <ny...@as...> wrote: From: Neil Young <ny...@as...> Subject: Re: [chiPHPug-discuss] Why php page could not run-Urgent help To: "Chicago PHP User Group" <chi...@li...> Date: Thursday, March 5, 2009, 11:01 AM Cathy, It depends on how PHP is configured. Look at your php.ini to see where it is sending the errors. Neil cathy wang wrote: > Hello: > > I have php website. It run well before, but it got blank page when running this page today. > > I could not detect any error.It only showed blank page. How to see to the error caused? > > Your help is highly appreciated. > > Cathy > > --- On Tue, 2/17/09, Dima Elissa <di...@vi...> wrote: > > From: Dima Elissa <di...@vi...> > Subject: Re: [chiPHPug-discuss] "The Big PHP IDE Test: Why Use One And Which To Choose" > To: "'Chicago PHP User Group'" <chi...@li...> > Date: Tuesday, February 17, 2009, 5:30 PM > > Try http://www.activecollab.com. > > It has mobile web, multi user capable, and allows you to build API's to > integrate you apps as you choose. > > > -----Original Message----- > From: Wilfried Schobeiri [mailto:ws...@de...] > Sent: Tuesday, February 17, 2009 2:55 PM > To: Chicago PHP User Group > Subject: Re: [chiPHPug-discuss] "The Big PHP IDE Test: Why Use One And > Which > To Choose" > > What, you mean just because I own two macbook pros and an iphone means > I'm a pretentious mac fanboy? > > Seriously though, if you use a Mac, and do mainly web development, and > prefer to have an integrated environment where SFTP, SVN, and quick > editing converge, Coda is a great choice. Transmit and Versions make > good companions. If only there was a solid project management tool > with mobile web and multi-user capabilities as well (don't say > Basecamp). > > On Feb 17, 2009, at 14:38 , derby wrote: > > >> probably because its mac only, no offense. >> >> On Sun, Feb 15, 2009 at 2:16 PM, Wilfried Schobeiri <ws...@de... >> > > >>> wrote: >>> >>> Seconded >>> >>> On Feb 15, 2009, at 12:01 , Jough Dempsey wrote: >>> >>> >>>> Good article, but they left out my current favourite, Coda. >>>> >>>> http://panic.com/coda/ >>>> >>>> >>>> On Sun, Feb 15, 2009 at 11:30 AM, Neil Rest >>>> > <Nei...@rc...> > >>>> wrote: >>>> >>>> >>>>> > http://www.smashingmagazine.com/2009/02/11/the-big-php-ides-test-why-use-one > and-which-to-choose/ > >>>>> I'm not a designer, but I love smashing. >>>>> >>>>> > ---------------------------------------------------------------------------- > -- > >>>> Open Source Business Conference (OSBC), March 24-25, 2009, San >>>> Francisco, CA >>>> -OSBC tackles the biggest issue in open source: Open Sourcing the >>>> Enterprise >>>> -Strategies to boost innovation and cut costs with open source >>>> participation >>>> -Receive a $600 discount off the registration fee with the source >>>> code: SFAD >>>> http://p.sf.net/sfu/XcvMzF8H >>>> _______________________________________________ >>>> chiPHPug-discuss mailing list >>>> chi...@li... >>>> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >>>> >>> >>> >>> > ---------------------------------------------------------------------------- > -- > >>> Open Source Business Conference (OSBC), March 24-25, 2009, San >>> Francisco, >>> CA >>> -OSBC tackles the biggest issue in open source: Open Sourcing the >>> Enterprise >>> -Strategies to boost innovation and cut costs with open source >>> participation >>> -Receive a $600 discount off the registration fee with the source >>> code: >>> SFAD >>> http://p.sf.net/sfu/XcvMzF8H >>> _______________________________________________ >>> chiPHPug-discuss mailing list >>> chi...@li... >>> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >>> >>> > ---------------------------------------------------------------------------- > -- > >> Open Source Business Conference (OSBC), March 24-25, 2009, San >> Francisco, CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a $600 discount off the registration fee with the source >> code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> chiPHPug-discuss mailing list >> chi...@li... >> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >> > > > ---------------------------------------------------------------------------- > -- > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > Internal Virus Database is out of date. > Checked by AVG - http://www.avg.com > Version: 8.0.233 / Virus Database: 270.10.16/1930 - Release Date: 2/2/2009 > 7:51 AM > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: cathy w. <cat...@ya...> - 2009-03-05 18:37:36
|
Hello, Neil and Mike: I am using window 2000 server. I find php ini at Winnt directory. I turned on: display_startup_errors, track_errors etc. Still see the blank page. Attached please find the php file. ; Print out errors (as a part of the output). For production web sites, ; you're strongly encouraged to turn this feature off, and use error logging ; instead (see below). Keeping display_errors enabled on a production web site ; may reveal security information to end users, such as file paths on your Web ; server, your database schema or other information. display_errors = On ; Even when display_errors is on, errors that occur during PHP's startup ; sequence are not displayed. It's strongly recommended to keep ; display_startup_errors off, except for when debugging. display_startup_errors = Off ; Log errors into a log file (server-specific log, stderr, or error_log (below)) ; As stated above, you're strongly advised to use error logging in place of ; error displaying on production web sites. log_errors = Off ; Store the last error/warning message in $php_errormsg (boolean). track_errors = Off =================================================== Your help is highly appreciated. Cathy --- On Thu, 3/5/09, Michael LaVista <mla...@ca...> wrote: From: Michael LaVista <mla...@ca...> Subject: Re: [chiPHPug-discuss] Why php page could not run-Urgent help To: "Chicago PHP User Group" <chi...@li...> Date: Thursday, March 5, 2009, 12:10 PM Cathy, It seems like "display errors" is probably turned off which is a probably smart for production. Check your server config (Apache/IIS) for where it puts the errors. On Linux-Apache, it's usually in /etc/httpd/logs. The last few lines will tell you what went wrong. -----Original Message----- From: Neil Young [mailto:ny...@as...] Sent: Thursday, March 05, 2009 11:01 AM To: Chicago PHP User Group Subject: Re: [chiPHPug-discuss] Why php page could not run-Urgent help Cathy, It depends on how PHP is configured. Look at your php.ini to see where it is sending the errors. Neil cathy wang wrote: > Hello: > > I have php website. It run well before, but it got blank page when running this page today. > > I could not detect any error.It only showed blank page. How to see to the error caused? > > Your help is highly appreciated. > > Cathy > > --- On Tue, 2/17/09, Dima Elissa <di...@vi...> wrote: > > From: Dima Elissa <di...@vi...> > Subject: Re: [chiPHPug-discuss] "The Big PHP IDE Test: Why Use One And Which To Choose" > To: "'Chicago PHP User Group'" > <chi...@li...> > Date: Tuesday, February 17, 2009, 5:30 PM > > Try http://www.activecollab.com. > > It has mobile web, multi user capable, and allows you to build API's > to integrate you apps as you choose. > > > -----Original Message----- > From: Wilfried Schobeiri [mailto:ws...@de...] > Sent: Tuesday, February 17, 2009 2:55 PM > To: Chicago PHP User Group > Subject: Re: [chiPHPug-discuss] "The Big PHP IDE Test: Why Use One And > Which To Choose" > > What, you mean just because I own two macbook pros and an iphone means > I'm a pretentious mac fanboy? > > Seriously though, if you use a Mac, and do mainly web development, and > prefer to have an integrated environment where SFTP, SVN, and quick > editing converge, Coda is a great choice. Transmit and Versions make > good companions. If only there was a solid project management tool > with mobile web and multi-user capabilities as well (don't say > Basecamp). > > On Feb 17, 2009, at 14:38 , derby wrote: > > >> probably because its mac only, no offense. >> >> On Sun, Feb 15, 2009 at 2:16 PM, Wilfried Schobeiri >> <ws...@de... >> > > >>> wrote: >>> >>> Seconded >>> >>> On Feb 15, 2009, at 12:01 , Jough Dempsey wrote: >>> >>> >>>> Good article, but they left out my current favourite, Coda. >>>> >>>> http://panic.com/coda/ >>>> >>>> >>>> On Sun, Feb 15, 2009 at 11:30 AM, Neil Rest >>>> > <Nei...@rc...> > >>>> wrote: >>>> >>>> >>>>> > http://www.smashingmagazine.com/2009/02/11/the-big-php-ides-test-why-u > se-one > and-which-to-choose/ > >>>>> I'm not a designer, but I love smashing. >>>>> >>>>> > ---------------------------------------------------------------------- > ------ > -- > >>>> Open Source Business Conference (OSBC), March 24-25, 2009, San >>>> Francisco, CA -OSBC tackles the biggest issue in open source: Open >>>> Sourcing the Enterprise -Strategies to boost innovation and cut >>>> costs with open source participation -Receive a $600 discount off >>>> the registration fee with the source >>>> code: SFAD >>>> http://p.sf.net/sfu/XcvMzF8H >>>> _______________________________________________ >>>> chiPHPug-discuss mailing list >>>> chi...@li... >>>> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >>>> >>> >>> >>> > ---------------------------------------------------------------------- > ------ > -- > >>> Open Source Business Conference (OSBC), March 24-25, 2009, San >>> Francisco, CA -OSBC tackles the biggest issue in open source: Open >>> Sourcing the Enterprise -Strategies to boost innovation and cut >>> costs with open source participation -Receive a $600 discount off >>> the registration fee with the source >>> code: >>> SFAD >>> http://p.sf.net/sfu/XcvMzF8H >>> _______________________________________________ >>> chiPHPug-discuss mailing list >>> chi...@li... >>> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >>> >>> > ---------------------------------------------------------------------- > ------ > -- > >> Open Source Business Conference (OSBC), March 24-25, 2009, San >> Francisco, CA -OSBC tackles the biggest issue in open source: Open >> Sourcing the Enterprise -Strategies to boost innovation and cut costs >> with open source participation -Receive a $600 discount off the >> registration fee with the source >> code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> chiPHPug-discuss mailing list >> chi...@li... >> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >> > > > ---------------------------------------------------------------------- > ------ > -- > Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA -OSBC tackles the biggest issue in open source: Open > Sourcing the Enterprise -Strategies to boost innovation and cut costs > with open source participation -Receive a $600 discount off the > registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > Internal Virus Database is out of date. > Checked by AVG - http://www.avg.com > Version: 8.0.233 / Virus Database: 270.10.16/1930 - Release Date: > 2/2/2009 > 7:51 AM > > > ---------------------------------------------------------------------- > -------- Open Source Business Conference (OSBC), March 24-25, 2009, > San Francisco, CA -OSBC tackles the biggest issue in open source: Open > Sourcing the Enterprise -Strategies to boost innovation and cut costs > with open source participation -Receive a $600 discount off the > registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > > > ---------------------------------------------------------------------- > -------- Open Source Business Conference (OSBC), March 24-25, 2009, > San Francisco, CA -OSBC tackles the biggest issue in open source: Open > Sourcing the Enterprise -Strategies to boost innovation and cut costs > with open source participation -Receive a $600 discount off the > registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > ------------------------------------------------------------------------ ------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: Michael L. <mla...@ca...> - 2009-03-05 18:10:19
|
Cathy, It seems like "display errors" is probably turned off which is a probably smart for production. Check your server config (Apache/IIS) for where it puts the errors. On Linux-Apache, it's usually in /etc/httpd/logs. The last few lines will tell you what went wrong. -----Original Message----- From: Neil Young [mailto:ny...@as...] Sent: Thursday, March 05, 2009 11:01 AM To: Chicago PHP User Group Subject: Re: [chiPHPug-discuss] Why php page could not run-Urgent help Cathy, It depends on how PHP is configured. Look at your php.ini to see where it is sending the errors. Neil cathy wang wrote: > Hello: > > I have php website. It run well before, but it got blank page when running this page today. > > I could not detect any error.It only showed blank page. How to see to the error caused? > > Your help is highly appreciated. > > Cathy > > --- On Tue, 2/17/09, Dima Elissa <di...@vi...> wrote: > > From: Dima Elissa <di...@vi...> > Subject: Re: [chiPHPug-discuss] "The Big PHP IDE Test: Why Use One And Which To Choose" > To: "'Chicago PHP User Group'" > <chi...@li...> > Date: Tuesday, February 17, 2009, 5:30 PM > > Try http://www.activecollab.com. > > It has mobile web, multi user capable, and allows you to build API's > to integrate you apps as you choose. > > > -----Original Message----- > From: Wilfried Schobeiri [mailto:ws...@de...] > Sent: Tuesday, February 17, 2009 2:55 PM > To: Chicago PHP User Group > Subject: Re: [chiPHPug-discuss] "The Big PHP IDE Test: Why Use One And > Which To Choose" > > What, you mean just because I own two macbook pros and an iphone means > I'm a pretentious mac fanboy? > > Seriously though, if you use a Mac, and do mainly web development, and > prefer to have an integrated environment where SFTP, SVN, and quick > editing converge, Coda is a great choice. Transmit and Versions make > good companions. If only there was a solid project management tool > with mobile web and multi-user capabilities as well (don't say > Basecamp). > > On Feb 17, 2009, at 14:38 , derby wrote: > > >> probably because its mac only, no offense. >> >> On Sun, Feb 15, 2009 at 2:16 PM, Wilfried Schobeiri >> <ws...@de... >> > > >>> wrote: >>> >>> Seconded >>> >>> On Feb 15, 2009, at 12:01 , Jough Dempsey wrote: >>> >>> >>>> Good article, but they left out my current favourite, Coda. >>>> >>>> http://panic.com/coda/ >>>> >>>> >>>> On Sun, Feb 15, 2009 at 11:30 AM, Neil Rest >>>> > <Nei...@rc...> > >>>> wrote: >>>> >>>> >>>>> > http://www.smashingmagazine.com/2009/02/11/the-big-php-ides-test-why-u > se-one > and-which-to-choose/ > >>>>> I'm not a designer, but I love smashing. >>>>> >>>>> > ---------------------------------------------------------------------- > ------ > -- > >>>> Open Source Business Conference (OSBC), March 24-25, 2009, San >>>> Francisco, CA -OSBC tackles the biggest issue in open source: Open >>>> Sourcing the Enterprise -Strategies to boost innovation and cut >>>> costs with open source participation -Receive a $600 discount off >>>> the registration fee with the source >>>> code: SFAD >>>> http://p.sf.net/sfu/XcvMzF8H >>>> _______________________________________________ >>>> chiPHPug-discuss mailing list >>>> chi...@li... >>>> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >>>> >>> >>> >>> > ---------------------------------------------------------------------- > ------ > -- > >>> Open Source Business Conference (OSBC), March 24-25, 2009, San >>> Francisco, CA -OSBC tackles the biggest issue in open source: Open >>> Sourcing the Enterprise -Strategies to boost innovation and cut >>> costs with open source participation -Receive a $600 discount off >>> the registration fee with the source >>> code: >>> SFAD >>> http://p.sf.net/sfu/XcvMzF8H >>> _______________________________________________ >>> chiPHPug-discuss mailing list >>> chi...@li... >>> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >>> >>> > ---------------------------------------------------------------------- > ------ > -- > >> Open Source Business Conference (OSBC), March 24-25, 2009, San >> Francisco, CA -OSBC tackles the biggest issue in open source: Open >> Sourcing the Enterprise -Strategies to boost innovation and cut costs >> with open source participation -Receive a $600 discount off the >> registration fee with the source >> code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> chiPHPug-discuss mailing list >> chi...@li... >> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >> > > > ---------------------------------------------------------------------- > ------ > -- > Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA -OSBC tackles the biggest issue in open source: Open > Sourcing the Enterprise -Strategies to boost innovation and cut costs > with open source participation -Receive a $600 discount off the > registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > Internal Virus Database is out of date. > Checked by AVG - http://www.avg.com > Version: 8.0.233 / Virus Database: 270.10.16/1930 - Release Date: > 2/2/2009 > 7:51 AM > > > ---------------------------------------------------------------------- > -------- Open Source Business Conference (OSBC), March 24-25, 2009, > San Francisco, CA -OSBC tackles the biggest issue in open source: Open > Sourcing the Enterprise -Strategies to boost innovation and cut costs > with open source participation -Receive a $600 discount off the > registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > > > ---------------------------------------------------------------------- > -------- Open Source Business Conference (OSBC), March 24-25, 2009, > San Francisco, CA -OSBC tackles the biggest issue in open source: Open > Sourcing the Enterprise -Strategies to boost innovation and cut costs > with open source participation -Receive a $600 discount off the > registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > ------------------------------------------------------------------------ ------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: Neil Y. <ny...@as...> - 2009-03-05 17:22:24
|
Cathy, It depends on how PHP is configured. Look at your php.ini to see where it is sending the errors. Neil cathy wang wrote: > Hello: > > I have php website. It run well before, but it got blank page when running this page today. > > I could not detect any error.It only showed blank page. How to see to the error caused? > > Your help is highly appreciated. > > Cathy > > --- On Tue, 2/17/09, Dima Elissa <di...@vi...> wrote: > > From: Dima Elissa <di...@vi...> > Subject: Re: [chiPHPug-discuss] "The Big PHP IDE Test: Why Use One And Which To Choose" > To: "'Chicago PHP User Group'" <chi...@li...> > Date: Tuesday, February 17, 2009, 5:30 PM > > Try http://www.activecollab.com. > > It has mobile web, multi user capable, and allows you to build API's to > integrate you apps as you choose. > > > -----Original Message----- > From: Wilfried Schobeiri [mailto:ws...@de...] > Sent: Tuesday, February 17, 2009 2:55 PM > To: Chicago PHP User Group > Subject: Re: [chiPHPug-discuss] "The Big PHP IDE Test: Why Use One And > Which > To Choose" > > What, you mean just because I own two macbook pros and an iphone means > I'm a pretentious mac fanboy? > > Seriously though, if you use a Mac, and do mainly web development, and > prefer to have an integrated environment where SFTP, SVN, and quick > editing converge, Coda is a great choice. Transmit and Versions make > good companions. If only there was a solid project management tool > with mobile web and multi-user capabilities as well (don't say > Basecamp). > > On Feb 17, 2009, at 14:38 , derby wrote: > > >> probably because its mac only, no offense. >> >> On Sun, Feb 15, 2009 at 2:16 PM, Wilfried Schobeiri <ws...@de... >> > > >>> wrote: >>> >>> Seconded >>> >>> On Feb 15, 2009, at 12:01 , Jough Dempsey wrote: >>> >>> >>>> Good article, but they left out my current favourite, Coda. >>>> >>>> http://panic.com/coda/ >>>> >>>> >>>> On Sun, Feb 15, 2009 at 11:30 AM, Neil Rest >>>> > <Nei...@rc...> > >>>> wrote: >>>> >>>> >>>>> > http://www.smashingmagazine.com/2009/02/11/the-big-php-ides-test-why-use-one > and-which-to-choose/ > >>>>> I'm not a designer, but I love smashing. >>>>> >>>>> > ---------------------------------------------------------------------------- > -- > >>>> Open Source Business Conference (OSBC), March 24-25, 2009, San >>>> Francisco, CA >>>> -OSBC tackles the biggest issue in open source: Open Sourcing the >>>> Enterprise >>>> -Strategies to boost innovation and cut costs with open source >>>> participation >>>> -Receive a $600 discount off the registration fee with the source >>>> code: SFAD >>>> http://p.sf.net/sfu/XcvMzF8H >>>> _______________________________________________ >>>> chiPHPug-discuss mailing list >>>> chi...@li... >>>> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >>>> >>> >>> >>> > ---------------------------------------------------------------------------- > -- > >>> Open Source Business Conference (OSBC), March 24-25, 2009, San >>> Francisco, >>> CA >>> -OSBC tackles the biggest issue in open source: Open Sourcing the >>> Enterprise >>> -Strategies to boost innovation and cut costs with open source >>> participation >>> -Receive a $600 discount off the registration fee with the source >>> code: >>> SFAD >>> http://p.sf.net/sfu/XcvMzF8H >>> _______________________________________________ >>> chiPHPug-discuss mailing list >>> chi...@li... >>> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >>> >>> > ---------------------------------------------------------------------------- > -- > >> Open Source Business Conference (OSBC), March 24-25, 2009, San >> Francisco, CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a $600 discount off the registration fee with the source >> code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> chiPHPug-discuss mailing list >> chi...@li... >> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >> > > > ---------------------------------------------------------------------------- > -- > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > Internal Virus Database is out of date. > Checked by AVG - http://www.avg.com > Version: 8.0.233 / Virus Database: 270.10.16/1930 - Release Date: 2/2/2009 > 7:51 AM > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > |
From: cathy w. <cat...@ya...> - 2009-03-05 16:49:38
|
Hello: I have php website. It run well before, but it got blank page when running this page today. I could not detect any error.It only showed blank page. How to see to the error caused? Your help is highly appreciated. Cathy --- On Tue, 2/17/09, Dima Elissa <di...@vi...> wrote: From: Dima Elissa <di...@vi...> Subject: Re: [chiPHPug-discuss] "The Big PHP IDE Test: Why Use One And Which To Choose" To: "'Chicago PHP User Group'" <chi...@li...> Date: Tuesday, February 17, 2009, 5:30 PM Try http://www.activecollab.com. It has mobile web, multi user capable, and allows you to build API's to integrate you apps as you choose. -----Original Message----- From: Wilfried Schobeiri [mailto:ws...@de...] Sent: Tuesday, February 17, 2009 2:55 PM To: Chicago PHP User Group Subject: Re: [chiPHPug-discuss] "The Big PHP IDE Test: Why Use One And Which To Choose" What, you mean just because I own two macbook pros and an iphone means I'm a pretentious mac fanboy? Seriously though, if you use a Mac, and do mainly web development, and prefer to have an integrated environment where SFTP, SVN, and quick editing converge, Coda is a great choice. Transmit and Versions make good companions. If only there was a solid project management tool with mobile web and multi-user capabilities as well (don't say Basecamp). On Feb 17, 2009, at 14:38 , derby wrote: > probably because its mac only, no offense. > > On Sun, Feb 15, 2009 at 2:16 PM, Wilfried Schobeiri <ws...@de... > >wrote: > >> Seconded >> >> On Feb 15, 2009, at 12:01 , Jough Dempsey wrote: >> >>> Good article, but they left out my current favourite, Coda. >>> >>> http://panic.com/coda/ >>> >>> >>> On Sun, Feb 15, 2009 at 11:30 AM, Neil Rest <Nei...@rc...> >>> wrote: >>> >>>> >>>> >> http://www.smashingmagazine.com/2009/02/11/the-big-php-ides-test-why-use-one and-which-to-choose/ >>>> >>>> I'm not a designer, but I love smashing. >>>> >>> >> ---------------------------------------------------------------------------- -- >>> Open Source Business Conference (OSBC), March 24-25, 2009, San >>> Francisco, CA >>> -OSBC tackles the biggest issue in open source: Open Sourcing the >>> Enterprise >>> -Strategies to boost innovation and cut costs with open source >>> participation >>> -Receive a $600 discount off the registration fee with the source >>> code: SFAD >>> http://p.sf.net/sfu/XcvMzF8H >>> _______________________________________________ >>> chiPHPug-discuss mailing list >>> chi...@li... >>> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >> >> >> >> ---------------------------------------------------------------------------- -- >> Open Source Business Conference (OSBC), March 24-25, 2009, San >> Francisco, >> CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a $600 discount off the registration fee with the source >> code: >> SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> chiPHPug-discuss mailing list >> chi...@li... >> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >> > ---------------------------------------------------------------------------- -- > Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source > code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss ---------------------------------------------------------------------------- -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss Internal Virus Database is out of date. Checked by AVG - http://www.avg.com Version: 8.0.233 / Virus Database: 270.10.16/1930 - Release Date: 2/2/2009 7:51 AM ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: matt d. <mm_...@ya...> - 2009-02-23 19:44:09
|
Wouldn't it be easier to address the bad (actually empty) data going in? Or clean in up at some point? ________________________________ From: Arlo Leach <ar...@ar...> To: Chicago PHP User Group <chi...@li...> Sent: Monday, February 23, 2009 11:18:25 AM Subject: Re: [chiPHPug-discuss] troublesome PHP behavior Hello again, Rich wrote: > One reason why explode does what is does is so that it is the exact > reverse of implode (and vice versa) > > What would you expect these to output: > > implode('|', array('foo', 'bar', 'baz')); > implode('|', array('foo')); > implode('|', array('')); Very interesting. But here's one more test case; what would you expect this to return? implode('|', array()); An empty string, right? Then, by the same logic, it would be equally correct for explode('|', '') to return array() as array(''). Cheers, -Arlo _______________________________ Arlo Leach 773.769.6106 http://arlomedia.com ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: Arlo L. <ar...@ar...> - 2009-02-23 17:45:21
|
Hello again, Rich wrote: > One reason why explode does what is does is so that it is the exact > reverse of implode (and vice versa) > > What would you expect these to output: > > implode('|', array('foo', 'bar', 'baz')); > implode('|', array('foo')); > implode('|', array('')); Very interesting. But here's one more test case; what would you expect this to return? implode('|', array()); An empty string, right? Then, by the same logic, it would be equally correct for explode('|', '') to return array() as array(''). Cheers, -Arlo _______________________________ Arlo Leach 773.769.6106 http://arlomedia.com |
From: Arlo L. <ar...@ar...> - 2009-02-23 17:45:18
|
Hi folks, Adam wrote: > Take a second and think "how would I implement explode()?" Would you > test that string is not empty before proceeding thereby forcing an > additional operation on every call to handle a fringe case? Well, yes, that's the situation I'm in now, testing the string before exploding to handle fringe cases. Before I adopt this as a personal coding practice to use every time, I'm just trying to find out if there's a more elegant way to handle it. Kenneth wrote: > I have found it more robust overall to code loops that gracefully handle > empty values, empty arrays, or arrays of empty values, etc. That's a good point. My expectation originally was that I wouldn't even enter the loop, but now that I know this detail of the explode() behavior, I can pay more attention to that. And again: > What I'd like to know more about is what you are doing with the array > after you get it. Well, here's an example. After members register on a social networking platform, they have to select one or more roles from a list. That's stored in the db with the pipe delimiters (and regarding Rich's suggestion, I didn't build the platform, so I don't get to decide how the data is stored). When members come back and log in later, the login script gets that value, explodes it, and puts it into a session variable for use on other pages. The "fringe case" is that sometimes members will abandon on the selection page, but still come back later and log in. In this case the "roles" field in the db is empty, but when that's exploded, it creates an array with one element. Now, a few pages later, I have a conditional that says, "if members have just one role, show content specific to that role; if they have multiple roles, just show some general content." If I count the array, I think that the member has one role, so I try to show the content for $roles[0] -- but $roles[0] is empty, so I get an error that there's no content for that role. Obviously, once I identified this particular problem, I had a few different options for addressing it. I could check the roles field on subsequent logins, I could check the $roles[0] value before displaying the data, etc. The most intuitive for me would be writing that conditional to distinguish between members with no roles, members with one role, and members with multiple roles -- but I don't see any built-in function that distinguishes between array("") and array("1"). I would have to write a custom function or do something funny like evaluate the result of (strlen(implode("|", $roles))). I'm just looking for the simplest approach to adopt that will work in the widest number of cases, to avoid getting bit by a fringe case I didn't anticipate. All the cases I've run into so far would have been avoided if array("") had been array(), so I might just stick with my original solution: $array = ($string) ? explode("|", $string) : array() ; Or possibly a custom function that moves that extra clutter out of my main code. Cheers, -Arlo _______________________________ Arlo Leach 773.769.6106 http://arlomedia.com |
From: Kenneth D. <ke...@se...> - 2009-02-23 12:21:27
|
Arlo Leach wrote: >> "If delimiter contains a value that is not contained in string , then >> explode() will return an array containing string" >> >> So, since your string doesn't contain a "|" is returns the "array" of an >> empty string. Make sense? >> > > That does make sense -- so PHP is functioning as documented. But does this > seem like the right behavior to others? I think it would be the expected > behavior if $string is not empty, but if $string is empty, I would expect > $array to be empty, too, regardless of the delimiter. > What actually matters is what you do with it afterward. If we assume you are iterating the array, will you get undesirable affects from looping over a single empty value? If so, why? Let me ask this: if you had a string like this: "a|b||c", then explode would give 4 values and one of them would be empty. If you need a special handler for that then you've probably coded it already and your code should handle PHP's behavior just fine. If you do not need a special handler then your code will probably still run just fine. Is there some reason your downstream code will break on an array of one empty string? > Or, if this is a hopeless cause, does anyone have a better workaround than > my little conditional check? > > Thanks! > > -Arlo > > _______________________________ > > Arlo Leach > 773.769.6106 > http://arlomedia.com > > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > -- Kenneth Downs Secure Data Software ke...@se... www.andromeda-project.org www.secdat.com Office: 631-689-7200 Cell: 631-379-0010 Fax: 631-689-0527 |
From: Kenneth D. <ke...@se...> - 2009-02-23 12:08:31
|
Arlo Leach wrote: > Hello again, > > >> If you're using explode(), you're probably expecting an array. Seems >> normal to me.. >> > > Sure, I'm expecting an array, but I'm expecting it to be empty like the > string it originated from. > > Let's say I get a field value from a database that is usually formatted like > "1|2" but could also be "1" or "". If I leave it as a string, I can easily > tell if it has data in it with a simple conditional. But if I explode the > string to work with its individual elements, I can't easily tell anymore; > count() returns 1 and empty() returns false even if the original value was > "". > > I guess I could test for (implode(",", $array)), which returns false if the > array consists only of one empty element. Or I could write a new function. > Is there a better way? > > Since this comes up so often for me, it seemed like something that should be > built in, but I'll settle for a more elegant workaround than the one I'm > using now. > As I mentioned in my other email, if it is coming up often, I would ask how you are handling the array in downstream code. I have found it more robust overall to code loops that gracefully handle empty values, empty arrays, or arrays of empty values, etc. What I'd like to know more about is what you are doing with the array after you get it. > Cheers, > -Arlo > > _______________________________ > > Arlo Leach > 773.769.6106 > http://arlomedia.com > > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > -- Kenneth Downs Secure Data Software ke...@se... www.andromeda-project.org www.secdat.com Office: 631-689-7200 Cell: 631-379-0010 Fax: 631-689-0527 |
From: Richard L. <ce...@l-...> - 2009-02-21 04:54:32
|
I would use strlen on it, rather than just ($string) personally... If $string happens to contain just "0" then ($string) would probably not behave as you desire. For the case of pulling 1|2|3 from the DB, I'd suggest you consider a DB data structure that doesn't make you use PHP explode in the first place :-) SQL arrays or bit-masked INT or ??? Another option is to just use the array you have, but skip any empty values as you loop through them. One reason why explode does what is does is so that it is the exact reverse of implode (and vice versa) What would you expect these to output: implode('|', array('foo', 'bar', 'baz')); implode('|', array('foo')); implode('|', array('')); As you can see, if that last one is to do what you expect, and implode/explode are supposed to be exactly opposite, then explode('') must return an array with a single empty string element. On Fri, February 20, 2009 3:00 pm, Arlo Leach wrote: > Hi folks, > > Consider the following PHP code, which explodes an empty string: > > $string = ""; > $array = explode("|", $string); > print_r($array); > print "Length: ".count($array); > > I would expect this to output an empty array: > > Array ( ) Length: 0 > > But it actually outputs: > > Array ( [0] => ) Length: 1 > > Does anyone else find this odd? It has bitten me a few times lately, > when I > test the existence of data with a count(), or try to process data with > a FOR > loop. I end up writing this a lot to get the expected results: > > $array = ($string) ? explode(",", $string) : array() ; > > I was considering logging a bug report but wondered what your thoughts > were. > > Cheers, > -Arlo > > _______________________________ > > Arlo Leach > 773.769.6106 > http://arlomedia.com > > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source > code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch |
From: Adam F. <am...@ad...> - 2009-02-21 04:37:32
|
It has never occurred to me to explode an empty string. Take a second and think "how would I implement explode()?" Would you test that string is not empty before proceeding thereby forcing an additional operation on every call to handle a fringe case? I would just test that my string is !empty() before proceeding if that's such a regular occurrence. --Adam -- Adam Finlayson am...@ad... |
From: Arlo L. <ar...@ar...> - 2009-02-21 03:21:43
|
Hello again, > If you're using explode(), you're probably expecting an array. Seems > normal to me.. Sure, I'm expecting an array, but I'm expecting it to be empty like the string it originated from. Let's say I get a field value from a database that is usually formatted like "1|2" but could also be "1" or "". If I leave it as a string, I can easily tell if it has data in it with a simple conditional. But if I explode the string to work with its individual elements, I can't easily tell anymore; count() returns 1 and empty() returns false even if the original value was "". I guess I could test for (implode(",", $array)), which returns false if the array consists only of one empty element. Or I could write a new function. Is there a better way? Since this comes up so often for me, it seemed like something that should be built in, but I'll settle for a more elegant workaround than the one I'm using now. Cheers, -Arlo _______________________________ Arlo Leach 773.769.6106 http://arlomedia.com |
From: Wilfried S. <ws...@de...> - 2009-02-21 00:24:37
|
http://us3.php.net/explode: "If delimiter contains a value that is not contained in string , then explode() will return an array containing string." If you're using explode(), you're probably expecting an array. Seems normal to me.. On Feb 20, 2009, at 15:00 , Arlo Leach wrote: > Hi folks, > > Consider the following PHP code, which explodes an empty string: > > $string = ""; > $array = explode("|", $string); > print_r($array); > print "Length: ".count($array); > > I would expect this to output an empty array: > > Array ( ) Length: 0 > > But it actually outputs: > > Array ( [0] => ) Length: 1 > > Does anyone else find this odd? It has bitten me a few times lately, > when I > test the existence of data with a count(), or try to process data > with a FOR > loop. I end up writing this a lot to get the expected results: > > $array = ($string) ? explode(",", $string) : array() ; > > I was considering logging a bug report but wondered what your > thoughts were. > > Cheers, > -Arlo > > _______________________________ > > Arlo Leach > 773.769.6106 > http://arlomedia.com > > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source > code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: Ryan G. <sok...@gm...> - 2009-02-20 23:53:58
|
If you explode an empty string, it makes sense to have a one element array, which consists of that same empty string. If you try count(array("")) , you will get a result of one, as an empty string is still an array element. There are a lot of different options for locating characters inside of a string, I'd probably go with strrpos. On Fri, Feb 20, 2009 at 1:00 PM, Arlo Leach <ar...@ar...> wrote: > Hi folks, > > Consider the following PHP code, which explodes an empty string: > > $string = ""; > $array = explode("|", $string); > print_r($array); > print "Length: ".count($array); > > I would expect this to output an empty array: > > Array ( ) Length: 0 > > But it actually outputs: > > Array ( [0] => ) Length: 1 > > Does anyone else find this odd? It has bitten me a few times lately, when I > test the existence of data with a count(), or try to process data with a FOR > loop. I end up writing this a lot to get the expected results: > > $array = ($string) ? explode(",", $string) : array() ; > > I was considering logging a bug report but wondered what your thoughts were. > > Cheers, > -Arlo > > _______________________________ > > Arlo Leach > 773.769.6106 > http://arlomedia.com > > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > |
From: Trevor O. <tr...@gm...> - 2009-02-20 23:52:54
|
It will return false if the DELIMITER is null, not if the string is null 2009/2/20 David Rovani <da...@ro...> > I think it's returning what I would expect it to return. Because PHP > doesn't really differential between an empty string and a null string, > then a string is a string. Looking at the php manual for explode > (http://php.net/explode): > Return Values - If delimiter is an empty string (""), explode() will > return FALSE. If delimiter contains a value that is not contained in > string , then explode() will return an array containing string. > > So, in your case, it's returning $string back to you as the first > element of the array... exactly as expected. > Now, if $string was a null, uninitialized variable, perhaps you have a > point, but I think it's pretty much working as intended. > > Perhaps a string-length check is appropriate in this circumstance > before you explode the string? Or, when you do a count($array) in a > conditional, also do a len($string)? > -Rovani > > > (please don't take it as condescending... definitely not meant that way) > > On Fri, Feb 20, 2009 at 3:00 PM, Arlo Leach <ar...@ar...> wrote: > > Hi folks, > > > > Consider the following PHP code, which explodes an empty string: > > > > $string = ""; > > $array = explode("|", $string); > > print_r($array); > > print "Length: ".count($array); > > > > I would expect this to output an empty array: > > > > Array ( ) Length: 0 > > > > But it actually outputs: > > > > Array ( [0] => ) Length: 1 > > > > Does anyone else find this odd? It has bitten me a few times lately, when > I > > test the existence of data with a count(), or try to process data with a > FOR > > loop. I end up writing this a lot to get the expected results: > > > > $array = ($string) ? explode(",", $string) : array() ; > > > > I was considering logging a bug report but wondered what your thoughts > were. > > > > Cheers, > > -Arlo > > > > _______________________________ > > > > Arlo Leach > > 773.769.6106 > > http://arlomedia.com > > > > > > > > > > > ------------------------------------------------------------------------------ > > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > > -Strategies to boost innovation and cut costs with open source > participation > > -Receive a $600 discount off the registration fee with the source code: > SFAD > > http://p.sf.net/sfu/XcvMzF8H > > _______________________________________________ > > chiPHPug-discuss mailing list > > chi...@li... > > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > -- -Trevor Oldak |
From: Trevor O. <tr...@gm...> - 2009-02-20 23:52:47
|
It seems like reasonable behavior to me. An empty string is a valid array value for explode. For example, if you exploded "||", it should return three empty strings. And from php.net: Return Values If *delimiter* is an empty string (""), *explode()* will return *FALSE*. If *delimiter* contains a value that is not contained in *string* , then * explode()* will return an array containing *string* . 2009/2/20 Arlo Leach <ar...@ar...> > Hi folks, > > Consider the following PHP code, which explodes an empty string: > > $string = ""; > $array = explode("|", $string); > print_r($array); > print "Length: ".count($array); > > I would expect this to output an empty array: > > Array ( ) Length: 0 > > But it actually outputs: > > Array ( [0] => ) Length: 1 > > Does anyone else find this odd? It has bitten me a few times lately, when I > test the existence of data with a count(), or try to process data with a > FOR > loop. I end up writing this a lot to get the expected results: > > $array = ($string) ? explode(",", $string) : array() ; > > I was considering logging a bug report but wondered what your thoughts > were. > > Cheers, > -Arlo > > _______________________________ > > Arlo Leach > 773.769.6106 > http://arlomedia.com > > > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > -- -Trevor Oldak |
From: David R. <da...@ro...> - 2009-02-20 23:50:01
|
I think it's returning what I would expect it to return. Because PHP doesn't really differential between an empty string and a null string, then a string is a string. Looking at the php manual for explode (http://php.net/explode): Return Values - If delimiter is an empty string (""), explode() will return FALSE. If delimiter contains a value that is not contained in string , then explode() will return an array containing string. So, in your case, it's returning $string back to you as the first element of the array... exactly as expected. Now, if $string was a null, uninitialized variable, perhaps you have a point, but I think it's pretty much working as intended. Perhaps a string-length check is appropriate in this circumstance before you explode the string? Or, when you do a count($array) in a conditional, also do a len($string)? -Rovani (please don't take it as condescending... definitely not meant that way) On Fri, Feb 20, 2009 at 3:00 PM, Arlo Leach <ar...@ar...> wrote: > Hi folks, > > Consider the following PHP code, which explodes an empty string: > > $string = ""; > $array = explode("|", $string); > print_r($array); > print "Length: ".count($array); > > I would expect this to output an empty array: > > Array ( ) Length: 0 > > But it actually outputs: > > Array ( [0] => ) Length: 1 > > Does anyone else find this odd? It has bitten me a few times lately, when I > test the existence of data with a count(), or try to process data with a FOR > loop. I end up writing this a lot to get the expected results: > > $array = ($string) ? explode(",", $string) : array() ; > > I was considering logging a bug report but wondered what your thoughts were. > > Cheers, > -Arlo > > _______________________________ > > Arlo Leach > 773.769.6106 > http://arlomedia.com > > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > |