Re: [PHP] storing arrays

2002-02-17 Thread Joffrey van Wageningen
- Original Message - From: "Clark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 17, 2002 3:15 AM Subject: [PHP] storing arrays > Two questions: > > 1) Is it possible to write an array to a file? not direct, use: $fp = fopen("/my/file", "w"); foreach($filearray a

Re: [PHP] storing arrays

2002-02-17 Thread Matt
- Original Message - From: "Clark" <[EMAIL PROTECTED]> Sent: Saturday, February 16, 2002 9:15 PM > Two questions: > > 1) Is it possible to write an array to a file? Yes, serialize it first with http://www.php.net/serialize. You can also place this in a db text field because it will be

Re: [PHP] storing arrays

2002-02-17 Thread Clark
I'm having trouble storing my array to a text file, utilizing serialize() and unserialize(). Could you please show a very basic layout of the proper way to serialize and unserialize and store that to a file? Thanks. "Matt" <[EMAIL PROTECTED]> wrote in message 001e01c1b7c0$404d5be0$059aa8c0@Pooc

RE: [PHP] storing arrays

2002-02-18 Thread Rick Emery
-Original Message- From: Clark [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 17, 2002 11:15 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] storing arrays I'm having trouble storing my array to a text file, utilizing serialize() and unserialize(). Could you please show a very