php
hancongjuan2010
这个作者很懒,什么都没留下…
展开
-
同一个PHP页面连接两个数据库
<?php /** * @author blog.anchen8.net * @copyright 2016 */ $conn1 = mysql_connect("127.0.0.1", "root", "123456"); mysql_select_db("newwww", $conn1); $conn2 = mysql_c...原创 2016-12-09 16:04:26 · 578 阅读 · 0 评论 -
php获取系统时间不对应,相差8小时
一、获取时间、日期 $teeDate = date("Y-m-d"); $teeTime = date("H:i"); 二、hp环境默认时差与北京时间相差8小时,我们要想获取正确的时间就必须设置 date_default_timezone_set("Asia/Shanghai"); ...原创 2016-12-16 14:15:35 · 162 阅读 · 0 评论 -
php调用ws接口代码
一、定义变量 define("CUSTOMER_AIS", "http://localhost:8080/ais/customer"); 二、公用方法 class commodity { function mis_user($interfaceId,$arg){ //$arg = json_encode($arg);...原创 2016-12-16 14:20:04 · 1497 阅读 · 0 评论