当前位置:首页 > 2015年5月 第3页

php登录函数login session+mysql

admin10年前 (2015-05-11)1741
<?php // 为php和mysql剔除不安全html代码。 //http://blog.ddian.cn function safestrip($string){    $string = strip_tags(...

PHP分页函数仿Google分页

admin10年前 (2015-05-11)1705
/**  * 分页函数  * @param int $total    总页数  * @param int $pagesize 每页几条 &n...

php 使用curl模拟登录discuz以及模拟发帖

admin10年前 (2015-05-11)1755
<?php $discuz_url = 'http://127.0.0.1/discuz/';//论坛地址 $login_url = $discuz_url .'logging.php?action=login...

php 获取页面内容

admin10年前 (2015-05-11)1940
function get_contents($url){     if(function_exists('file_get_contents')){       &nbs...

php 获取当前网址

admin10年前 (2015-05-11)1789
function get_url() {     $sys_protocal = isset($_SERVER['SERVER_PORT']) && $_SERVER...

php 判断手机访问

admin10年前 (2015-05-11)1723
//手机来访 function is_mobile() {     $user_agent = $_SERVER['HTTP_USER_AGENT'];    &n...