Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要通过域名获取域的 IP 地址。
可以做到吗,在那种情况下,我该怎么做?
您可以使用以下代码:
<?php $ip = gethostbyname('www.site.com'); echo $ip; ?>
或者,您可以动态操作它...
<?php $url = $_GET['url']; $ip = gethostbyname($url); echo $ip; ?>
I have used the following code to play a sound:
<object> <param name="autostart" value="true"> <param name="src" value="bgmusic.mp3"> <param name="autoplay" value="t