mariam Posted June 17, 2011 Share Posted June 17, 2011 i have designed a website layout in adobe photoshop cs5... i did slicing and saved it with "html and images" option and saved it in an images folder in my hard disk...a html file was also created automatically with it.. the slices are linked with other web pages.. it works fine when i load the page on local host after the site is hosted at 000webhost.com...the sliced images do not apper; Is there anyway, while I am creating slices in Illustrator, to set that up so I don't have to go through the page source html and change every single slice image? For example, the page source shows this img src="images/header.png" width="155" height="8" alt="" after hosting the site, do i need to upload every image in the file manager and change all image paths individually like: img src="http://icyourheart.webuda.com/bluelines.jpg" Or is there an easier way to do this all together? in php code please help Quote Link to comment https://forums.phpfreaks.com/topic/239675-issue-while-hosting-a-website/ Share on other sites More sharing options...
RussellReal Posted June 17, 2011 Share Posted June 17, 2011 in your html if it shows your images with a relative path "images/whatever.jpg" the file will be requested relative to the directory which holds the html file you're currently viewing if your index.html is in http://yourdomain.com/foo/index.html then the images will try find themselves in http://yourdomain.com/foo/images/bar.png but in index.html all you're going to find is src="images/bar.png" because it is relative to your index.html (hence, relative url) I suggest you move all of your images into "images/" Quote Link to comment https://forums.phpfreaks.com/topic/239675-issue-while-hosting-a-website/#findComment-1231234 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.