Articles tagged with: server
PHP, Tips and Tricks »
Let the page path be: http://localhost/test/admin/index.php
Get the server name/site name of your website:
echo $_SERVER['SERVER_NAME'];
Let the page path be: http://localhost/test/admin/index.php
Get the server name/site name of your website:
echo $_SERVER['SERVER_NAME'];