View Single Post
Old 03-01-2009, 10:05 AM   #2 (permalink)
ftaylor
.scot
 
ftaylor's Avatar
 
Name: Finbarr Taylor
Last Online: 11-11-2009 07:46 AM
iTrader: (4)
Join Date: Apr 2008
Posts: 468
DNF$: 4,244
Location: Glasgow
Country:

Send a message via MSN to ftaylor

Lets say your server has a file structure like this:
Code:
/home/your_account_name/public_html/phpbb2/images/an_image.png

(ABSOLUTE) phpbb2 root path =  /home/your_account_name/public_html/phpbb2/
If you want to access files RELATIVE to that root path, they can be srced directly such as <img src=images/an_image.png>. It just means, if you want to src an image file, you only need to provide the part of the file location that is after the phpbb2/ folder.

An alternative file structure: What if you have the images folder outside of the phpbb2 folder?
Code:
/home/your_account_name/public_html/phpbb2/
/home/your_account_name/public_html/images/
to access the images folder from the phpbb2 root folder you need to specify the file source like this:

src="../images/an_image.png" - the ".." means go up one folder.
Hope this helps.
__________________
GlasgowSEO.com is on auction on Sedo! Rank 2 on Google for 'glasgow seo'. CPC £3.35/$5.31. High advertiser competition. Glasgow is Scotland's largest city with over 1,000,000 inhabitants.

Last edited by ftaylor; 03-01-2009 at 10:08 AM..
ftaylor is offline   Reply With Quote