Re: [PHP] Too many arrays! My head is exploding!

2012-05-29 Thread Florian Lemaitre
[0] => a ) [2] => Array ( [0] => b ) [3] => Array ( [0] => a [1] => b ) [4] => Array ( [0] => c ) [5] => Array ( [0] => a

Re: [PHP] Bug #51739 tricky string to float conversion

2011-09-01 Thread Florian Lemaitre
Le 01/09/2011 10:43, magic-...@damage.devloop.de a écrit : Simon J Welsh writes: On 1/09/2011, at 9:53 AM, magic-...@damage.devloop.de wrote: Am Mittwoch, 31. August 2011, 20:48:37 schrieb Shawn McKenzie: On 08/31/2011 09:03 AM, magic-...@damage.devloop.de wrote: var_dump((float)"8315e839da08

Re: [PHP] Using stand-alone PHP scripts with Drupal

2011-08-24 Thread Florian Lemaitre
Le 24/08/2011 12:24, Geoff Shang a écrit : Hi, I know this is probably more a Drupal question, but I'm guessing some here have probably had to deal with this. I've written some PHP code which works just fine on its own. Now someone wants to include it in their Drupal site, with the regular

Re: [PHP] Why count() returns no error when string is given ?

2011-08-16 Thread Florian Lemaitre
Le 16/08/2011 16:50, rs...@live.com a écrit : Hello Florian, Tuesday, August 16, 2011, 4:32:39 PM, you wrote: manual : function.count.php "Returns the number of elements in/var/. If/var/is not an array or an object with implementedCountable int

Re: [PHP] Why count() returns no error when string is given ?

2011-08-16 Thread Florian Lemaitre
Le 16/08/2011 16:32, Florian Lemaitre a écrit : Le 16/08/2011 16:29, rs...@live.com a écrit : For example when I do: strlen(array(1,2,3)); php shows: Warning: strlen() expects parameter 1 to be string, array given in... but when I do: count('string'); It simply returns 1 li

Re: [PHP] Why count() returns no error when string is given ?

2011-08-16 Thread Florian Lemaitre
Le 16/08/2011 16:29, rs...@live.com a écrit : For example when I do: strlen(array(1,2,3)); php shows: Warning: strlen() expects parameter 1 to be string, array given in... but when I do: count('string'); It simply returns 1 like nothing happened. I would expect such behavior if I write

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Florian Lemaitre
Le 11/08/2011 13:08, Tamara Temple a écrit : On Aug 10, 2011, at 8:22 PM, Jason Pruim wrote: while ($num != "1") { Problem is here ^ You are testing a numeric $num with a string "1", which $num will *never* equal. Leave off the quotes on the number. Hum, I suggest you read this

Re: [PHP] $_POST value disappearing?

2011-08-02 Thread Florian Lemaitre
Le 02/08/2011 17:04, Donovan Brooke a écrit : Hello!, I must not be understanding something as I would expect 'f_file' to show up in the print_r below.: --index.php-- --/index.php-- try *: * ;)

[PHP] File concurrent file access

2011-07-22 Thread Florian Lemaitre
Hi ! I'm developing my new website and I'm worried about concurrent file access. In fact, I want to suppress a maximum database interactions so I keep information in files with faster I/O than databases. But I'm worried by the fact that an error can occur when someone try to access a file being

Re: [PHP] Re: str_replace around a character??

2011-07-13 Thread Florian Lemaitre
Le 13/07/2011 16:59, Shawn McKenzie a écrit : On 07/13/2011 02:54 AM, Karl DeSaulniers wrote: Hello All, I am needing some assistance. I am trying to add some Cc and Bcc to a mail script I have. On the form I have instructions for each to be separated by a comma + a space. In an all perfect worl