Hi,
I am new to PHP. I have a requirement. I have a url as http://localhost/TestApplication/Test.php. From the above url i want only "http://localhost". is there a method to get it?.
Thanks,
Raja
How to get the URL string?
Moderator: General Moderators
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: How to get the URL string?
Code: Select all
var_dump($_SERVER);mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.