path is the location of the resource (file / directory) in the file system . Just like the iOS file system, another environment file system can be the Windows, Unix, etc. The path may have spaces, such as /docs/random doc/ . (between random and doc)
URL is a link to a resource anywhere (file system, web HTTP, FTP, etc.). A URL cannot have spaces, such as a path.
Web Address: http://stackoverflow.com/
File URL: file://localhost/Users/username/docs/random%20docs/
path for above mentioned file URL : /Users/username/docs/random%20docs/
in the conditions of a layman:
URL = protocol (http, file, etc.) + host (domain name or IP address or local host) + path
Saurabh Hooda May 4 '13 at 17:24 2013-05-04 17:24
source share