首页 > file

mysql_connect提示

连接代码:

Make a phpinfo() page.  Look for 'mysql.default_socket', 'mysqli.default_socket',and'pdo_mysql.default_socket'.  Remember their value; this is where PHP is trying to connect to MySQL.

阅读全文

file_get_contents() 与file的区别

以前没注意可以使用file这个函数了,今天在做一个php把txt文本数据入导到数据库开始我是用file_get_contents(),把数据保存到变量再用explode处理,但后来在网上找到到关于file函数的用法,确实觉得file函数确实漂亮,好使用,下面我们来看看。

阅读全文