How to get full url in php

While creating a code we need get current URL of page. Today I share you how we can get full URL with help of PHP. $_SERVER is a super global variable who holds information about headers, paths, and script locations. With help of this PHP variable we can get current full URL easily. Follow this code:

Thanks for visiting. Happy Learing 🙂



One Comment

Add a Comment

Your email address will not be published. Required fields are marked *