Re: New Cache and Mail_Queue MDB Containers

From: Date: Tue, 22 Oct 2002 20:31:52 +0000
Subject: Re: New Cache and Mail_Queue MDB Containers
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10212@lists.php.net to get a copy of this message
22/10/2002 22.31.52 > Lorenzo Alberton wrote: > > I'll take a look at it today evening or tomorrow. > Code looks good. I'm never using MDB but it's good time to start > doing this ;) Yeah, It's REALLY worth a look... Manuel and Lukas have done GREAT things... > If you agree i could move your "usage example" to Queue.php? That's fine for me. But I don't remember if $container_options array is compatable with other containers, in particular with DB... better if you have a look. Everything else should be ok for every Mail_Queue object... Uh, if you want to improve portability, you should change your mysql schema to this: CREATE TABLE mail_queue ( id int NOT NULL default '0', create_time datetime NOT NULL default '0000-00-00 00:00:00', time_to_send datetime NOT NULL default '0000-00-00 00:00:00', sent_time datetime, id_user int NOT NULL default '0', ip varchar(20) NOT NULL default 'unknown', sender varchar(50) NOT NULL default '', recipient varchar(50) NOT NULL default '', headers longtext NOT NULL, body longtext NOT NULL, try_sent int NOT NULL default '0', delete_after_send char(1) NOT NULL default '1', UNIQUE id (id), KEY time_to_send (time_to_send), KEY id_user (id_user) ); [As you can see, no big changes, just some small adjustments...] Sequence is ok. > > > I think cvs account could be very helpful especially if you are > > > developer for existing packages. > > > > > Yeah, but I haven't managed to install a CVS manager, yet... doh! > > > It's very simple. Just install WinCVS. If you don't familiar with cvs > create some project on sourceforge.net and get there cvs account > first. You could test and learn everything there. After this it's > piece of cake. I'll try that, thanks for the tip. > If you want i could add this mdb cotainer to CVS instead of you. That would be a lot faster, if you have time, thanks. I'm afraid I won't be able to play with CVS until past my exams... :-) >Where i should put mail_queue_schema.xml? A good place would be a subdir "docs", along with the usage example... But it's not mandatory. It's important to specify the location in mdb. php source, though, so anyone can find it easily... > And the main thing. Do you want to be contributor or developer > Mail_Queue class? What do you mean? :-) Regards, Lorenzo --- [Quipo ISP - Questa E-mail e' stata controllata dal programma Declude Virus] [Quipo ISP - This E-mail was scanned for viruses by Declude Virus]

« previous php.pear.dev (#10212) next »