php-general Digest 22 Sep 2010 15:22:35 -0000 Issue 6954

2010-09-22 Thread php-general-digest-help
php-general Digest 22 Sep 2010 15:22:35 - Issue 6954 Topics (messages 308250 through 308257): ZipArchive, but without files 308250 by: Jonathan Mills 308251 by: Viacheslav Chumushuk Copying an Object 308252 by: Daniel Kolbo 308253 by: mr bungle

[PHP] ZipArchive, but without files

2010-09-22 Thread Jonathan Mills
Is it possible to create a ZipArchive to a non-file storage, eg string? I want to create a small zip of some data, and then load it into a database. I don't need the intermediate file. I tried various filters, and I can READ a zip archive with the data:// wrapper, but haven't found any way of

Re: [PHP] ZipArchive, but without files

2010-09-22 Thread Viacheslav Chumushuk
Hello. As I understand you in a right way you need next function http://ua.php.net/manual/en/function.gzcompress.php On Wed, Sep 22, 2010 at 10:16:30AM +0100, Jonathan Mills jonathan.n.mi...@gmail.com wrote: Is it possible to create a ZipArchive to a non-file storage, eg string? I want to

[PHP] Copying an Object

2010-09-22 Thread Daniel Kolbo
Hello PHPers, I have: class A { ...code } class B extends A { ...code } $a = new A(); $b = new B(); I would like to get all of the properties of $a into $b by value. Class A extends 3 other classes. I would like a way to not have to manage a 'copy' method in B if A or one

Re: [PHP] Copying an Object

2010-09-22 Thread mr bungle
Maybe statics members can help you with this ... On Wed, Sep 22, 2010 at 07:35, Daniel Kolbo kolb0...@umn.edu wrote: Hello PHPers, I have: class A { ...code } class B extends A { ...code } $a = new A(); $b = new B(); I would like to get all of the properties of $a

Re: [PHP] Copying an Object

2010-09-22 Thread chris h
You could create a method of class B that takes an object of class A as a parameter and copies each property line by line (or method of class A that takes an object of class B...). If you don't want to add a method you could just do the same thing, but procedurally. The issue with this (aside

Re: [PHP] Copying an Object

2010-09-22 Thread Nathan Nobbe
On Wed, Sep 22, 2010 at 5:35 AM, Daniel Kolbo kolb0...@umn.edu wrote: Hello PHPers, I have: class A { ...code } class B extends A { ...code } $a = new A(); $b = new B(); I would like to get all of the properties of $a into $b by value. first off you have to be

Re: [PHP] Copying an Object

2010-09-22 Thread Nathan Nobbe
On Wed, Sep 22, 2010 at 5:35 AM, Daniel Kolbo kolb0...@umn.edu wrote: Hello PHPers, I have: class A { ...code } class B extends A { ...code } $a = new A(); $b = new B(); after looking back over your situation, which looks strange, why not use composition at this

[PHP] Re: Copying an Object

2010-09-22 Thread Carlos Medina
Am 22.09.2010 13:35, schrieb Daniel Kolbo: Hello PHPers, I have: class A { ...code } class B extends A { ...code } $a = new A(); $b = new B(); I would like to get all of the properties of $a into $b by value. Class A extends 3 other classes. I would like a way to not have

Re: [PHP] ZipArchive, but without files

2010-09-22 Thread Jonathan Mills
On 22/09/2010 12:11, Viacheslav Chumushuk wrote: Hello. As I understand you in a right way you need next function http://ua.php.net/manual/en/function.gzcompress.php Thanks for the suggestion Viacheslav , but I'd trying to the create the complete zipfile structure, gzcompress() just

Re: [PHP] ZipArchive, but without files

2010-09-22 Thread Carlos Medina
Am 22.09.2010 17:32, schrieb Jonathan Mills: On 22/09/2010 12:11, Viacheslav Chumushuk wrote: Hello. As I understand you in a right way you need next function http://ua.php.net/manual/en/function.gzcompress.php Thanks for the suggestion Viacheslav , but I'd trying to the create the complete

Re: [PHP] Database Administration

2010-09-22 Thread Tom Barrett
Hmm.. I am familiar with PMA. I would for the purpose of this project consider it too technical for the target user base. The point is to create a GUI layer that would manage these things. For example, the 'add client' screen would ask for four things; name, description, username and password.

Re: [PHP] Database Administration

2010-09-22 Thread Bastien Koert
On Wed, Sep 22, 2010 at 4:35 PM, Tom Barrett t...@miramedia.co.uk wrote: Hmm.. I am familiar with PMA. I would for the purpose of this project consider it too technical for the target user base. The point is to create a GUI layer that would manage these things. For example, the 'add client'

Re: [PHP] Copying an Object

2010-09-22 Thread Daniel Kolbo
On 9/22/2010 9:11 AM, chris h wrote: You could create a method of class B that takes an object of class A as a parameter and copies each property line by line (or method of class A that takes an object of class B...). If you don't want to add a method you could just do the same thing, but