Blade Maker Posted April 23, 2011 Posted April 23, 2011 (edited) Are you getting an error? Edit: nvm I see whats going on, what about using the url? not an option? Well then try this: <img src=\"/img/pmg.png\" al\"pm" /> Let me know if it works. Edited April 23, 2011 by Blade Maker Quote
rulerofzu Posted April 23, 2011 Posted April 23, 2011 eewww I dislike the use of \ / for such things. I think your much better putting images in the directory its supposed to be in. Makes life much easier in the end. Otherwise your image directory contains a silly amount of images Quote
Blade Maker Posted April 23, 2011 Posted April 23, 2011 Try with the include: include "/file/file.ext"; Quote
Djkanna Posted April 24, 2011 Posted April 24, 2011 Where is the image folder located? <img src="core/img/pm.png" alt="Somthing" /> Quote
a_bertrand Posted April 26, 2011 Posted April 26, 2011 It's certainly easier to code with, yet... it will end up with a lot of files in the same directory. Think wisely if this is what you want as once the game is running you hardly move to a more structured solution. Quote
lucky3809 Posted May 10, 2011 Posted May 10, 2011 (edited) for each directory you add ../ YOU have : include "../core/top.php"; SHOULD be : include "/../top.php"; (guessing your core directory is in your root directory, if its not and its in another directory above the root add another ../before your php page...) you would not add core or the directory name... as for your images, you would add them as /images/pic.png a slash before the image directory... So your line : <img src=\"img/pm.png\" alt=\"pm\"/> should be : <img src="/img/pm.png" alt="pm"/> Edited May 10, 2011 by lucky3809 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.