php-general Digest 1 Mar 2011 16:03:20 -0000 Issue 7205

2011-03-01 Thread php-general-digest-help
php-general Digest 1 Mar 2011 16:03:20 - Issue 7205 Topics (messages 311597 through 311607): Sorting an array 311597 by: Ron Piggott 311599 by: Simon J Welsh 311605 by: David Robley 311606 by: FeIn 311607 by: Jim Lucas Implementing strict types

php-general Digest 2 Mar 2011 06:56:53 -0000 Issue 7206

2011-03-01 Thread php-general-digest-help
php-general Digest 2 Mar 2011 06:56:53 - Issue 7206 Topics (messages 311608 through 311612): Re: Help! Made a boo-boo encrypting credit cards 311608 by: Brian Dunning 311609 by: Bastien Koert 311610 by: Ken Kixmoeller Re: Sorting an array 311611 by: Alex

Re: [PHP] Implementing strict types

2011-03-01 Thread Richard Quadling
On 1 March 2011 04:40, Paul McGarry p...@paulmcgarry.com wrote: I am looking at implementing something roughly equivalent to strict typing for a part of my code. Has anybody else had a go at such a thing? I have some data types which I'm implementing as classes (base types like int but also

Re: [PHP] very quick Regex query

2011-03-01 Thread Richard Quadling
On 1 March 2011 03:07, Alexis phplis...@antonakis.co.uk wrote: Hi, I know not strictly a PHP question, but was just wondering if someone can tell me the regex format for something please. I need to replace .. with That is six periods replaced by eight hyphens. Many thanks

[PHP] Re: Sorting an array

2011-03-01 Thread David Robley
Ron Piggott wrote: I need help to know how to sort the words / phrases in my array. Variable name: $words_used print_r( $words_used ); Current output: Array ( [187] = Sin [249] = Punished [98] = Sanctuary [596] = Sing [362] = Anointing Oil ) Desired result: Alphabetical sort: Array (

Re: [PHP] Re: Sorting an array

2011-03-01 Thread FeIn
Also check http://www.php.net/manual/en/function.natsort.php On Tue, Mar 1, 2011 at 1:39 PM, David Robley robl...@aapt.net.au wrote: Ron Piggott wrote: I need help to know how to sort the words / phrases in my array. Variable name: $words_used print_r( $words_used ); Current output:

Re: [PHP] Sorting an array

2011-03-01 Thread Jim Lucas
On 2/28/2011 7:52 PM, Ron Piggott wrote: I need help to know how to sort the words / phrases in my array. Variable name: $words_used print_r( $words_used ); Current output: Array ( [187] = Sin [249] = Punished [98] = Sanctuary [596] = Sing [362] = Anointing Oil ) Desired result:

Re: [PHP] Help! Made a boo-boo encrypting credit cards

2011-03-01 Thread Brian Dunning
I just wanted to ping this, as it's becoming a serious problem. I hope someone can help. On Feb 11, 2011, at 2:42 PM, Brian Dunning wrote: Hey all - I'm using mcrypt to store credit cards into MySQL. About 90% of them decrypt fine, but about 10% decrypt as nonsense (b1�\�JEÚU�A��� is a

Re: [PHP] Help! Made a boo-boo encrypting credit cards

2011-03-01 Thread Bastien Koert
On Tue, Mar 1, 2011 at 12:34 PM, Brian Dunning br...@briandunning.com wrote: I just wanted to ping this, as it's becoming a serious problem. I hope someone can help. On Feb 11, 2011, at 2:42 PM, Brian Dunning wrote: Hey all - I'm using mcrypt to store credit cards into MySQL. About 90%

Re: [PHP] Help! Made a boo-boo encrypting credit cards

2011-03-01 Thread Ken Kixmoeller
On Fri, Feb 11, 2011 at 4:42 PM, Brian Dunning br...@briandunning.com wrote: Hey all - I'm using mcrypt to store credit cards into MySQL. About 90% of them decrypt fine, but about 10% decrypt as nonsense (b1�\�JEÚU�A��� is a good example). Maybe there is a character that appears in about

Re: [PHP] Re: Sorting an array

2011-03-01 Thread Alex
That or do it in mysql before you get the data back, its also pretty good at sorting, you know ;) -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. FeIn aci...@gmail.com wrote: Also check http://www.php.net/manual/en/function.natsort.php On Tue, Mar 1, 2011 at 1:39 PM,

[PHP] Help needed with mysql import

2011-03-01 Thread Ashim Kapoor
Dear all, I am trying to make a website with php and I found the following code in a book and I am trying to import it. The following are the beginning of the file i am trying to import with the command mysql -u root -pmypassword certainty dump I get the following error : ERROR 1067 (42000) at

Re: [PHP] Help needed with mysql import

2011-03-01 Thread Thijs Lensselink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/02/2011 07:56 AM, Ashim Kapoor wrote: Dear all, I am trying to make a website with php and I found the following code in a book and I am trying to import it. The following are the beginning of the file i am trying to import with the