Re: [SMARTY] How I do this
"Mark Rogers" <[email protected]>
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Organization | Quarella Ltd |
| Message-ID | <049501c57052$96800a50$1fc70005@mark> |
> 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 -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php