35 Star 69 Fork 24

jhasheng / SEO-Tool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.php 795 Bytes
一键复制 编辑 原始数据 按行查看 历史
jhasheng 提交于 2013-10-26 16:19 . update project
<?php
// 定义项目名称
define ( 'APP_NAME', 'SEO' );
// 定义项目路径
define ( 'APP_PATH', './' );
// 开启调试模式
define ( 'APP_DEBUG', TRUE );
// 开启url重写功能
//define ( 'URL_REWRITE',2);
// 加载框架入文件
require 'ThinkPHP/ThinkPHP.php';
/*
$url = "http://www.tudou.com/";
$timeout = 10;
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)";
$ch = curl_init ();
curl_setopt ( $ch, CURLOPT_URL, $url );
curl_setopt ( $ch, CURLOPT_TIMEOUT, $timeout );
curl_setopt ( $ch, CURLOPT_HEADER, 0);
curl_setopt ( $ch, CURLOPT_USERAGENT, $agent );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt ( $ch, CURLOPT_FOLLOWLOCATION, 1 ); // 是否抓取跳转后的页面
echo (curl_exec ( $ch ));
*/
PHP
1
https://gitee.com/jhasheng/SEO-Tool.git
git@gitee.com:jhasheng/SEO-Tool.git
jhasheng
SEO-Tool
SEO-Tool
master

搜索帮助