摘要: 1.GET get.php [php] view plain copy <?php $host = 'demo.fdipzone.com'; $port = 80; $errno = ''; $errstr = ''; $timeout = 30; $url = '/socket/getapi.ph 阅读全文
posted @ 2017-05-22 16:45 左正 阅读(831) 评论(0) 推荐(1)
摘要: 方法1: 用file_get_contents 以get方式获取内容 <?php $url='http://www.domain.com/'; $html = file_get_contents($url); echo $html; ?> 方法2: 用fopen打开url, 以get方式获取内容 < 阅读全文
posted @ 2017-05-22 16:40 左正 阅读(988) 评论(0) 推荐(0)
摘要: WampServer默认的安装端口是80,容易和已安装的ISS等其他服务冲突,导致WampServer无法启动。 无法启动的现象如下: 1、apache服务无法启动。问题所在:80端口冲突。 2、在浏览器中输入本地IP地址,显示404错误或500错误。问题所在:授权限制。 3、在数据库管理中,连接M 阅读全文
posted @ 2017-05-22 16:40 左正 阅读(334) 评论(0) 推荐(0)