php-general Digest 5 Mar 2012 19:11:46 -0000 Issue 7713

2012-03-05 Thread php-general-digest-help
php-general Digest 5 Mar 2012 19:11:46 - Issue 7713 Topics (messages 316877 through 316913): '?=' with PHP5.3.10 316877 by: Lester Caine 316878 by: Ashley Sheridan 316879 by: Lester Caine 316880 by: Alejandro Michelin Salomon 316911 by: Marc ct

[PHP] '?=' with PHP5.3.10

2012-03-05 Thread Lester Caine
I am presuming that one of my customers hosts has upgraded to PHP5.3.10 over the weekend, and now the site is broken! It is currently codeignighter based, something which I am in the process of replacing anyway, but I need to get http://eveshamselfdrive.co.uk/ working again as it was last week.

Re: [PHP] '?=' with PHP5.3.10

2012-03-05 Thread Ashley Sheridan
Lester Caine les...@lsces.co.uk wrote: I am presuming that one of my customers hosts has upgraded to PHP5.3.10 over the weekend, and now the site is broken! It is currently codeignighter based, something which I am in the process of replacing anyway, but I need to get

Re: [PHP] '?=' with PHP5.3.10

2012-03-05 Thread Lester Caine
Ashley Sheridan wrote: You can set it in php.ini itself, or possibly from .htaccess. failing that, find/replace on the old short echo tags would do it. But I thought that '?=' was SUPPOSED to have been protected? When did that change ... -- Lester Caine - G8HFL

RES: [PHP] '?=' with PHP5.3.10

2012-03-05 Thread Alejandro Michelin Salomon
Leste Wrote: -Mensagem original- De: Lester Caine [mailto:les...@lsces.co.uk] Enviada em: segunda-feira, 5 de março de 2012 08:18 Para: php-general@lists.php.net Assunto: Re: [PHP] '?=' with PHP5.3.10 Ashley Sheridan wrote: You can set it in php.ini itself, or possibly from .htaccess.

[PHP] PHP passthru() blocks with bash process replacement?

2012-03-05 Thread Sander Marechal
Hi all, I have a problem with PHP passthru() blocking when it is supposed to start a daemon and return. I have a Node.js daemon with a bash script wrapper around it. Users can call this bash script directly, but it is also used by our deployment system. Our deployment system uses Phing, and

Re: [PHP] MySQL over TCP results on CLOSE_WAIT state in PHP 5.3.8

2012-03-05 Thread php-list
I have a MySQL server A, a server B with PHP 5.3.8 and a server C with PHP 5.3.3. I'm connecting to the MySQL server on A via TCP from B and C using an internal network. Server B and C use the same PHP application. There are also same PHP scripts that get data from the database and then

[PHP] Converting an unordered list into JSON

2012-03-05 Thread Jay Blanchard
Good morning PHP groupies! I am off on my next tangent now and I have not really thought about this too much yet but have you seen a method to convert a nested unordered list into JSON using PHP? Thanks! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Converting an unordered list into JSON

2012-03-05 Thread Stuart Dallas
On 5 Mar 2012, at 15:50, Jay Blanchard wrote: I am off on my next tangent now and I have not really thought about this too much yet but have you seen a method to convert a nested unordered list into JSON using PHP? There's a very useful search function for the PHP manual on the PHP site.

Re: [PHP] Converting an unordered list into JSON

2012-03-05 Thread Jay Blanchard
On 3/5/2012 9:53 AM, Stuart Dallas wrote: On 5 Mar 2012, at 15:50, Jay Blanchard wrote: I am off on my next tangent now and I have not really thought about this too much yet but have you seen a method to convert a nested unordered list into JSON using PHP? There's a very useful search

Re: [PHP] Converting an unordered list into JSON

2012-03-05 Thread Stuart Dallas
On 5 Mar 2012, at 16:02, Jay Blanchard wrote: On 3/5/2012 9:53 AM, Stuart Dallas wrote: On 5 Mar 2012, at 15:50, Jay Blanchard wrote: I am off on my next tangent now and I have not really thought about this too much yet but have you seen a method to convert a nested unordered list into

Re: [PHP] Converting an unordered list into JSON

