Re: [PHP] strlen ?

2013-07-06 Thread Jim Giner
On 7/6/2013 2:59 AM, Lester Caine wrote: Jim Giner wrote: And the answer is - yes, there is a LF char at the end of my data in my whole table. Now the question is - how the heck did I put that in there? Certainly not intentionally. The data is captured from a d/e screen I wrote and it simply

Re: [PHP] strlen ?

2013-07-06 Thread Lester Caine
Jim Giner wrote: It's probably worth checking the sting length back through your code just to confirm what added it? The best I can figure is that I did a preload of many of the names from a csv file. Apparently when I do that it stores the LF at the end of the csv line. Have to remember that

[PHP] mongo usage

2013-07-06 Thread Tim Dunphy
Hey all, I'm trying to pick up some basic use of MongoDB using PHP. I seem to have hit an early obstacle that I'd like your opinion on. I try to pass an array to the mongo insert function, but for some reason the function does not recognize the array I'm passing. Even though I can perform a var

[PHP] Guaranteed Way to Get Error Message Wanted

2013-07-06 Thread Brian Smither
>It looks like you are running the thread-safe version with >FastCGI, which I understand to be counter to the recommendations. Thank you for the comment. I switched to PHP5.4.17-NTS-VC9, but the application still crashes. And still no clue as to why. So, still looking for that magic method to g

RE: [PHP] mongo usage

2013-07-06 Thread Thomas Punt
Could the comma after the last element in your array be causing the problem? > Date: Sat, 6 Jul 2013 14:42:07 -0400 > From: bluethu...@gmail.com > To: php-general@lists.php.net > Subject: [PHP] mongo usage > > Hey all, > > I'm trying to pick up some basic use of MongoDB using PHP. > > I seem

Re: [PHP] mongo usage

2013-07-06 Thread Jonathan Sundquist
You commented out the setting of yhe addresses variable On Jul 6, 2013 1:42 PM, "Tim Dunphy" wrote: > Hey all, > > I'm trying to pick up some basic use of MongoDB using PHP. > > I seem to have hit an early obstacle that I'd like your opinion on. I try > to pass an array to the mongo insert func

Re: [PHP] mongo usage

2013-07-06 Thread Tim Dunphy
| Could the comma after the last element in your array be causing the problem? I tried removing it, but there was no change. Thanks for the suggestion! On Sat, Jul 6, 2013 at 2:55 PM, Thomas Punt wrote: > Could the comma after the last element in your array be causing the > problem? > > > Date:

Re: [PHP] mongo usage

2013-07-06 Thread Tim Dunphy
| You commented out the setting of yhe addresses variable Those were both equivalent ways of stating the same thing. I tried substituting the other statement but there was no change: $db = $connection->jfdb; //$collection = $db->addresses; $adresses = $connection->jfdb->adresses; T

Re: [PHP] Guaranteed Way to Get Error Message Wanted

2013-07-06 Thread Richard Quadling
On 6 July 2013 19:50, Brian Smither wrote: > >It looks like you are running the thread-safe version with > >FastCGI, which I understand to be counter to the recommendations. > > Thank you for the comment. > > I switched to PHP5.4.17-NTS-VC9, but the application still crashes. And > still no clue

[PHP] Guaranteed Way to Get Error Message Wanted

2013-07-06 Thread Brian Smither
>Have you got all your extensions updated? I would think so. Just to state the required disclaimers: phpinfo.php with works. Liberally peppering a tracer routine throughout the application shows it is getting executed up until one spot. But there is nothing obviously wrong with the code. Nothin

Re: [PHP] Guaranteed Way to Get Error Message Wanted

2013-07-06 Thread Richard Quadling
On 6 July 2013 21:45, Brian Smither wrote: > >Have you got all your extensions updated? > > I would think so. Just to state the required disclaimers: > phpinfo.php with works. > Liberally peppering a tracer routine throughout the application shows it > is getting executed up until one spot. But

Re: [PHP] mongo usage

2013-07-06 Thread Matijn Woudt
On Sat, Jul 6, 2013 at 9:16 PM, Tim Dunphy wrote: > | You commented out the setting of yhe addresses variable > > Those were both equivalent ways of stating the same thing. I tried > substituting the other statement but there was no change: > > $db = $connection->jfdb; > > //$collection =

Re: [PHP] mongo usage

2013-07-06 Thread Tim Dunphy
| You seem to spell the variable differently (1 'd' vs. 2 'd's)? Thanks! Fixed the type-o. Still no change. $connection = new Mongo(); $db = $connection->jfdb; //$collection = $db->addresses; $adresses = $connection->jfdb->addresses; Any other suggestions? Appreciated. Tim

[PHP] Re: mongo usage

2013-07-06 Thread Tim Streater
On 06 Jul 2013 at 23:27, Tim Dunphy wrote: > | You seem to spell the variable differently (1 'd' vs. 2 'd's)? > > Thanks! Fixed the type-o. Still no change. > > $connection = new Mongo(); > >$db = $connection->jfdb; > >//$collection = $db->addresses; > >$adresses = $connection->jfd

Re: [PHP] Re: mongo usage

2013-07-06 Thread Tim Dunphy
Thanks. Sorry to bug you guys with this. That did it. sigh On Sat, Jul 6, 2013 at 6:49 PM, Tim Streater wrote: > On 06 Jul 2013 at 23:27, Tim Dunphy wrote: > > > | You seem to spell the variable differently (1 'd' vs. 2 'd's)? > > > > Thanks! Fixed the type-o. Still no change. > > > > $conne