arielmedel Posted October 18, 2006 Share Posted October 18, 2006 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? Link to comment https://forums.phpfreaks.com/topic/24351-handling-images/ Share on other sites More sharing options...
HuggieBear Posted October 18, 2006 Share Posted October 18, 2006 This isn't a php question, it's an HTML question, but I believe you can use the [color=green]<base>[/color] tag.[code]<base href="http://www.mydomain.com/images">[/code]Here's a [url=http://www.wdvl.com/Authoring/HTML/Head/base.html]further reference[/url] to it.RegardsHuggie Link to comment https://forums.phpfreaks.com/topic/24351-handling-images/#findComment-110764 Share on other sites More sharing options...
arielmedel Posted October 18, 2006 Author Share Posted October 18, 2006 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 Link to comment https://forums.phpfreaks.com/topic/24351-handling-images/#findComment-110773 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.