[Phpmyadmin-devel] RFD: New feature, Interface implementation (not a feature request! :-)

Michal Cihar nijel at users.sourceforge.net
Tue Jan 28 16:15:04 CET 2003


Hi

Great to hear someone needs simmilar thing as me ;-). I thought about 
simmilar feature, but I haven't time to code it....

On Tuesday 28 January 2003 21:45, Garvin Hicking wrote:
[...]
> > For example, I have a field with binary data, I want to specify that
> > it is jpeg, but I might want to see the thumbnail or the full pic.
>
> This would be quite a great feature, but I can't think of it's
> implementation. This can't be used as easy as a 'return string -
> function($buffer)' replacement, because you would have to call a wrapper
> script, which then has to create a temporary image file, insert this into a
> <img ...>-Tag and afterwards somhow garbage-collect and delete the
> temporary file. Or is there a possibility yet to compatibly render inline
> binary pictures in HTML?

You would just put <img src="get_image.php?blahblahblah"> and the other (or 
same called with some parameters) php script will just return image (with 
correct content type).

[...]
> 'transformation_rule' will contain an id-reference to the table
> 'transformation_rules':
>
> TABLE 'transformation_rules'
> - transformation_rule [foreign key for 'transformations.transformation_rule
> - function_description
> - function_name
> - function_php

I thing that this should be in php code, not in database, as when you would 
upgrade phpMyAdmin, you would have to change this database....

-- 
Regards
	Michal Cihar
	nijel at users dot sourceforge dot net
	http://cihar.liten.cz




More information about the Developers mailing list