php支援斷點續傳的檔案下載類(附源碼)

/** php下載類,支援斷點續傳 * Date: 2013-06-30 * Author: fdipzone * Ver: 1.0 * edit: ww.jbxue.com* Func: * download: 下載檔案 * setSpeed: 設定下載速度 * getRange: 擷取header中Range */ class FileDownload{ // class start private $_speed = 512;

php 發送帶附件郵件的類

/*** 發送帶附件的郵件* by bbs.it-home.org*/class CMailFile { var $subject; var $addr_to; var $text_body; var $text_encoded; var $mime_headers; var $mime_boundary = "--==================_846811060==_"; var

phpExcel匯出excel加超級連結的執行個體代碼

//寫excel//Include class require_once(‘Classes/PHPExcel.php’); require_once(‘Classes/PHPExcel/Writer/Excel2007.php’); $objPHPExcel = new PHPExcel();/*** phpExcel匯出excel* by bbs.it-home.org*///Set properties 設定檔案屬性

php實現的css更新類

/** css 更新類,更新css檔案內圖片的版本 * Date: 2013-02-05 * Author: fdipzone * Ver: 1.1 * Edit: bbs.it-home.org* Func: * update(); * * Ver: 1.1 增加search_child參數,可遍曆子檔案夾 */ class CSSUpdate{ private $csstmpl_path = null; private

PHPMyadmin設定檔詳解(經典)

$cfg['Servers'][$i]['user'] = 'root'; // MySQL user 訪問phpmyadmin使用的mysql使用者名稱 fg['Servers'][$i]['password'] = ''; // MySQL password (only needed對應上述mysql使用者名稱的密碼複製代碼D.認證方法 $cfg['Servers'][$i]['auth_type'] = 'cookie';

php產生excel中的列序號

/*** 用php代碼產生excel或csv檔案中的序號*/public function loop(){ $loop = 0; $charnum = 65; for(; $loop $quotient = intval($loop / 26); $remainder = $loop % 26; $f = $quotient>0? chr($charnum+$quotient-1) : ''; $s = $remainder>=0?

PHP強制更新圖片緩衝的範例程式碼

/** 強制更新圖片緩存 * @param Array $files 待更新的圖片 * @param int $version 版本* @edit bbs.it-home.org*/ function force_reload_file($files=array(), $version=0){ $html = ''; if(!isset($_COOKIE['force_reload_page_'.$version])){ // 判斷是否已更新過

php XML檔案解析類(附示範代碼)

/** XML 檔案分析類 * Date: 2013-02-01 * Author: fdipzone * Ver: 1.0 * Edition bbs.it-home.org* func: * loadXmlFile($xmlfile) 讀入xml檔案輸出Array * loadXmlString($xmlstring) 讀入xmlstring 輸出Array */ class XMLParser{ /** 讀取xml檔案 *

php安裝gd庫與phpize的用法

[root@jbxue achievo]# php -v PHP 5.3.6 (cli) (built: Aug 19 2011 19:35:20) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend

php output_buffering 緩衝使用介紹

for($i=0; $i echo $i.''; sleep(2); } ?> 複製代碼運行結果:等所有指令碼全部運行完成後,才輸出,因為資料未滿一個buffer的大小。例2,output_buffering=4096,輸出較少的資料(少於一個buffer),關閉output_buffering,修改php.ini的output_buffering=0 for($i=0; $i echo $i.str_repeat(" ",500).''; // 當接受到的256(

php開啟GD庫(windows環境)

if(extension_loaded('gd')) { echo '可以使用gd'; foreach(gd_info() as $cate=>$value) echo "$cate: $value";}else echo '沒有安裝gd擴充';?> 複製代碼結果顯示為: 可以使用gdGD Version: bundled (2.0.34 compatible)FreeType Support: 1FreeType Linkage: with freetypeT1Lib

php 過濾html標記屬性類(附源碼)

/** HTML Attribute Filter * Date: 2013-09-22 * Author: fdipzone * ver: 1.0 * edit: bbs.it-home.org* Func: * public strip 過濾屬性 * public setAllow 設定允許的屬性 * public setException 設定特例 * public

linux下為php添加GD庫的安裝步驟

tar zxvf zlib-1.2.3.tar.gz cd zlib-1.2.3 ./configure --prefix=/usr/local/zlib make make install複製代碼2,安裝libpng tar zxvf libpng-1.2.8.tar.tar cd libpng-1.2.8 mv ./scripts/makefile.linux ./makefile make make install 複製代碼注意,這裡的makefile不是用./configure產生,

php縮放圖片的執行個體代碼

include('SimpleImage.php'); $image = new SimpleImage(); $image->load('picture.jpg'); $image->resize(250,400); $image->save('picture2.jpg');?> 複製代碼2,設定寬度,等比例縮放 include('SimpleImage.php'); $image = new SimpleImage();

Linux下開啟PHP GD庫支援

php5 -m | grep -i gd 或者 php -i | grep -i --color gd 複製代碼2,如未安裝GD庫,則為伺服器安裝,方法如下 # 如果是源碼安裝,則加入參數 --with-gd# 如果是debian系的linux系統,用apt-get安裝,如下 apt-get install php5-gd# 如果是CentOS系的系統,用yum安裝,如下 yum install php-gd# 如果是suse系的linux系統,用yast安裝,如下 yast -i

php判斷數組是否有序的範例程式碼

/*** 判斷數組是否有序* by bbs.it-home.org*/function JudegSortArray($array) { if ($array [0] > $array [1]) { $flag = 1; } else { $flag = 0; } $temp = $flag; $len = count ( $array ); for($i = 1; $i if

linux下yum為php安裝gd庫

[root@jbxue ~]# yum install php-gd*Setting up Install ProcessSetting up repositoriesbase 100% |=========================| 951 B 00:00update 100% |=========================| 951 B 00:00================================================GD Support

win8 64位旗艦版系統背景程式切換的兩種方法

 win8 64位旗艦版系統背景程式切換的兩種方法

php遞迴擷取目錄內檔案(包含子目錄)的代碼

/*** 遞迴擷取目錄與子目錄中的檔案* by bbs.it-home.org*/function readFileFromDir($dir) { if (!is_dir($dir)) { return false; } //開啟目錄 $handle = opendir($dir); while (($file = readdir($handle)) !== false) { //排除掉目前的目錄和上一個目錄 if

php5安裝GD庫步驟分享

cd libpng-1.2.40mv scripts/makefile.linux ./Makefile #一定要使用script下的Makefile ,不要通過./configure複製代碼產生: makemake install複製代碼2,下載freetype庫,很多GD函數都需要此庫的支援http://ftp.twaren.net/Unix/NonGNU/freetype/freetype-2.3.5.tar.gz解壓後,進入目錄: cd

總頁數: 5203 1 .... 1617 1618 1619 1620 1621 .... 5203 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.