Today, We want to share with you uri vs url.In this post we will show you uri, url, urn, hear for what is uri? we will give you demo and example for implement.In this post, we will learn about Get the full URL in PHP with an example.
What the difference is between a URI and a URL
uri vs url vs urn
- URI => Uniform Resource Identifier Identifies
- URL => Uniform Resource Locator
- URN => Uniform Resource Name
Example of URL:
This example URL has a folder but no extension
https://career.pakainfo.com/category/heavy-industries/ https://www.pakainfo.com/ifsc/what-is-my-screen-resolutionhttps://pakainfo.com/tools/word-counter https://www.pakainfo.com/tools/online-text-case-converter
This example URL has no folder
https://www.pakainfo.com/what-is-sap.html https://www.pakainfo.com/what-is-my-screen-resolution.html
This example URL has no extension
Laravel Custom Login Registration Example TutorialPayPal Referral & Earn 2020: $100 Referral Link | Earn Upto $100Google Adsense Tutorial with How to Make Money?Set Browser For GET AdSense HIGH CPC ADS Step By Step
Example of URI
No protocol mentioned
www.pakainfo.com
Domain not mentioned
what-is-sap.html
Protocol mentions
ldap://[2001:db8::7]/c=GB?objectClass?one mailto:[email protected] tel:+1-816-444-7858 telnet://192.0.2.28:80/
Examples
mailto:[email protected]
(URL due to themailto:
protocol)http://www.ietf.org/rfc/rfc2396.txt
(URL due to thehttp://
protocol)urn:ietf:rfc:2648
(URN as it does not specify a locator)urn:isbn:0508672084
(URN as it does not specify a locator)
URL — Uniform Resource Locator
http://domain-name.com/mypage.html
ftp://domain-name.com/download.zip
mailto:[email protected]
file:///home/user/file.txt
tel:1-888-444-9898
http://domain-name.com/resource?foo=bar#fragment
/other/link.html
(A relative URL, only useful in the context of another URL)
I hope you get an idea about uri vs url.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.