• P

    Wicked Cool PHP 文檔

    PHP is an easy-to-use scripting language perfect for quickly creating the Web features you need. Once you know the basics of how the language works, wouldn't it be great to have a collection of useful scripts that solve those tricky problems and add interesting functionality to your site? We thought so, too.

    jasonyu 2010-09-19   3608   0
    PHP  

    php日期加減 代碼段

    對于每天的統計數據,我們日期 date("Ymd") 轉換成整型來作為數據庫的主鍵,所以在尋找一段時間統計數據的時候需要用到時間的加減; 例如,30天內的數據 function getData($writetime , $limit){ $start_unix = strtotime($start); for ($i = 0; $i < $limit; $i++) { $writetime = d

    ccpp 2015-01-04   1165   0
    PHP  

    MongoDB操作PHP 代碼段

    仿寫CI的,帶測試實例。 mongo_config.php php $config["host"] = "localhost"; $config["user"] = ""; $config["pass"]

    fg360 2015-01-04   7777   0
    MongoDB  

    php讀寫文件代碼 代碼段

    save_file.php代碼 php session_start(); $handle = fopen($_POST['original_file_name'], "w"); $text = $

    lpkde 2015-01-18   1089   0
    PHP  

    php操作SVN類 代碼段

    php /** * * This class for execute the external program of svn * * @auth Seven Yang

    6e72 2015-01-22   1471   0
    PHP  

    php 抓取圖片 代碼段

    php 獲取網站圖片并存入本地文件 php /** * Created by PhpStorm. * Date: 15-2-9 * Time: 下午3:10 */ for($i=0;$i<1000;$i++){

    ef4w 2015-02-09   1339   0
    PHP  

    PHP 文件上傳示例 代碼段

    Select a file to upload:

    phpde 2015-03-17   950   0
    PHP  

    php post json數據 代碼段

    function http_post_data($url, $data_string) { $ch = curl_init(); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); curl_setopt

    y3c5 2015-05-11   952   0
    PHP  

    php MIME類型數組 代碼段

    這個數組包含了常見的MIME類型,如果你需要做文件下載,可以通過這個數組查看文件擴展名,判斷是否可以下載 $mime_types = array("323" => "text/h323", "acx" => "application/internet-property-stream", "ai" => "application/postscript", "aif" => "audio/x-aiff

    jphp 2015-05-11   1007   0
    PHP  

    PHP 文件的基本操作 代碼段

    php //文件的基本操作 //fopen() 打開一個文件 //使用絕對路徑打開一個文件,選擇只讀模式,并返回資源$handle $handle=fopen("D:/lamp/apache2/htdocs/test/file

    mmxn 2015-05-20   966   0
    PHP  

    PHP解壓ZIP文件 代碼段

    return TRUE; }else{ return FALSE; } } 用法: php unzip('test.zip','unziped/test'); //File would be

    gw23e 2015-08-09   770   0
    PHP  

    PHP 圖片水印類 代碼段

    置(圖片水印和文字水印都支持)文字 水印的字體、顏色、大小設置圖片水印的背景透明 [PHP]代碼 php /** * 加水印類,支持文字圖片水印的透明度設置、水印圖片背景透明。 * 日期:2011-09-27

    BraydenSnip 2016-01-19   832   0
    PHP  

    php 操作mysql 代碼段

    代碼: php header('Content-Type:text/html;charset=utf-8'); // 數據庫地址 define('DB_HOST','localhost'); //數據庫用戶名

    BernardHage 2016-02-05   997   0
    PHP  
    P4

      PHP 命名規范 文檔

    $c; int $i; float $myWidth; 5 實例變量 大小寫規則和變量名相似,除了前需要一個下劃線 int $_employeeId; String $_name; Customer $_customer;

    purewater 2014-06-29   3274   0
    PHP開發   PHP  
    P11

      php基礎入門 文檔

    ?Php 語法入門 1:通常我們所寫的PHP程序文件后綴, .php 2:php語言的開始標記" ' 3: php語句 一個語句可以理解為讓php解釋器執行的一個命令. 語句必須以";"結束 用{}包圍起來作為復合語句

    YJGYAPWK 2013-02-04   3173   0
    P13

      PHP 編碼規范 文檔

    ?編碼規范 A1.1 適用范圍 本文檔提供的代碼規則適用于所有 PHP 項目,意在幫助新手在編程風格上養成良好的習慣,也可以作為部分軟件公司中項目團隊的參考文檔,根據自己公司團隊的特點進行部分修改。 A1

    ccav 2013-10-13   3152   0
    PHP開發   PHP  

    PHP框架 phpDays 經驗

    phpDays 是一個靈活的 PHP 5 的快速Web網站開發框架。包含 MVC 架構、Ajax支持、YAML 配置、數據庫抽象層 (MySQL, PostgreSQL, MS SQL, 等等.)、提供一些優秀的模型、快速指南、日志等。

    fmms 2012-04-04   12016   0
    PHP   Web框架  

    PHP框架 Luta 經驗

    Luta framework是一個PHP5開發框架基于Zend Framework采用類似于Ruby on Rails的架構。 MVC; User authentication and permission

    fmms 2012-04-27   14561   0
    PHP   Web框架  

    WebSocket 的 PHP 實現 - phpwebsocket 經驗

    從名字上也可看出,這是一個 WebSocket 的 PHP 實現。 示例客戶端代碼: var host = "ws://localhost:12345/websocket/server.php"; try{ socket

    jopen 2012-05-31   121050   0

    PHP框架 SlightPHP 經驗

    SlightPHP是一個輕量級的PHP框架,支持PHP5及以上版本。 主要特點 1 獨有的"框架"與"plugins"分離方式,與現在主流框架完全不同,把核心框架與其它功能獨立分開,靈活性大,耦合度小,很方便移植

    jopen 2011-12-24   31872   0
    PHP   Web框架  
    1 2 3 4 5 6 7 8 9 10
  • sesese色