Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

relative paths

Status
Not open for further replies.

Geates

Programmer
Aug 25, 2009
1,566
US
I am only generally familiar with IIS7 so I apologize if this is a rather fundational question.

I just installed IIS7 for use as a localhost with PHP for developing websites. I haven't had an issue in the past but I am confronted with it now. Namely, relative paths are not working (if that's even the problem). Perhaps an example will be beneficial.

Localhost - c:\development\websites
Images - c:\development\websites\myWebsite\images

Does not work
<img src="images/img1.png">

Works
<img src="c:\development\websites\myWebsite\images\img1.png">

This is not an issue with any of my other IIS7 implementations. Any suggestions?

-Geates

"I hope I can chill and see the change - stop the bleed inside and feel again. Cut the chain of lies you've been feeding my veins; I've got nothing to say to you!"
-Infected Mushroom

"I do not offer answers, only considerations."
- Geates's Disclaimer
 

Try <img src="../images/img1.png">



Mark

"You guys pair up in groups of three, then line up in a circle."
- Bill Peterson, a Florida State football coach
 
I can do that with some site but not with others (eg phpMyAdmin) perhaps it is a PHP config instead.

-Geates

"I hope I can chill and see the change - stop the bleed inside and feel again. Cut the chain of lies you've been feeding my veins; I've got nothing to say to you!"
-Infected Mushroom

"I do not offer answers, only considerations."
- Geates's Disclaimer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top