Skip to content

How to find mysql server name in PHP?

<?php
echo $_SERVER['SERVER_NAME'];
?>
See also  How to catch mysql error in PHP?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.