㈠ thinkphp3.1.2完全開發手冊chm 怎麼打開
您好,正常來說手冊雙擊就打開了,如果裡面空白,請右鍵點擊手冊,屬性裡面有個鎖定,解除鎖定就有內容了,如果還沒有,就是您下的手冊有問題,重新下載
㈡ 為什麼下載一個chm格式的php手冊卻打不開啊
是這樣的,用ie或者chrome等瀏覽器下載文件的時候,都會給文件加上一個默認的保護,右鍵這個文件,打開屬性對話框,然後在第一個的選項卡的安全的部分,有個解除這個保護的按鈕,點下然後確定保存,再打開chm文件就不會有問題了。LZ試試吧
㈢ php實現redis資料庫指定庫號遷移的方法
這篇文章主要介紹了php實現redis資料庫指定庫號遷移的方法,涉及對於redis資料庫的操作技巧,非常具有實用價值,需要的朋友可以參考下
本文實例講述了php實現redis資料庫指定庫號遷移的方法,分享給大家供大家參考。具體如下:
redis普通的資料庫遷移,只能整個redis
save,或者利用主從,當然也可以安裝一個redis-mp,不過比較麻煩,這里提供一種php的腳本,實現指定庫號的遷移,其實也就是遍歷根據存儲類型,讀出來,插入新庫,效果是這樣:
代碼如下:
[root@localhost
~]#
php
1.php
1/407
101/407
201/407
301/407
401/407
PHP實例代碼如下:
代碼如下:
<?php
$from
=
'10.0.2.52:6379/7';
$to
=
'127.0.0.1:6379/7';
$from_redis
=
redis_init($from);
$to_redis
=
redis_init($to);
$keys
=
$from_redis->keys('*');
$count
=
0;
$total
=
count($keys);
foreach($keys
as
$key){
if(++$count
%
100
==
1){
echo
"$count/$totaln";
}
$type
=
$from_redis->type($key);
switch($type){
case
Redis::REDIS_STRING:
$val
=
$from_redis->get($key);
$to_redis->set($key,
$val);
break;
case
Redis::REDIS_LIST:
$list
=
$from_redis->lRange($key,
0,
-1);
foreach($list
as
$val){
$to_redis->rPush($key,
$val);
}
break;
case
Redis::REDIS_HASH:
$hash
=
$from_redis->hGetAll($key);
$to_redis->hMSet($key,
$hash);
break;
case
Redis::REDIS_ZSET:
$zset
=
$from_redis->zRange($key,
0,
-1,
true);
foreach($zset
as
$val=>$score){
$to_redis->zAdd($key,
$score,
$val);
}
break;
}
}
function
redis_init($conf){
$redis
=
new
Redis();
preg_match('/^([^:]+)(:[0-9]+)?/(.+)?/',
$conf,
$ms);
$host
=
$ms[1];
$port
=
trim($ms[2],
':');
$db
=
$ms[3];
$redis->connect($host,
$port);
$redis->select($db);
return
$redis;
}
?>
希望本文所述對大家的php程序設計有所幫助。
㈣ 為什麼我的PHP手冊,不顯示內容,求解
這個很簡喊純單,啟動這個手冊的時候,會有一個對話框,顯示信息意思大概為「為了安全起見,每次打開都要檢測之類的」,然後你把鉤鉤去掉就可以了!
另外一個解頃老決方法是:在資源管理器中右鍵點擊該 chm
文件,選擇屬性菜單,彈出的屬性對話框常規選項卡中,靠下部有個「解雀滲升除鎖定」按鈕,單擊該按鈕解除鎖定,再次打開 chm 文件就好了
㈤ 怎麼在php的官方網站下載手冊
曾經有過,估計是中文太精深......他們翻譯不過來....
㈥ 看不懂php代碼,有沒有解釋、翻譯代碼的工具我記得以前有用過,是瀏覽器還是什
我也學習php了,但是不是全靠英語基礎好。自己要學習記住單詞,你會發現裡面的代碼都在重復,沒有那麼多的單詞!所以我想說沒有一步登天的辦法,只有自己學會看代碼了才能往下繼續!
㈦ php怎樣使用redis緩存數據
<?php
/**
* Redis緩存操作
* @author hxm
* @version 1.0
* @since 2015.05.04
*/
class RCache extends Object implements CacheFace
{
private $redis = null; //redis對象
private $sId = 1; //servier服務ID
private $con = null;//鏈接資源
/**
* 初始化Redis
*
* @return Object
*/
public function __construct()
{
if ( !class_exists('Redis') )
{
throw new QException('PHP extension does not exist: Redis');
}
$this->redis = new Redis();
}
/**
* 鏈接memcahce服務
*
* @access private
* @param string $key 關鍵字
* @param string $value 緩存內容
* @return array
*/
private function connect( $sid )
{
$file = $this->CacheFile();
require $file;
if(! isset($cache) )
{
throw new QException('緩存配置文件不存在'.$file);
}
$server = $cache[$this->cacheId];
$sid = isset($sid) == 0 ? $this->sId : $sid;//memcache服務選擇
if ( ! $server[$sid])
{
throw new QException('當前操作的緩存伺服器配置文件不存在');
}希望能幫到你,我還在後盾網學習呢,有不會的可以問我,一會有空回答你。(^ω^)
㈧ PHP5程序設計和PHP手冊的區別
O'Reilly Learning PHP & MySQL 第二版
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=170283
PHP 5 傻瓜書
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=156854
PHP官方參考手冊 中文+英文CHM版
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=174312
Upgrading to PHP 5
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=172787
Wrox Beginning PHP 5
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=146843
PHP 5 Advanced
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152684
PHP 5與MySQL編程初學者指南
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152044
PHP 5和MySQL 5 從入門到精通 PDF文字版
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=166059
PHP 4.1 從入門到精通
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=159334
O'Reilly PHP Cookbook 第二版
http://bbs.topsage.com/dispbbs_123_171395_1.html
Wicked Cool PHP 附隨書源碼
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=185238
Pro PHP 模式、框架、測試等 [Apress出版]
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=185237
How to Do Everything with PHP and MySQL
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=175991
PHP & MySQL Web Development
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=175913
PHP Programming Solutions
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=173163
PHP Objects Patterns and Practice
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=173160
Learning PHP Data Objects
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=173151
Beginning PHP and MySQL E-Commerce從入門到精通 第二版
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=184708
Beginning PHP and PostgreSQL 8 從入門到精通
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=184152
Beginning Ajax with PHP 從入門到精通
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=183606
PHP技術內幕
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=159332
PHP最新參考手冊
http://bbs.topsage.com/dispbbs.asp?BoardID=123&ID=146233
PHP程序設計
http://bbs.topsage.com/dispbbs.asp?BoardID=123&ID=146171
PHP經典100例
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152400
PHP by Example
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=176304
Object Oriented PHP Concepts Techniques and Code
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152398
The PHP Anthology 第二版
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=167353
PHP API使用完全指南
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=164843
Wiley出版 Makeing Use of PHP
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=166790
PHP實例教程
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152574
PHP in Action
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152648
PHP+MySQL網路開發技術
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=156149
PHP設計模式構架師指南
http://bbs.topsage.com/dispbbs_123_171267_1.html
Dreamweaver CS3 with CSS, Ajax, and PHP
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=147123
AJAX and PHP Building Responsive Web Applications
http://bbs.topsage.com/dispbbs.asp?BoardID=123&ID=151261
Beginning Ajax with PHP
http://bbs.topsage.com/dispbbs.asp?BoardID=123&ID=146176
PHP Programming with PEAR
http://bbs.topsage.com/dispbbs.asp?BoardID=123&ID=148389
PHP MySQL and Apache自學教程
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=146232
PHP Apache和MySQL網頁開發初步
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=148871
24小時學會使用PHP MySQL Apache
http://bbs.topsage.com/dispbbs.asp?BoardID=123&ID=149004
PHP MySQL 網路應用程序開發核心
http://bbs.topsage.com/dispbbs.asp?BoardID=123&ID=149005
Professional LAMP - Linux,Apache,MySQL and PHP 5 Web Development
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152045
Setting Up LAMP - Getting Linux Apache MySQL and PHP Working Together
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=157654
Beginning PHP,Apache,MySQL Web Developmnet
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=151985
Beginning PHP and Oracle 從入門到精通
http://bbs.topsage.com/dispbbs_123_171292_1.html
PHP Data Objects for MySQL
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152186
MySQL and PHP from Scratch
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152162
Extending and Embedding PHP
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152160
Wiley出版 Secure PHP Development
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=165544
O'Reilly Building Tag Clouds in Perl and PHP
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152158
Wrox Professional Apache Tomcat 5
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152054
PHP MySQL編程初學者指南
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=158793
Beginning PHP and Oracle (PDF文字版)
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=159155
Advanced PHP for Web Professionals
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=159168
Essential PHP Security
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=175045
Pro PHP XML and Web Services
http://bbs.topsage.com/dispbbs_123_171266_1.html
Apache Server 2.0 實用指南
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=159297
Apache管理員手冊
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=159296
Apache使用指南與實現原理
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=159287
PHP專業項目實例開發 中文PDF版
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=159322
PHP高級開發技術與實例 中文PDF影版
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=159319
PHP 5 for Flash
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=159407
O'Reilly - Tomcat權威指南
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=160138
Wrox Professional Apache Tomcat 6
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=157418
Pro Jakarta Tomcat 5
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=160230
Foundations of PEAR - Rapid PHP Development
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=160612
Practical Web 2.0 Applications with PHP(Apress 2008最新版)
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=170237
Practical Apache Struts 2 Web 2.0 Projects
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=170311
Beginning Apache Struts從入門到精通
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=183597
掌握phpMyAdmin 2.11 PDF
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=184722