请问连接数据库写ip地址和写localhost有效率上的区别嘛? 一般就用localhost了!哪个快慢你可以测试下嘛! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 测试了一下,看来还是有区别的。建议还是写localhost吧[dev@www2 ~]$ traceroute xxx.xxx.xxx.xxxtraceroute to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx), 30 hops max, 38 byte packets 1 xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) 0.031 ms 0.031 ms 0.012 ms[dev@www2 ~]$ traceroute localhosttraceroute to www2.mz16.cn (127.0.0.1), 30 hops max, 38 byte packets 1 www2 (127.0.0.1) 0.030 ms 0.014 ms 0.012 ms localhost127.0.0.1外网IP 严格地说 127.0.0.1 比 localhost 要快一些,localhost比127.0.0.1多一个本地解析步骤(打开hosts文件就可以看到)。 如果是linux,关掉网络用sock连更快 127.0.0.1有时候不能工作,建议还是localhost。 数组中 php 中文键名的事情 PHP 如何导入文件啊,然后将导入的文件进行分析 插入到数据库 请高手指点:网站内容搜索 一个判断条件 php运行问题 在smarty中怎么把新闻输出来啊 [*****醒目****]请问如何编写不定参数数目的函数? 我会在mysql数据库里删除一行记录,但在php页面里如何实现删除? mysql_query() 能否執行命令 load data file??? 请高手们帮忙,我现在数据库连不起来了,请大家看一看,小弟先谢了。 PHP中有没方法把视屏文件地址加密,就是在客户端原文件中看不到真实地址.?? 新手请教,如何判断查询结果为空
traceroute to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx), 30 hops max, 38 byte packets
1 xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) 0.031 ms 0.031 ms 0.012 ms[dev@www2 ~]$ traceroute localhost
traceroute to www2.mz16.cn (127.0.0.1), 30 hops max, 38 byte packets
1 www2 (127.0.0.1) 0.030 ms 0.014 ms 0.012 ms
127.0.0.1
外网IP