Posted by Chung Leong on 04/16/06 21:25
Areric wrote:
> Chung,
>
> Im trying to break up as much as possible. This particular library I
> really dont want to be dependant on any specific database
> implementation. Im trying to abstract that out so i can reuse this
> stuff independanly.
>
> My DisplayImage.php script is dependant on the DB but not my
> imagemanipulation script.
>
> Good idea though, im wondering if instead of returning an image object
> i could just return the string itself.
In that case a slicker approach is to define a stream wrapper that
reads from the database. See
http://fi.php.net/stream-wrapper-register/.
[Back to original message]
|