2012-03-05 Thread Jay Blanchard
[snip] $json = json_encode($nested_unordered_list); As I said, whether that works or not depends on what type $nested_unordered_list is. If it's not made of standard types you'll need to massage it into a structure using standard types. :D [/snip] Stewie, Stewie, Stewie. :) So what

Re: [PHP] Converting an unordered list into JSON

2012-03-05 Thread Stuart Dallas
On 5 Mar 2012, at 16:24, Jay Blanchard wrote: [snip] $json = json_encode($nested_unordered_list); As I said, whether that works or not depends on what type $nested_unordered_list is. If it's not made of standard types you'll need to massage it into a structure using standard types. :D

Re: [PHP] Converting an unordered list into JSON

2012-03-05 Thread Jim Giner
Jay Blanchard jay.blanch...@sigmaphinothing.org wrote in message news:4f54e388.7010...@sigmaphinothing.org... On 3/5/2012 9:53 AM, Stuart Dallas wrote: On 5 Mar 2012, at 15:50, Jay Blanchard wrote: I am off on my next tangent now and I have not really thought about this too much yet but

Re: [PHP] Converting an unordered list into JSON

2012-03-05 Thread Jay Blanchard
[snip] Difficult to answer without knowing how your data is currently stored. Gimme a var_dump or var_export of your data and I'll be able to give you an answer. -Stuart [/snip] It is an unordered nested list as in the following example - ul lifoo/li libar ul liglorp/li /ul /li /ul -- PHP

Re: [PHP] Converting an unordered list into JSON

2012-03-05 Thread Jay Blanchard
[snip] Sounds like your tangents are efforts to accomplish things that you know too little about and don't want to spend too much time getting acquainted with. To borrow from your crude response to Mr. Dallas: You may have RTFM, now try DTFW. :) [/snip] Seriously Jim? I have been a member

Re: [PHP] Converting an unordered list into JSON

2012-03-05 Thread Stuart Dallas
On 5 Mar 2012, at 16:45, Jay Blanchard wrote: [snip] Difficult to answer without knowing how your data is currently stored. Gimme a var_dump or var_export of your data and I'll be able to give you an answer. -Stuart [/snip] It is an unordered nested list as in the following example -

Re: [PHP] Converting an unordered list into JSON

2012-03-05 Thread Jay Blanchard
[snip] Ahh, the list is in an HTML document, suddenly it all becomes clear. DOMDocument is probably your best bet here. Other HTML parsers are also available. -Stuart [/snip] Ah! Thanks for the heads up on that Stuart - I'll start my work there this afternoon. -- PHP General Mailing List

[PHP] iphone php

2012-03-05 Thread Jim Giner
An appl that has been working fine for a year now and fine up through last week, suddenly is not working on my iphone. The only differences between using it on a pc, ipad or iphone are for font sizes and such (handled by JS) so I'm puzzled as to what is going on. I do the same exact thing on

Re: [PHP] iphone php

2012-03-05 Thread Stuart Dallas
On 5 Mar 2012, at 17:16, Jim Giner wrote: An appl that has been working fine for a year now and fine up through last week, suddenly is not working on my iphone. The only differences between using it on a pc, ipad or iphone are for font sizes and such (handled by JS) so I'm puzzled as to

Re: [PHP] iphone php

2012-03-05 Thread Jim Giner
Stuart Dallas stu...@3ft9.com wrote in message news:a42f15bf-48a9-4118-bef5-ebc374fcb...@3ft9.com... On 5 Mar 2012, at 17:16, Jim Giner wrote: An appl that has been working fine for a year now and fine up through last week, suddenly is not working on my iphone. The only differences between

Re: [PHP] iphone php

2012-03-05 Thread Mike Mackintosh
On Mar 5, 2012, at 12:30, Jim Giner jim.gi...@albanyhandball.com wrote: Download dolphin browser, it's a free safari replacement using webkit. Try you app in there and post back the results. Mike Mackintosh ZCE PHP5.3 www.highonphp.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] iphone php

2012-03-05 Thread Jay Blanchard
[snip]In the last few mins I re-booted my phone and it is now doing something even worse! [/snip] Have you also cleared the cache and the cookies? You can also add Firebug to your iPhone - http://www.iphone-my.com/ipad/geting-firebug-iphone-ipad/ -- PHP General Mailing List

