Time of Update: 2016-06-23
部落格已經搬家,請訪問如下地址:http://www.czhphp.com 一:安裝mysql 下載:wget http://blog.s135.com/soft/linux/nginx_php/mysql/mysql-5.1.33.zip 安裝: unzip mysql-5.1.33.zip cd mysql-5.1.33.zip ./configure --prefix=/usr/local/mysql
Time of Update: 2016-06-23
'你好', 'b' => 'bb');//header('Content-Type:application/json; charset=UTF-8');echo json_encode($a)."\n";function decodeUnicode($str){ return preg_replace_callback('/\\\\u([0-9a-f]{4})/i', create_function( '$matches',
Time of Update: 2016-06-23
微軟和Zend合作以後,針對IIS推出了專門的FastCGI支援,在IIS下運行PHP,應該採用FastCGI方式來運行,而不是ISAPI方式。到了IIS7.0以後的版本,微軟更進一步,將FastCGI內建到IIS中,也就是說,只要把PHP的ZIP包解壓縮到本機任意目錄,配置好php.ini(不用複製到別的位置),然後,不用添加環境變數,不用添加ISAPI過濾,只要設定一個地方,就可以在IIS下完美地以FastCGI方式運行PHP。IIS 7.0 以上版本配置PHP的方式:1. 在“Turn
Time of Update: 2016-06-23
想使用8:UCS2格式編碼下行簡訊的時候,需要把UTF8轉換成Unicode的十六進位編碼,但是PHP沒有內建Unicode的支援,怎麼辦呢? /* * * 從UTF8轉換成unicode beta1.0 * @param mixed $string要轉換的字串, * @return unicode的十六進位編碼 */ function utf8_to_unicode_hex( $string ){ $length =
Time of Update: 2016-06-23
使用過songtaste.com 等後就好想學學php,但只是想著delphi還沒學懂就別想學其他的。就放下了。 今天又上了開心網,覺得功能真是好強大。還是想玩玩這個語言。 就從今天開始,到明年春節後,希望部署一個Web應用出來。 http://www.appservnetwork.com/modules.php?name=News&file=article&sid=46 下載了一個LAMP的安裝包。很方便,安裝就是了。 安裝在D盤下。啟動D:\AppServ\Apache2
Time of Update: 2016-06-23
1、 問題: 發現/usr/local/webserver/php/etc/php-fpm.conf檔案裡定義的開啟檔案描述符的限制數量是 51200 但用 命令ulimit -n查看,發現只有1024 我已在/etc/rc.local裡添加了 ulimit -SHn 51200 竟然沒生效 解決: vi /etc/security/limits.conf 檔案最後加上 * soft nofile 51200 *
Time of Update: 2016-06-23
LANG=C yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs
Time of Update: 2016-06-23
當變數的值為 NULL "\0" 時,isset() 返回 FALSE,其他都為 TRUE isset() 和array_key_exists() 對比
Time of Update: 2016-06-23
One of ASP.net’s most attractive features is the viewstate. It is a convienent way to store arbitrary data in a persistent mechanism. In fact, it’s rather like PHP’s $_SESSION array. There is, however, one difference. $_SESSION is unique to a user
Time of Update: 2016-06-23
Scraping Links With PHP by justin on August 11, 2007 FROM:http://www.merchantos.com/makebeta/php/scraping-links-with-php/#curl_content In this tutorial you will learn how to build a PHP script that scrapes links from any web page. What
Time of Update: 2016-06-23
簡介:這是php網站及php手冊的詳細頁面,介紹了和php,php, web php網站及php手冊有關的知識、技巧、經驗,和一些php源碼等。 class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=344672' scrolling='no'> 轉:http://zmingcx.com/ php-official-website-and-the- php-manual.html
Time of Update: 2016-06-23
之前在部落格園搜尋發現沒有用php實現的鏈表,在百度也幾乎沒有!所以在這把代碼貼上來! 這段代碼我認為有些缺陷,是什麼呢?就是類型的約束不夠嚴格!php本身是弱類型的語言! 所以在這一塊有些迷茫了!忘指點!本人系新手! 下面是代碼 節點類 class Node{ private $Data; // 節點資料 private $Next; //
Time of Update: 2016-06-23
安全模式下,PHP程式的行為被進行了限制,比如不能執行某些函數,只能開啟指定檔案夾的檔案等。 一般在你的主機提高個人網站,就是PHP的程式所有者不是你本人的時候,需要設定安全方式。 php.exe是提供來在命令列執行PHP檔案的工具,比如你在有檔案ABC.PHP,那麼你可以在CMD命令提示字元下執行命令php.exe abc.php來運行這個PHP檔案。
Time of Update: 2016-06-23
因為要做某項目的一個新功能,而這個新功能又是用公司新開發的架構做的。 該架構甚是NB啊,NB到什麼地方那。主要有一下幾點: 1、該架構無文檔; 2、該架構源碼中無注釋; 3、除了那幫主線開發人員我們部門很少有人熟悉使用; 如果想使用這個架構做東西,只有一條路:看源碼,先瞭解架構的實現原理,然後再用這個鳥玩意做東西。 當我看到一個處理request的類的時候,如下代碼映入眼帘: 1
Time of Update: 2016-06-23
這裡是一個PHP用COM操作windows下word的過程 PHP代碼 Version}"; // set the visibility of the application to 0 (false) // to open the application in the forefront, use 1 (true) $word->Visible = 0; // create a new document in Word
Time of Update: 2016-06-23
php函數 ini_set ini_set是php內建的用來設定php.ini設定檔的函數。 文法:ini_set("選項","值") 該函數用時最好放到php的指令碼最頭部(從該函數開始設定的參數生效,該指令碼結束失效) 比如: ini_set(''max_execution_time'', ''180''); 設定php的指令碼逾時時間為180秒 php程式員站 ini_set("asp_tags","On")
Time of Update: 2016-06-23
$_GET 變數用於收集來自 method="get" 的表單中的值。 $_GET 變數 $_GET 變數是一個數組,內容是由 HTTP GET 方法發送的變數名稱和值。 $_GET 變數用於收集來自 method="get" 的表單中的值。從帶有 GET 方法的表單發送的資訊,對任何人都是可見的(會顯示在瀏覽器的地址欄),並且對發送的資訊量也有限制(最多 100 個字元)。 例子 當使用者點擊提交按鈕時,發送的 URL 會類似這樣: http:
Time of Update: 2016-06-23
解決從Mysql讀取中文時的亂碼問題: 建表時先加上default charset=utf8; 插入中文資料之前(Mysql命令提示字元下)是用set names gb2312; 在php頁面中設定是mysql_query('SET NAMES UTF8'); 在php頁面(已設定為utf8後)中插入中文資料不會出現亂碼,應該插入資料庫的時候就是以utf8字元集插入中文資料的故不會出現問題!
Time of Update: 2016-06-23
For the new user, it's very common that will have problem to enable gd support in php, after fail and retry for hours, I figured out to use the steps below to get it work: 1. download/compile/install libpng 2. checkout the libjpeg if you can't
Time of Update: 2016-06-23
Anonymous (24-Apr-2010 05:43) The mysqli_close() function and object method only remove the ability to use the mysql object again in the script, essentially on the surface only nulling out all object parameters.