What does the ./ in the following code mean:
<img src="./image.gif">
I know that it will look in the current folder, but what does the extra ./ do, then?
nothing, you can kick it if you want...
the './' and '../' represents the current and its parent directory respectively.
So ./image.gif means the image.gif in the current direcotry.
'../image.gif' means the image.gif that is in the parent directory of the current one.
Originally posted by rohithmr the './' and '../' represents the current and its parent directory respectively. So ./image.gif means the image.gif in the current direcotry. '../image.gif' means the image.gif that is in the parent directory of the current one.
ok, thanks. I already know that ../ is the parent directory, / is the home directory, but just didn't know what ./ was.
oh well then:
/ means home directory
./ means current directory
../ means parent directory
Yes, I already know now lol
Like DOS you can do ../../../this.php and ../another_folder/this.php
too
Yes, I already know all of that. Could someone close this thread? :rolleyes:
Meh, I add things like that for other peoples future reference more than anything (K)
Yep, I understand.