![]() |
Calling For An Image
Isn't there some way to call for an image one level up or something by using . . and /'s ?
|
../
|
Try using ../
|
Ooops! I guess Dareutwo beat me to it. |loony|
|
OK, instead of putting in the entire path, just put ../ and the file name?
|
![]() |
Kewl, thanks!
|
Will that work for calling from a folder? If so, how would I do it? Or does that require SSI?
|
![]() These are relative paths and have nothing to do with ssi. |
Damn that's too cool!
|
You can even go so far as "../../../moving/forward/to/image.jpg" but that can get pretty confusing.
Though not as confusing as managing and troubleshooting SSI and htaccess. |loony| |
LOL I've got SSI down pretty well, wasn't as difficult as I thought. If this: ../images/boobs.jpg displays the boobs.jpg image in a folder named images, what does ../../ do?
|
"../../images/boobs.jpg" goes back two levels before it grabs the boobs. ;)
Personally, I only like to go back one level before I grab some boobs. I might be tall and skinny, but my arms are only so long. |loony| |
If your not sure ask your host what your sites are running on. Some time back there was a hack on a MS box (roughly 1 year ago) for paths. Believe it or not some hosts forget to run an IIS lockdown tool.
http://searchsecurity.techtarget.com...134252,00.html |
What would cause the ../ to not work? I used it to get some images for recip tables and it worked just fine. I copied and pasted the EXACT path and on a few recip tables it doesn't work. |huh
|
Are the images in fact on the server in the folder 1 level up?
check your htaccess |
Could you show us the page where you're calling the image and the location where the image is?
|
Quote:
|
Well crap. Everything is working now. I guess it had something to do with old shit still stored in a cache somewhere. As I said in another post I cleared out History, deleted cookies and offline content, but still was seeing old stuff. I even re-booted my PC. I guess overnight everything reset.
|
Sometimes doing the things you have don't wont work. I have found that out myself. But for some reason if you press f5, it's not really a refresh of the page. f5 will call the server and request and new changes to the page since your last visit. There were times I refreshed till my finger hurt, then I pressed f5 and everything I changed showed up.
|
I'll try that
|
Don't forget that using ../../image.jpg as your file basis can work fine for the page you are using. However, if you take that page later and copy it into a new folder then the relative paths back to the root may no longer be correct and fail to work properly. This is why using the absoute path is often the preferred choice.
|
All times are GMT -4. The time now is 07:27 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc