Re: [PHP] can PHP do what tie does in Perl?

2005-12-02 Thread Jochem Maas
Bing Du wrote: Hi, In Perl, hash can be stored in a file like this: tie(%contact,'SDBM_File',$tmp_file,O_RDWR|O_CREAT,0666); How the function should be implemented in PHP if it's possible? file_put_contents('/path/to/your/file', $someFingArray) Thanks, Bing -- PHP General Mailing

Re: [PHP] can PHP do what tie does in Perl?

2005-12-02 Thread Robert Cummings
On Fri, 2005-12-02 at 09:42, Jochem Maas wrote: Bing Du wrote: Hi, In Perl, hash can be stored in a file like this: tie(%contact,'SDBM_File',$tmp_file,O_RDWR|O_CREAT,0666); How the function should be implemented in PHP if it's possible? file_put_contents('/path/to/your/file',

Re: [PHP] can PHP do what tie does in Perl?

2005-12-02 Thread Jochem Maas
Robert Cummings wrote: On Fri, 2005-12-02 at 09:42, Jochem Maas wrote: Bing Du wrote: Hi, In Perl, hash can be stored in a file like this: tie(%contact,'SDBM_File',$tmp_file,O_RDWR|O_CREAT,0666); How the function should be implemented in PHP if it's possible?