Re: [PHP] iphone php

2012-03-05 Thread Jim Giner
Jay Blanchard jay.blanch...@sigmaphinothing.org wrote in message news:4f54faf8.4030...@sigmaphinothing.org... [snip]In the last few mins I re-booted my phone and it is now doing something even worse! [/snip] Have you also cleared the cache and the cookies? You can also add Firebug to your

Re: [PHP] iphone php

2012-03-05 Thread Mike Mackintosh
On Mar 5, 2012, at 12:52, Jim Giner jim.gi...@albanyhandball.com wrote: Jay Blanchard jay.blanch...@sigmaphinothing.org wrote in message news:4f54faf8.4030...@sigmaphinothing.org... [snip]In the last few mins I re-booted my phone and it is now doing something even worse! [/snip] Have

Re: [PHP] iphone php

2012-03-05 Thread Mari Masuda
On Mar 5, 2012, at 9:52 AM, Jim Giner wrote: Jay Blanchard jay.blanch...@sigmaphinothing.org wrote in message news:4f54faf8.4030...@sigmaphinothing.org... [snip]In the last few mins I re-booted my phone and it is now doing something even worse! [/snip] Have you also cleared the cache

Re: [PHP] iphone php

2012-03-05 Thread Jim Giner
- Original Message - From: Mari Masuda mari.mas...@stanford.edu To: Jim Giner jim.gi...@albanyhandball.com Cc: php-general@lists.php.net Sent: Monday, March 05, 2012 12:57 PM Subject: Re: [PHP] iphone php On Mar 5, 2012, at 9:52 AM, Jim Giner wrote: Jay Blanchard

Re: [PHP] iphone php

2012-03-05 Thread Jim Giner
Jim Giner jim.gi...@albanyhandball.com wrote in message news:35.42.35539.06df4...@pb1.pair.com... Jay Blanchard jay.blanch...@sigmaphinothing.org wrote in message news:4f54faf8.4030...@sigmaphinothing.org... [snip]In the last few mins I re-booted my phone and it is now doing something

Re: [PHP] iphone php

2012-03-05 Thread Ashley Sheridan
Jim Giner jim.gi...@albanyhandball.com wrote: Jim Giner jim.gi...@albanyhandball.com wrote in message news:35.42.35539.06df4...@pb1.pair.com... Jay Blanchard jay.blanch...@sigmaphinothing.org wrote in message news:4f54faf8.4030...@sigmaphinothing.org... [snip]In the last few mins I

Re: [PHP] iphone php

2012-03-05 Thread Jim Giner
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:caba1578-d923-4fa8-b824-db8f5ffea...@email.android.com... Jim Giner jim.gi...@albanyhandball.com wrote: Jim Giner jim.gi...@albanyhandball.com wrote in message news:35.42.35539.06df4...@pb1.pair.com... Jay Blanchard

Re: [PHP] iphone php

2012-03-05 Thread Stuart Dallas
On 5 Mar 2012, at 18:12, Jim Giner wrote: Okay - here's the scoop - although this is not the forum for it. Ipads and Iphones respect an html input tag's type=number attribute in order to trigger the device's different keyboard configurations. This is a neat trick that I found on a couple

[PHP] Re: iphone php

2012-03-05 Thread Jim Giner
Solution! Found this post from last Fall. Didn't experience the problem because my appl is a NASCAR one and the season ended before this problem was created, apparently by an Apple update on my phone. Here's a link to the story: https://discussions.apple.com/thread/3408352?tstart=0 To

Re: [PHP] iphone php

2012-03-05 Thread Jim Giner
Stuart Dallas stu...@3ft9.com wrote in message news:797e930f-368c-43d1-8159-9608b6d53...@3ft9.com... On 5 Mar 2012, at 18:12, Jim Giner wrote: Okay - here's the scoop - although this is not the forum for it. Ipads and Iphones respect an html input tag's type=number attribute in order to

Re: [PHP] iphone php

2012-03-05 Thread Marc Guay
And if you change your input type to date, because it's a date, does that bring up the numeric keys as well? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] '?=' with PHP5.3.10

