Re: [SMARTY] html_image issue
| From: | Robert Amos | Date: | Wed, 29 Sep 2004 09:18:52 +0000 |
| Subject: | Re: [SMARTY] html_image issue | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11833@lists.php.net to get a copy of this message | ||
On Tue, 28 Sep 2004 17:17:45 -0700, Mike Evans <mike@arl.arizona.edu> wrote:
> Hi,
>
> I've successfully used html_image quite a bit in the past, but recently
> ran into this rather odd problem... I'm trying to pass an absolute path
> to an image in my local filesystem... say:
> /home/htdocs/mike/chandler2/htdocs/data/tn_test.jpg
If you think about it, what happens if you try {html_image
file="/home/john/porn/whatever.jpg"} and said image is outside the
DOCUMENT_ROOT?
If an image is outside the DOCUMENT_ROOT, the web browser wont be able
to see it, at all, which is why the DOCUMENT_ROOT is prepended before
getting an absolute path.
-bok
--
Xnyo - http://xnyo.odynia.org/