Jump to content


Photo

handling images?


  • Please log in to reply
2 replies to this topic

#1 arielmedel

arielmedel
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 18 October 2006 - 04:02 PM

How handle images in a way like CSS?

For example with CSS you just specify on top the URL where the CSS file is, and now you only have to assign a class to the divs, tables, etc. without having to write the all the path.

How can I put some kind of code that specifies the URL where the images are, so I just have to change that if I move the image sto another folder instead of having to change the link of each image?

#2 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 18 October 2006 - 04:05 PM

This isn't a php question, it's an HTML question, but I believe you can use the <base> tag.

<base href="http://www.mydomain.com/images">

Here's a further reference to it.

Regards
Huggie
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

#3 arielmedel

arielmedel
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 18 October 2006 - 04:23 PM

Huggie Bear:

Since I'm doing thsi site with php includes, and it's the first thing in php I do alone, I thought you'd have to use php too. But thanks for your answer!!! I'll look into it  ;D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users