I'm restructuring a website and I am putting .php files in a lower directory than the root directory. My images directory is one level lower than the root directory. Is there a way I can set the image directory to the root image directory. For example, I have a file called golfDevelopment.php stored in the golf-development directory and if it is accessed via the internet, it would be
www.mysite.com/directory/file.php. My images directory if accessed would be
www.mysite.com/images/. Now if I want to access any images from this file, it would look like this:
<img src="../images/myimage.jpg">
I want to be able to access an image by typing this:
<img src="images/myimage.jpg">
I would like to access my images like this regardless of what level my .php files are on. Can someone help me?