2012-03-05 Thread Marc ct
2012/3/5 Alejandro Michelin Salomon amichel...@hotmail.com: Leste Wrote: -Mensagem original- De: Lester Caine [mailto:les...@lsces.co.uk] Enviada em: segunda-feira, 5 de março de 2012 08:18 Para: php-general@lists.php.net Assunto: Re: [PHP] '?=' with PHP5.3.10 Ashley Sheridan wrote:

Re: [PHP] iphone php

2012-03-05 Thread Jim Giner
Marc Guay marc.g...@gmail.com wrote in message news:CAL0DAJq0y-iOMvt4Ko+D4Z_t+oo3PT9SYmR+9foa=9q9gsr...@mail.gmail.com... And if you change your input type to date, because it's a date, does that bring up the numeric keys as well? actually I have not seen anything that suggests that is a

Re: [PHP] '?=' with PHP5.3.10

2012-03-05 Thread Lester Caine
Marc ct wrote: And also as you say that it is based with codeigniter you can use a feature of the framework for emulate it. http://codeigniter.com/user_guide/general/alternative_php.html That was probably the other sort of hint I was looking for 9 hours ago ;) Maintaining something one has not

Re: [PHP] iphone php

2012-03-05 Thread Robert Williams
On 3/5/12 11:58, Jim Giner jim.gi...@albanyhandball.com wrote: Marc Guay marc.g...@gmail.com wrote in message news:CAL0DAJq0y-iOMvt4Ko+D4Z_t+oo3PT9SYmR+9foa=9q9gsr...@mail.gmail.com... And if you change your input type to date, because it's a date, does that bring up the numeric keys as well?

Re: [PHP] iphone php

2012-03-05 Thread Jim Giner
Robert Williams rewilli...@thesba.com wrote in message news:cb7a5dd7.828c6%rewilli...@thesba.com... On 3/5/12 11:58, Jim Giner jim.gi...@albanyhandball.com wrote: Marc Guay marc.g...@gmail.com wrote in message news:CAL0DAJq0y-iOMvt4Ko+D4Z_t+oo3PT9SYmR+9foa=9q9gsr...@mail.gmail.com... And if

[PHP] Re: iphone php

2012-03-05 Thread Shawn McKenzie
On 03/05/2012 11:16 AM, Jim Giner wrote: An appl that has been working fine for a year now and fine up through last week, suddenly is not working on my iphone. The only differences between using it on a pc, ipad or iphone are for font sizes and such (handled by JS) so I'm puzzled as to

Re: [PHP] iphone php

2012-03-05 Thread Ashley Sheridan
On Mon, 2012-03-05 at 14:43 -0500, Jim Giner wrote: Robert Williams rewilli...@thesba.com wrote in message news:cb7a5dd7.828c6%rewilli...@thesba.com... On 3/5/12 11:58, Jim Giner jim.gi...@albanyhandball.com wrote: Marc Guay marc.g...@gmail.com wrote in message

[PHP] Jobs in Denver

2012-03-05 Thread Nathan Nobbe
Hey gang, Anyone looking for solid PHP gigs in the Denver area, (or would consider moving to Denver b/c it's so awesome!) contact me offline; I've got the hookup! -nathan

Re: [PHP] Нужны памперсы

2012-03-05 Thread Ghodmode
I'll be damned! Russian spam. Use Google translate if you want to, then please ban this idiot. -- Vince Aggrippino Ghodmode Development http://www.ghodmode.com 2012/3/5 Deti                                             Детям требуется Ваша помощь! -- PHP General Mailing List

Re: [PHP] MySQL over TCP results on CLOSE_WAIT state in PHP 5.3.8

2012-03-05 Thread Tommy Pham
On Mon, Mar 5, 2012 at 7:33 AM, php-l...@dubistmeinheld.de wrote: I have a MySQL server A, a server B with PHP 5.3.8 and a server C with PHP 5.3.3. I'm connecting to the MySQL server on A via TCP from B and C using an internal network. Server B and C use the same PHP application. There

[PHP] PHP 5.4 new output control API callback buffer

2012-03-05 Thread Charles
Hi, I'm just wondering, what is the right output of below code should be ob_start(function($o) { fwrite(STDERR, $o); }); echo 'hello'; ob_end_clean(); Does it should print hello or does it should print nothing? In PHP 5.3, it prints hello, but in 5.4.0 it prints nothing. Looking at the C code