Time of Update: 2018-12-05
<?php/*許可權設計有一個全域的管理員root每個欄目有個管理員權限為其他許可權的合每單個許可權為2的倍數list/read 1add 2edit 2del 4all admin*/if( 5&2){ echo 1;}else{ echo 0;}/*簡單的許可權管理,有這個基本就夠用了, 不做更複雜的了,功能設計上不用考慮許可權,編碼的遵循一些規範,在頂層類裡,加個適配器*/?>
Time of Update: 2018-12-05
無意間,要準備做一個視頻的東西,所以硬著頭皮鑽研了下,本人,一點flash的東西都不會,到處了找些東西,弄明白了這個簡單的原理!首先我們要做一個 flv 的播放器,用flash做,這個東西網上挺多的,不要使用FLVPlayback這個組件,也許可以用,但是我不知道怎麼調用他的那個屬性。如果有知道的麻煩告訴我下,謝謝了我是使用一個自己做的辦法弄的參考 http://www.creeper.cn/blog/post/57.html
Time of Update: 2018-12-05
http://hi.baidu.com/juexin229/blog/item/408cbcd4c586bc2506088b6a.html用PHP的ob_start();控制您的瀏覽器cacheOutput Control 函數可以讓你自由控制指令碼中資料的輸出。它非常地有用,特別是對於:當你想在資料已經輸出後,再輸出檔案頭的情況。輸出控制函數不對使用 header() 或 setcookie(), 發送的檔案頭資訊產生影響,只對那些類似於 echo() 和 PHP
Time of Update: 2018-12-05
1.file_get_contents <?php $url = "http://www.jb51.net"; $contents = file_get_contents($url); //如果出現中文亂碼使用下面代碼 //$getcontent = iconv("gb2312", "utf-8",$contents); echo $contents; ?> 2.curl <?php $url = "http://www.jb51.net"; $ch = curl_init()
Time of Update: 2018-12-05
第一種偽靜態頁面(擬靜態)的方法(針對有伺服器許可權的):http.conf 裡 把mod_rewrite的#去掉htacc 把 前面的option 改為allRewriteEngine onRewriteRule ^/t_(.*).html$ /test.php?id=$1 輸出成html格式RewriteRule ^/t_(.*)/$ /test.php?id=$1 輸出目錄格式 *localhost/t_333/*第二種偽靜態頁面(擬靜態)的方法(針對無伺服器許可權的):在根目錄建檔案 .
Time of Update: 2018-12-05
1、下載FCKeditor 多國語言版2、解壓後為檔案夾減肥:刪除/FCKeditor/目錄下除fckconfig.js, fckeditor.js, fckstyles.xml, fcktemplates.xml,fckeditor.php五個檔案以外的所有檔案刪除目錄/editor/_source,_testcases(基本上,所有_開頭的檔案夾或檔案都是可選的),刪除/editor/filemanager/browser/default/connectors/下除PHP目錄的所有目錄刪除/
Time of Update: 2018-12-05
如何把二維數組儲存到cookie中呢?先把數群組轉換成字串,要用時再去掉斜線(為什麼會出現斜線呢?)轉換回來a.php<?$cart_info[0][0] = "1123";$cart_info[1][0] = "5334521";$cart_info[1][2] = "df";$cart_info[4][2] = "fefe";setcookie("xia",serialize($cart_info));?>b.php<?$other =
Time of Update: 2018-12-05
Notice: Use of undefined constant ALL_PS - assumed 'ALL_PS' in E:/Server/vhosts/www.lvtao.net/global.php on line 50 Notice: Undefined index: EaseTemplateVer in E:/Server/vhosts/www.lvtao.net/libs/template.core.php on line 51 Notice: Use of
Time of Update: 2018-12-05
網上找的方法
Time of Update: 2018-12-05
如果你安裝好了,那麼在C:windows下有個php.ini,應該改這個如果沒安裝好,那麼把php.ini-dist改為php.ini 複製到C:windows下面要顯示錯誤資訊,處理改設定,還要該IE設定工具/internet選項/進階/拉到最下面有個顯示友好的http錯誤資訊,去掉勾. PHP 的錯誤報表php.ini 檔案中有許多配置設定。您應當已經設定好自己的 php.ini 檔案並把它放在合適的目錄中,就像在 Linux 上安裝 PHP 和 Apache 2 的文檔說明中所示的那樣(。
Time of Update: 2018-12-05
strstr(string,string) = strchr(,) //從前面第一次出現某個字串的地方截取到最後strrchr(string,string) //從某個字串從最後出現的位置截取到結尾strpos(string,string[,int]) //某個字串第一次出現的位置strrpos(string,string) //某個字串最後一次出現的位置substr(string,int[,int]) //從指定位置開始截取字串,可以指定截取的長度。strlen(string)
Time of Update: 2018-12-05
/** *說明: 這個類完成縮圖的產生,支援頁面顯示和組建檔案*version 1.0*@author sanshi(三石)*QQ: 35047205*MSN: sanshi0815@tom.com*Create 2005/6/18********************************************************@param string $srcFile 源檔案 *@param string $dstFile 目標檔案*@param string
Time of Update: 2018-12-05
<?phpclass CreateHtml{ function mkdir( $prefix= 'article' ) { $y = date('Y'); $m = date('m'); $d = date('d'); $p=DIRECTORY_SEPARATOR; $filePath='article'.$p.$y.$p.$m.$p.$d; $a=explode($p,$filePath); foreach ( $a as
Time of Update: 2018-12-05
<?php/*@author sanshi QQ:35047205 Email:sanshi0815@tom.com MSN:sanshi0815@tom.com*/$string=md5(rand(1,1000));$string=substr($string,0,4);$len=strlen($string);$bordercolor = "#000000";$bgcolor = "#ffffff";//背景色$height = 30;$width = 60;$
Time of Update: 2018-12-05
/* 字串檢查類 *@author sanshi QQ:35047205 Email:sanshi0815@tom.com MSN:sanshi0815@tom.com*/class checkBase{ function checkBase() { } /* 用來檢查字串是否為空白 *@param $str 檢查的欄位 *@param $isStr 如果欄位有可能唯一字元是數字或者bool類型時使用 為空白的時候返回true */ function
Time of Update: 2018-12-05
用的軟體安裝php-4.3.4-Win32.zip帶gd庫c:/phpcp php4ts.dll 到 C:/WINNT/system32cp php.ini 到 C:/WINNT 安裝mysql-4.0.17-win.rarc:/mysqlApache HTTP Server 2.0.46安裝在D:/Program Files/Apache Group/Apache2下j2sdk1.4.2_05安裝在d:/j2sdk1.4.2_05Tomcat 5.0安裝在d:/Tomcat 5.0mysql-
Time of Update: 2018-12-05
<?php/** * Object * base class * @version 1.0.0 (Mon Aug 01 18:43:24 CST 2005) * @author sanshi */class Object{ /* 是否輸出調試資訊 */ var $debug = true; /** * Object * @version 1.0.0 (Mon Aug 01 18:49:48 CST 2005) * @author sanshi *
Time of Update: 2018-12-05
原來發表過一個脫離資料庫的分頁類,最近使用的時候發現有些時候搜尋的東西過於大的時候,採用url傳遞參數的方式,可能會有一定的影響或者叫已知的bug,這次做了一些擴充,同時相容了以前的模式,使用上面很簡單的,只需要多設定一個參數就可以了代碼如下:<?php/** * 功能: 分頁類,根據提供的資料總量和頁面大小 * 建立日期:Fri Apr 20 16:45:21 CST 2007 * 最後更新: * 作者: sanshi <sanshi0815@tom.com>
Time of Update: 2018-12-05
在一個項目裡用到這樣的東西,用另外一個服務做了一些事情,產生的檔案許可權,通過php 無法讀取,測試了很多種方式都沒能實現,在網上找了下,可以用c寫一個代理來實現,本人就實現了一下,果真可以。代碼如下:#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <unistd.h>#include <string.h>int main(int
Time of Update: 2018-12-05
<?php/** * 定義 Factroy 類 * * @Author: 小熊 * @Package: Core * @Copyright: NULL * @version: $Id: Factory.class.php 2007-6-20 09:50:00 $ */class Factory{ /** * 載入指定對象 返回對象執行個體 * * @Author: 小熊 * @Param: string $name * @Para