7
These days I started a "little debate" here in IT on this subject. I realized that several functions, where we returned the image path (to the browser), was named getImageLink
.
For example:
public function getImageLink() {
return $this->base_url . '/imagens/' . $this->id . '.jpg';
}
The return of this would be:
'http://meusite/imagens/1.jpg'
Then I started thinking that maybe "link" referred to a "url" used with the tag <a>
. I do not know if my statement is correct, but in the end I decided to change the name of the methods, which have come to be called getImageUrl
.
I picked up the custom when listening to people talking "link" and "url" when it comes to the address of a website we typed in the browser’s navigation bar, for example.
Questions
From a programming point of view, I should call this "image path" (for the browser), "url" or "link"?
What is "link" and what is "url"? What is the difference between one and the other?
To be "link", it has to be something clickable?
Specifically about URL: http://answall.com/q/43224/101
– Maniero