Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.