This seems to be what you’re looking for, it will attempt to return the full hostname if possible:
More Related Contents:
- Determine in php script if connected to internet?
- How to limit items from for loop?
- Combine PHP array as something [duplicate]
- Resize image in PHP
- Does PHP have threading?
- How to parse a CSV file using PHP [duplicate]
- How to find entry by object property from an array of objects?
- How to create a HTML Table from a PHP array?
- Returning JSON from PHP to JavaScript?
- Checking if date is weekend PHP
- PHP Transliteration
- PHP Array Merge two Arrays on same key
- PHP: Using a variable inside a double quotes
- Least memory intensive way to read a file in PHP
- Get last insert id after a prepared insert with PDO
- How to add hyphen to regex
- How To Detect An Incoming Request (With PHP Script) From a CNAME Subdomain?
- Regular Expression to collect everything after the last /
- laravel 5.5 The page has expired due to inactivity. Please refresh and try again
- mysql select query within a serialized array
- Concatenation with addition in it doesn’t work as expected
- Proper URL forming with a query string and an anchor hashtag
- How to embed images in a single HTML / PHP file?
- Proper prevention of mail injection in PHP
- PHP readfile vs. file_get_contents
- Calculate an IPv6 range from a CIDR prefix?
- Get the latest file addition in a directory
- How can I pass an array of PDO parameters yet still specify their types?
- How do I get the byte values of a string in PHP?
- Merge 2d array rows with same column value and sum another column [duplicate]