Jump to content

issue while hosting a website


mariam

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/239675-issue-while-hosting-a-website/
Share on other sites

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/"

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.