Re: Loading an image file as a PHP file.
| From: | Cristian MARIN | Date: | Tue, 10 Jun 2003 12:08:15 +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-150889@lists.php.net to get a copy of this message | ||
You can use the following code also:
for url www.yoursite.com/index.php?image=1
<?php
if (isset($HTTP_GET_VARS['image']) && $HTTP_GET_VARS['image']
>0){
?>
<img src="/user/mysite/image_<?php echo
$HTTP_GET_VARS['image']?>.jpg">
<?php
}
?>
and the /user/mysite/image_1.jpg will be loaded for image=1 or image_2.jpg for image=2 ... and so on
--
-------------------------------------------------
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