User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

path_and_url [2014/01/29 18:04] (current)
Line 1: Line 1:
 +====== PATH and URL ======
 +It's a bit astonishing but looks like some people confuse URL and PATH.
 +[[http://​​wiki/​URL|URL]] - is something like http://​​blabla/,​ ie a place on the internet
 +[[http://​​wiki/​Path_(computing)|PATH]] - is a position of a file on a disk
 +For example
 +Usually domain'​s folder at your server has a path like /​home/​user/​​. ​
 +Let's say there'​s a file named 1.html. ​
 +It would have a PATH  /​home/​user/​​1.html
 +and URL - http://​​1.html
 +Периодически возникают вопросы по относительным и абсолютным путям. Относительный путь - это путь относительно текущего положения в системе,​ оно может менятся. Путь вида /​home/​user/​​1.html ​ (тут / в начале пути указывает на корень файловой системы) - это абсолютный путь, он не меняется.
 +That's why we have 2 settings to save thumbs.
 +  * PATH where we are going to store files , for example ​ /​home/​user/​​thumbs/​
 +  * and URL  like http://​​thumbs to get real URL thumb which is sometimes impossible to get from PATH (yes, URL is pretty obvious in this example, but it's not always this way.
path_and_url.txt · Last modified: 2014/01/29 18:04 (external edit)