Re: [Vfs-devel] Update on file storage inside MySQL.
Status: Alpha
Brought to you by:
eesa
From: Abdul-Wahid P. <ee...@we...> - 2000-06-28 00:23:51
|
Hi Tony, Sorry to take so long to reply. Hecktic week. To make it worse I am leaving the country at the weekend for a week and have loads of things to prepare first. I think the first thing we need to do is get something running so that we can make a release with a mySQL port. I have nearly finished doing the class.DBI stuff but don't know if I will be able to finish before I go away. I might be able to get something done though whilst I am away. I will let you know when I have finished the class.DBI stuff and then you can submit your stuff to the CVS. Seeya, AW On Wed, 21 Jun 2000, Tony Kirk wrote: > Hey all! > > In the free time I've had this last week I've been working on a little > code for storing and retrieving files from inside MySQL and I've come up > with two ways of doing it that seem perfect. Here's the debate. The first > option is to use a new MySQL function called Load_File() which I just found > out was introduced in version 3.23. However 3.22 and < versions won't be > able to access this. So it a perfect solution but not a good idea as only > users of 3.23 and > would have access to the function. The other solution > would be to use the following code; > > $binarydata = addslashes(fread(fopen($filename, "r"), > filesize($filename))); > > Then insert that into the database. After checking to make sure the file > still exists and all that other good stuff :) What do you guys think? > > Regards, > Tony Kirk > > > _______________________________________________ > Vfs-devel mailing list > Vfs...@li... > http://lists.sourceforge.net/mailman/listinfo/vfs-devel > |