Re: [SMARTY] How I do this
| From: | Mark Rogers | Date: | Mon, 13 Jun 2005 20:00:46 +0000 |
| Subject: | Re: [SMARTY] How I do this | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12686@lists.php.net to get a copy of this message | ||
> Well I probe with one image put in the directory includes and
> all works fine. See the code below:
> CODE: <img src="../includes/edog_bg.jpg">
> exists antoher cause of this mistake??
Take a step backwards: try just loading the image in your browser without
the page which contains it.
In other words, put the URL http://your.site.com/includes/codigo.php into
your browser's address bar. You'll get one of three things:
1: A page not found error; make sure the address is correct (maybe you don't
need the "includes/" bit, maybe you need to move codigo.php under your
document root, somewhere, etc).
2: You'll get a PHP error, in which case you have the address right but the
code is not working (maybe a missing include or another code error); you
should be able to fix it from here.
3: You'll see the image.
If either 1 or 2 is true, fix them until you reach stage 3. Then make sure
the URL you have in your index.php (or whatever) matches the URL relative to
the root of your website (eg if the above URL is correct then the image URL
will be "/includes/codigo.php").
Mark Rogers,
More Solutions Ltd