Home >Backend Development >PHP Tutorial >php gets server side ip address
<code><span>echo</span> gethostbyname(<span>$_SERVER</span>[<span>'SERVER_NAME'</span>]);</code>').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });
The above introduces how to obtain the server-side IP address in PHP, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.