• PHP緩存類 代碼段

    參數詳解如下: 第一個參數: 緩存二級目錄 第二個參數: 緩存時間? 默認1800 第三個參數: 是否需要三級目錄? 0:不需要? 1 需要? 默認0 第四個參數: 緩存后綴? 默認 .html 調用方法: $cache = new php_cache('index'); $cache = new php_cache('index',1800); $cache = new php_cache('i

    lpki123 2015-03-03   1168   0
    jQuery  

    PHP壓縮圖片 代碼段

    function scale_dimensions_within_limits($w,$h,$max_w,$max_h){ // $w is the width of the current rectangle // $h is the height of the current rectangle // $max_w is the maximum width that an image can

    phpde1 2015-03-17   952   0
    PHP  

    php的文件上傳示例代碼 代碼段

    <html> <head> <title>圖片上傳</title> </head> <body> <form enctype="multipart/form-data" method="post" name="upform"> 上傳文件:<input type="file" name="upfile" value=""> <input type="submit" value="上傳"><br> <

    n7w77 2015-03-19   816   0
    PHP  

    php圖片加水印類 代碼段

    自己寫的一個圖片加水印類,暫時只支持水印圖片,水印文字的還沒有完善 代碼不是很完善,歡迎大家交流指正! 調用方式: 先包含類文件 然后實例化類: $img = new Images; 然后提供圖片: $img->imgpath(原圖片路徑及名稱,水印圖片路徑及名稱); 之后開始加水印: $img->send(); 說明: send( strimg filename ) 這個方法有一個函數,可以省略

    cp5m 2015-04-23   937   0
    PHP  

    php的zip壓縮代碼 代碼段

    <?php $error = ""; //error holder if(isset($_POST['createpdf'])){ $post = $_POST; $file_folder = "files/"; // folder to load files if(extension_loaded('zip')){ // Checking ZIP extension is available i

    n6bg 2015-04-29   797   0
    PHP  

    PHP 常用的header頭部定義 代碼段

    <?php header('HTTP/1.1 200 OK'); // ok 正常訪問 header('HTTP/1.1 404 Not Found'); //通知瀏覽器 頁面不存在 header('HTTP/1.1 301 Moved Permanently'); //設置地址被永久的重定向 301 header('Location: http://www.ithhc.cn/'); //跳轉到一

    mmxn 2015-05-20   6727   1
    PHP  

    PHP解析 JSON 數據 代碼段

    $json_string='{"id":1,"name":"rolf","country":"russia","office":["google","oracle"]} '; $obj=json_decode($json_string); //print the parsed data echo $obj->name; //displays rolf echo $obj->office[0]; /

    gw23e 2015-08-09   907   0
    PHP  

    PHP解析 XML 數據 代碼段

    $xml_string="<?xml version='1.0'?> <moleculedb> <molecule name='Benzine'> <symbol>ben</symbol> <code>A</code> </molecule> <molecule name='Water'> <symbol>h2o</symbol> <code>K</code> </molecule> </mole

    gw23e 2015-08-09   893   0
    PHP  

    PHP清除html格式的代碼 代碼段

    一個理想的去除html包括空格css樣式、js 的PHP函數。 $descclear = str_replace("\r","",$descclear);//過濾換行 $descclear = str_replace("\n","",$descclear);//過濾換行 $descclear = str_replace("\t","",$descclear);//過濾換行 $descclear =

    jopen 2015-10-14   1627   0
    PHP  

    PHP的AES加密類 代碼段

    PHP的AES加密類 aes.php <?php /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ?*/ /* ?AES implementation in PHP (c) Chris Veness 2005-2011. Right of free us

    Roy91E 2016-01-21   2116   0

    PHP 實現文件下載 代碼段

    [PHP]代碼 /** * Downloader * * @param $archivo * path al archivo * @param $downloadfilename * (null|string) el nombre que queres usar para el archivo que se va a descargar. * (si no lo especificas usa e

    ebey2291 2016-01-23   683   0
    PHP  

    php實現文件下載! 代碼段

    實現php文件安全下載! public function downloads($name){ $name_tmp = explode("_",$name); $type = $name_tmp[0]; $file_time = explode(".",$name_tmp[3]); $file_time = $file_time[0]; $file_date = date("Y/md",$file_

    ouhp9343 2016-01-23   6185   0
    P4

      PHP漏洞原理 文檔

    PHP是一種服務器端的,嵌入HTML的腳本語言。PHP區別其他語言的地方是它的代碼在服務器端執行,例如收集表格數據,生成動態頁面內容,或者收發cookies等,今天我們來了解一下它的漏洞問題。

    scofier 2011-12-13   5821   0
    PHP開發   PHP  

    PHP 7.2.0發布 資訊

    PHP 開發團宣布釋出 7 系列的第二個功能更新版。

    jopen 2017-12-01   20402   0
    PHP  

    PHP開源論壇 KaiBB 資訊

    KaiBB 是一個免費開源的公告板系統,采用面向對象PHP技術開發。安裝簡單易用。功能夠用。

    fmms 2011-10-12   14224   0
    PHP  

    PHP 5.3.7發布 資訊

    PHP開發團隊向大家宣布即將提供PHP 5.3.7的版本。此版本側重于提高超過90個bug修復,其中一些是與安全相關的PHP5.3.x分支將更穩定。

    webphp 2011-08-19   16292   1
    PHP  

    PHP 框架 Ding Framework 資訊

    Ding 是一個 PHP 框架,提供依賴注入(通過 Setter/Constructor/Method)、面向方面編程、XML、YAML、事件支持,使用 JSR 250/330 注解進行 Bean 定義。輕量級,可發布為 PHAR 文件,簡單快速的 MVC 模型、syslog、非阻塞的 TCP socket 實現、定時器以及自定義錯誤、信號以及異常處理,PAGI 集成(用于 Asterisk 網關接口),PAMI 集成(用于 Asterisk 管理)。

    openkk 2011-11-09   7858   0
    PHP  

    10 個有趣的 PHP 教程 資訊

    今天我為大家挑選了 10 個關于 PHP 的教程,設計到 pChart、投票、圖片過濾、facebook 連接器等等,希望對你有用。

    fmms 2012-04-19   30022   0
    PHP  

    10個有趣的 PHP 教程 資訊

    在這篇文章中,你可以學到如何整合 pChart(一個 php 圖表庫) 和 Google Analytics 以獲得你想要的結果。

    fmms 2012-04-27   21260   0
    PHP  
    P10

      PHP安全詳解 文檔

    1、寫代碼時要有安全意識。 2、掌握PHP安全的一些常用方法。

    scofier 2011-12-13   748   0
    PHP開發   PHP  
    1 2 3 4 5 6 7 8 9 10
  • sesese色