摘要: 1 <?php 2 class Test { 3 public function async() { 4 5 $start = microtime(true); 6 $url = "http://waimai.baidu.com/waimai?qt=poisug"; //随意的一个接口 7 $i = 阅读全文
posted @ 2021-03-09 15:57 jiemoon2010 阅读(245) 评论(0) 推荐(0)
摘要: 1 <?php 2 $dbms='mysql'; //数据库类型 3 $host='127.0.0.1'; //数据库主机名 4 $dbName='test'; //使用的数据库 5 $user='root'; //数据库连接用户名 6 $pass=''; //对应的密码 7 $dsn="$dbms 阅读全文
posted @ 2021-03-09 15:55 jiemoon2010 阅读(76) 评论(0) 推荐(0)