【发布时间】:2013-10-09 08:37:20
【问题描述】:
我正在使用 localhost 和 UniServer,运行 Apache 和 MySQL。 (没有用户名或密码)
我有代码new mysqli("http://localhost/us_phpmyadmin/","","","url_short"); 连接到我的本地主机服务器,但是当我尝试运行代码mysqli_query("INSERT INTO cut.it VALUES (NULL, $longurl, $shorturl)");
,错误php_network_getaddresses: getaddrinfo failed: No such host is known. 出现在页面上。为什么会这样?我该如何解决?
【问题讨论】: