Get domain name from full URL | Get full URL parameters in php

Get domain name from full URL | Get full URL parameters in php



Get domain name from full URL | Get full URL parameters in php


Code Example: 

$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";

$side_link =  $_SERVER['HTTP_HOST'];

Code Link:  https://drive.google.com/file/d/151NFXxuut6VGLdG9T9Mk4aAfTOYTxCh6/view



php get domain from url

php get full url with parameters

php get domain from url without subdomain

php get current url with query string

php get url path

php get domain name

php get all url parameters

get url after domain php


HOME 


Post a Comment

أحدث أقدم