1.

Solve : Picture to dll?

Answer»

Because my site has hundred of pictures (and that starts to hate me) I wanted a solution to have just one file. Then I saw in windows the following link res://C:\WINDOWS\system32\shdoclc.dll/search.gif

this link displayed the PICTURE, but it CAME out a dll file. So my question is: how do I put a lot of pictures to ONE .dll files. Do I need a program for it or do I need to program it by myselfHow are you with PHP, Blackberry? Quote

How are you with PHP, Blackberry?
quite good, why?Well you can do this quite easily with php.  Two options.

1. File-based

Pass the name of the file, or simply an index to a php script.  Eg: graphicslibrary.php?id=12.  Use the script to read in the IMAGE from your filesystem (doesn't even need to be in your webroot) and output it raw to the browser.  See the image functions.

2. Database-based

Store your images in a database (e.g. MySQL).  Pass the image id in a similar way to a php script.  This time the script grabs the image from the database, and then sends it raw to the browser.

If you learn first about sending HTTP headers, you'll find that this is a fairly useful and powerful thing to be able to do.  For example, on one of my websites, I have a php script which automatically GENERATES image-based subtitles, with a gradient background and a drop shadow.  All I have to do is: .  No need to spend ages creating lots of fiddly images.


Discussion

No Comment Found