Re: [PHP] Re: filter_input and $_POST deep array

2011-09-23 Thread Thijs Lensselink
On 09/23/2011 06:16 PM, jean-baptiste verrey wrote: > foreach cannot work in this situation has filter_input does not work > recursively and work only on the first level of $_POST (or $_GET) > so the best solution seems to be to use filter_var($_POST['var']['var2']); I was sure filter_input would

Re: [PHP] 'Mobile' PHP

2011-09-23 Thread Tommy Pham
On Fri, Sep 23, 2011 at 11:37 AM, Lester Caine wrote: > Tommy Pham wrote: > >> Have you looked at Quercus to see if it could run on Android? If it >> could, you >> can then run your PHP code then. >> > http://techblog.aasisvinayak.**com/deploy-php-applications-** > in-google-app-engine/

Re: [PHP] 'Mobile' PHP

2011-09-23 Thread Lester Caine
Tommy Pham wrote: Have you looked at Quercus to see if it could run on Android? If it could, you can then run your PHP code then. http://techblog.aasisvinayak.com/deploy-php-applications-in-google-app-engine/ popped up while I was searching. The bit I'm still wasting time on at the moment is h

Re: [PHP] 'Mobile' PHP

2011-09-23 Thread Tommy Pham
Have you looked at Quercus to see if it could run on Android? If it could, you can then run your PHP code then.

Re: Re: [PHP] Search for string followed by whitespace

2011-09-23 Thread Daniel Brown
On Fri, Sep 23, 2011 at 13:21, Tim Streater wrote: > > Dan, > > Thanks for the suggestion but I need to know where the string occurs as I > want to then do some excision/incision. Consider preg_replace() with that same pattern. Or, at the most involved, preg_replace_callback(). -- Networ

Re: [PHP] 'Mobile' PHP

2011-09-23 Thread Lester Caine
Daniel Brown wrote: > As the op noted, there is php for android, which I run on my phone. It doesn't have the full capabilities but the base stuff seems to be there. It runs quite well in fact. I've been running it for about a year now (shortly after the initial release), and - though it

Re: [PHP] Re: filter_input and $_POST deep array

2011-09-23 Thread jean-baptiste verrey
foreach cannot work in this situation has filter_input does not work recursively and work only on the first level of $_POST (or $_GET) so the best solution seems to be to use filter_var($_POST['var']['var2']); Thanks anyway On 23 September 2011 17:13, Thijs Lensselink wrote: > On 09/23/2011 03:

Re: [PHP] Re: filter_input and $_POST deep array

2011-09-23 Thread Thijs Lensselink
On 09/23/2011 03:17 PM, jean-baptiste verrey wrote: > seems that the only solution is to still use $_POST and use filter_var > instead, it could have been better! You can foreach the $_Post['login'] array and use filter_input on each iteration to do the filtering. Or maybe the filter_input_array is

Re: [PHP] 'Mobile' PHP

2011-09-23 Thread Daniel Brown
On Fri, Sep 23, 2011 at 10:19, Ashley Sheridan wrote: > > As the op noted, there is php for android, which I run on my phone. It > doesn't have the full capabilities but the base stuff seems to be there. It > runs quite well in fact. I've been running it for about a year now (shortly after

Re: [PHP] 'Mobile' PHP

2011-09-23 Thread Ashley Sheridan
Lester Caine wrote: >Bastien wrote: >> Depending in what has to be done, could you use HTML5 with local >storage and sync back up later? >The whole database is small enough to fit in 100Mb but needs Firebird >to access >it via PHP. > >> AFAIK android runs java programs using a custom JVM. So a

Re: [PHP] 'Mobile' PHP

2011-09-23 Thread Lester Caine
Bastien wrote: Depending in what has to be done, could you use HTML5 with local storage and sync back up later? The whole database is small enough to fit in 100Mb but needs Firebird to access it via PHP. AFAIK android runs java programs using a custom JVM. So any app on those devices will

Re: [PHP] Re: filter_input and $_POST deep array

2011-09-23 Thread jean-baptiste verrey
seems that the only solution is to still use $_POST and use filter_var instead, it could have been better! On 23 September 2011 14:11, jean-baptiste verrey < jeanbaptiste.ver...@gmail.com> wrote: > What do you mean? I don't see how I could use foreach there > > On 23 September 2011 13:31, Al wro

Re: [PHP] Re: filter_input and $_POST deep array

2011-09-23 Thread jean-baptiste verrey
What do you mean? I don't see how I could use foreach there On 23 September 2011 13:31, Al wrote: > > > On 9/23/2011 5:51 AM, jean-baptiste verrey wrote: > >> Hi, >> >> I have using a form that gives me something like >> $_POST=array( >> 'login'=>array( >> 'email'=>'he...@myphp.net'

[PHP] Re: filter_input and $_POST deep array

2011-09-23 Thread Al
On 9/23/2011 5:51 AM, jean-baptiste verrey wrote: Hi, I have using a form that gives me something like $_POST=array( 'login'=>array( 'email'=>'he...@myphp.net', 'password'=>'123456' ) ) is there a way to use filter_input function to filter the values? I tried fil

Re: [PHP] 'Mobile' PHP

2011-09-23 Thread Bastien
On 2011-09-23, at 4:27 AM, Lester Caine wrote: > OK, I can see 'PHP for Android' which seems to have stalled, and I've been > playing with other options, but I'm not currently happy with any of this > 'mobile' stuff. > > The 'problem' is quite simple ... While mobile broadband might work in

[PHP] filter_input and $_POST deep array

2011-09-23 Thread jean-baptiste verrey
Hi, I have using a form that gives me something like $_POST=array( 'login'=>array( 'email'=>'he...@myphp.net', 'password'=>'123456' ) ) is there a way to use filter_input function to filter the values? I tried filter_input(INPUT_POST,'login[email]') but it does not work!

Re: [PHP] Any free online tests to test my PHP knowledge?

2011-09-23 Thread Richard Quadling
On 22 September 2011 18:53, Mike Hansen wrote: > Does anyone know of a site that has an online test of PHP skills? I'd like > to review my PHP knowledge. > > I've already run across this site: > http://vladalexa.com/scripts/php/test/test_php_skill.html > > Thanks, > > Mike I took the ZCE exam and

[PHP] 'Mobile' PHP

2011-09-23 Thread Lester Caine
OK, I can see 'PHP for Android' which seems to have stalled, and I've been playing with other options, but I'm not currently happy with any of this 'mobile' stuff. The 'problem' is quite simple ... While mobile broadband might work in some quite limited areas of the UK - like in bigger towns -