PHP使用上海交大Jaccount OAuth2.0 认证机制
1538浏览量if(!$_SESSION['HTTP_REFERER']){ $_SESSION['HTTP_REFERER'] = $_SERVER['HTTP_REFERER']; } if(isset($_SESSION['jaccount'])){//登录成功后 header("Location:".$_SESSION['HTTP_REFERER']); }
首页在头部写上这段代码,就是如果检测到已经登录,则跳转回来源页面(有时候长时间页面不操作会自动掉出自己网页的session)
作者:访客
linux php5.6/mysql5.6/apacheapa安装实例
2773浏览量cd /opt 3 ls 4 cd 5 ls 6 yum install -y httpd 7 wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm 8 yum localinstall mysql-community-release-el6-5.noarch.rpm 9 y
作者:访客
centos 6.5安装mysql5.6/5.7教程
1330浏览量yum list installed | grep mysql //查看以前安装的其他版本mysql
yum -y remove mysql-libs.x86_64 //移除现有的mysql版本
wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm yum localinstall mysql-community-release-el6-5.noarch.rpm yum repolist all | grep mysql yum-config-manager --disable mysql56-community //禁用5.6 yu
作者:访客
mysql 5.6/5.7 安装报错 MySQL Daemon failed to start
1389浏览量2016-08-04T12:22:25.702560Z 0 [ERROR] InnoDB: The Auto-extending innodb_system data file './ibdata1' is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages! 2016-08-04T12:22:25.
作者:访客
Postgresql 使用的一些问题
1411浏览量如何启动postgresql数据库服务?
/etc/init.d/postgresql-8.4 start
就可以了
网上说用 pg_ctl start 怎么试也不行。包括加入pg_ctl start -D 数据库目录也不行,如果不sudo执行提示权限不够,如果sudo执行提示不能用root用户执行,必须用进程所有者用户执行。搞了很久也没有搞明白。放弃!
postgresql中各文件的存放目录都在postgresql.conf中有描述,如果你不知道postgresql中某个对象在系统中的存放目录,甚至连postgresql.conf也忘了存放在哪里了,可以做如下处理。
一、执
作者:访客
php文件防盗链
1288浏览量<?php // /pic.php?url=xxx $url = $_GET["url"]; //$url = str_replace("http:/","http://",$url); $dir = pathinfo($url); $host = $dir['dirname']; $refer = $host.'/'; &nb
作者:访客
php 批量提交推送网址到百度蜘蛛
1069浏览量$p = $_GET['page']; //每次1000个 $arr = array(); for($i=0;$i<=1000;$i++){ $arr[] = 'http://www.xilibala.com/movie-read-id-'.($i+($p*1000)).'.html'; } $urls = $arr; $api = 'http://data.zz.baidu.com/urls?site=www.xilibala.com&token=3GaUTE4Bi3q0vB6w'; $ch = curl_init(); $options = array( CURLOPT_
作者:访客
php采集程序,php小偷程序教程
1310浏览量首先呢,我们必须的几个函数,下面所有的内容可以写在同一个页面上。
function preg_substr($start, $end, $str){ // 正则截取函数 $temp = preg_split($start, $str); $content = preg_split($end, $temp[1]); return $content[0];&n