|
|
|
|
|
|
|
![]() |
#1 |
Mean people suck, nice people swallow, are you mean or nice?
|
Calling For An Image
Isn't there some way to call for an image one level up or something by using . . and /'s ?
|
![]() |
![]() |
![]() |
#2 |
You can't disprove anything with evidence that doesn't exist
Join Date: Mar 2003
Location: NW Minnesota - pop 865 +/- 1
Posts: 2,038
|
../
__________________
This is me Mark's-Links |
![]() |
![]() |
![]() |
#3 |
~Serving Up Sinful Sex ~
Join Date: Apr 2003
Location: Missouri City, Texas
Posts: 1,928
|
Try using ../
|
![]() |
![]() |
![]() |
#4 |
~Serving Up Sinful Sex ~
Join Date: Apr 2003
Location: Missouri City, Texas
Posts: 1,928
|
Ooops! I guess Dareutwo beat me to it.
![]() |
![]() |
![]() |
![]() |
#5 |
Mean people suck, nice people swallow, are you mean or nice?
|
OK, instead of putting in the entire path, just put ../ and the file name?
|
![]() |
![]() |
![]() |
#6 |
You can't disprove anything with evidence that doesn't exist
Join Date: Mar 2003
Location: NW Minnesota - pop 865 +/- 1
Posts: 2,038
|
<img src="../whateverimage01.jpg">
__________________
This is me Mark's-Links |
![]() |
![]() |
![]() |
#7 |
Mean people suck, nice people swallow, are you mean or nice?
|
Kewl, thanks!
|
![]() |
![]() |
![]() |
#8 |
Mean people suck, nice people swallow, are you mean or nice?
|
Will that work for calling from a folder? If so, how would I do it? Or does that require SSI?
|
![]() |
![]() |
![]() |
#9 |
There's Xanax in my thurible!
|
<img src="../folder/whateverimage01.jpg">
These are relative paths and have nothing to do with ssi. |
![]() |
![]() |
![]() |
#10 |
Mean people suck, nice people swallow, are you mean or nice?
|
Damn that's too cool!
|
![]() |
![]() |
![]() |
#11 |
Madness is like gravity. All it takes is a little... push.
Join Date: Feb 2006
Location: California
Posts: 1,679
|
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. ![]()
__________________
~Warm and Fuzzy. ![]() |
![]() |
![]() |
![]() |
#12 |
Mean people suck, nice people swallow, are you mean or nice?
|
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?
|
![]() |
![]() |
![]() |
#13 |
Madness is like gravity. All it takes is a little... push.
Join Date: Feb 2006
Location: California
Posts: 1,679
|
"../../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. ![]()
__________________
~Warm and Fuzzy. ![]() |
![]() |
![]() |
![]() |
#14 |
Registered User
|
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 |
![]() |
![]() |
![]() |
#15 |
Mean people suck, nice people swallow, are you mean or nice?
|
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.
![]() |
![]() |
![]() |
![]() |
#16 |
You can't disprove anything with evidence that doesn't exist
Join Date: Mar 2003
Location: NW Minnesota - pop 865 +/- 1
Posts: 2,038
|
Are the images in fact on the server in the folder 1 level up?
check your htaccess
__________________
This is me Mark's-Links |
![]() |
![]() |
![]() |
#17 |
Mean people suck, nice people swallow, are you mean or nice?
|
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.
|
![]() |
![]() |
![]() |
#18 |
Registered User
|
Call your host and make sure they dont have relative paths shut off. This is in option with most webservers. Not an option when you purchase the service, rahter and option that can be shut off after you in stall Apahce or IIS. Most leave it on. dareutwo is correct also, could be your htacess. Put in the full path on the page, save it then check if the images come up. If so, if I had to guess it's something in the code, like most things with code when it wont work it's something simple. You may just be missing ' or something.
|
![]() |
![]() |
![]() |
#19 |
Former pr0n slinger.
|
Could you show us the page where you're calling the image and the location where the image is?
|
![]() |
![]() |
![]() |
#20 |
Registered User
|
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.
|
![]() |
![]() |
![]() |
#21 |
Mean people suck, nice people swallow, are you mean or nice?
|
I'll try that
|
![]() |
![]() |
![]() |
#22 |
You can now put whatever you want in this space :)
|
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.
|
![]() |
![]() |
![]() |
|
|