obay Posted September 5, 2007 Share Posted September 5, 2007 suppose in my root folder i have image.jpg page1.php ->subfolder and inside subfolder i have page2.php if i want to insert image.jpg into both page1.php and page2.php, and i want to use only one and the same image URL for both pages, how should i do that? <img src="??"> help? Link to comment https://forums.phpfreaks.com/topic/68001-what-image-url-to-use-for-pages-in-different-folderssubfolders/ Share on other sites More sharing options...
tippy_102 Posted September 5, 2007 Share Posted September 5, 2007 <img src="http://domain.com/image.jpg" alt="image"> Link to comment https://forums.phpfreaks.com/topic/68001-what-image-url-to-use-for-pages-in-different-folderssubfolders/#findComment-341863 Share on other sites More sharing options...
jitesh Posted September 5, 2007 Share Posted September 5, 2007 <img src="http://".$_SERVER['SERVER_NAME']."/image.jpg"> Link to comment https://forums.phpfreaks.com/topic/68001-what-image-url-to-use-for-pages-in-different-folderssubfolders/#findComment-341869 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.