
php
少年强则国强
这个作者很懒,什么都没留下…
展开
-
CURL抓取网页内容并用正则提取。
<?php header("Content-Type:text/html;charset=UTF-8"); /* * CURL网页抓取 * */ class Curl{ var $setopt; var $data; function __construct($url){ $this->setopt =array( CURLOPT_URL =>原创 2013-01-14 17:58:22 · 11416 阅读 · 0 评论 -
Ubuntu 12.10 安装nginx后报502错误
首先来让我们看看之前得配置。关于PHP一块的配置。 location ~ \.php$ {try_files $uri =404;fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;include fastcgi_params;} 问题其实出现在 fastcgi_pass得配置上面。 在ubuntu 12.10安装了php5-fpm转载 2013-10-19 13:47:52 · 1120 阅读 · 0 评论