Re: Loading an image file as a PHP file.
| From: | Cristian MARIN | Date: | Tue, 10 Jun 2003 09:30:32 +0000 |
| Subject: | Re: Loading an image file as a PHP file. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150872@lists.php.net to get a copy of this message | ||
You should make the maping some how between the images name(+location) and the numbers.
I see two solutions:
1. Use a database table in which the image number is the id
table images_img{
id_img, - the number you are sending
name_img - a name if you need this
path_img - the path to this file
}
You can dinamically create a gallery after or you can hardcoded every id in the pages you
needed. It's up to you what you need this for.
2. Create a file with an associative array between the id's and pathnames (it's a very bad
ideea)
I hope this is the answer at your question, if not send me a mail.
--
-------------------------------------------------
Cristian MARIN
InterAKT Online (www.interakt.ro)
+4021 411 2610
cristic@interakt.ro
"Philip J. Newman" <newmanpj@philipnz.com> wrote in message news:00c001c32f2c$ed904f30$0401a8c0@philip...
To Do:
I would like to call image /user/mysite/image_01.jpg using something like
/user/mysite/public_html/loadimage.php?image=1
is this a simple procedure or hard ...
any suggestions or someone want to point me in the right direcion/ Phil