Jump to content

[SOLVED] navigating directories


bcfantasy

Recommended Posts

I need to know how to display an image that is located in a different folder than the one my webpage is in.  For example, say I want to display image1.jpg on sample.php.  I store my images in mysite.com/images and the sample.php is located at mysite.com/very/deeply/buried/webpage/sample.php , how do I display image1.jpg?

 

I realize I could use

<img src="http://www.mysite.com/images/image1.jpg">

Is there a better/easier way?

Link to comment
https://forums.phpfreaks.com/topic/36964-solved-navigating-directories/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.