Time of Update: 2017-01-13
function displayimg($image) { $image = './upload/'.imgdecode($image); //echo $image;exit; if (file_exists($image)) { $info =
Time of Update: 2017-01-13
<?php //公用函數//把角度轉換為弧度 function deg2Arc($degrees) { return($degrees * (pi()/180.0)); }//RGB function getRGB($color){ $R=($color>>16) & 0xff; $G=($color>>8) & 0xff; $B=($color) & 0xff; return
Time of Update: 2017-01-13
php上傳圖片並產生縮位元影像代碼,我們時常要上傳圖片,但也要保留自己的著作權所以就會用到圖片加浮水印哦,下面的程式就是上傳圖片成功後再給圖片加上你自己做的浮水印效果哦.<?phpclass Image { var $imageResource = NULL; var $target = NULL; var $enableTypes = array(); var $imageInfo = array(); var $createFunc =
Time of Update: 2017-01-13
<?phprequire_once("../dbconnect.php");$proimagepath="photo/";$product_id=$_POST["product_id"];$product_pid=$_POST["product_pid"];$product_title=$_POST["product_title"];$product_name=$_POST["pr
Time of Update: 2017-01-13
function Thumb_IM($thumbwidth, $thumbheight, $preview = 0) { global $thumbstatus, $imageimpath, $thumbquality; if($thumbstatus) { list($img_w, $img_h) = $this->attachinfo; $targetfile =
Time of Update: 2017-01-13
function Watermark_IM($preview = 0) { global $watermarkstatus, $watermarktype, $watermarktrans, $watermarkquality, $watermarktext, $imageimpath; $watermarkstatus = $GLOBALS['forum']['disablewatermark'] ? 0 :
Time of Update: 2017-01-13
<?php php 驗證碼圖片 程式/**檔案名稱:class.safeCode.php*類名:safeCode*目的:產生web應用時所需的驗證碼圖片*目前的版本:1.0.2*作者:NoAngels *連絡方式:flare_1023@163.com QQ:82535599 MSN:atizu@hotmail.com*開發時間:2008年06月20日*最後更新:2008年06月21日*更新內容:*版本1.0.2*1.更新了對linux主機支援,設定GDFONTPATH環境變數,*
Time of Update: 2017-01-13
php 產生驗證碼程式<?php$consts = 'bcdfghjkmnpqrstwxyz'; $vowels = 'aei23456789'; for ($x = 0; $x < 6; $x++) { $const[$x] = substr($consts, mt_rand(0,strlen($consts)-1),1); $vow[$x] = substr($vowels,
Time of Update: 2017-01-13
php 圖片 中文驗證碼<img src="verify_image.php" alt="點此重新整理驗證碼" name="verify_code" width="65" height="20" border="0" id="verify_code" onclick="document.getElementById('verify_code'
Time of Update: 2017-01-13
最近,自己利用放假時間學PHP,可能大家都不知道PHP是什麼呢?PHP是一種網頁嵌入式語言,就同ASP,JSP一樣,這應該是編程中最容易學習的語言。前幾年自己在華師上夜大的時候,唯一學習的程式設計語言是C++。現在這個PHP編程很多地方與C++類似,所以被稱為C++ --(即C加加減減)很有趣的稱呼,哈哈!why?因為它沒C++一樣要使用指標比較複雜的結構類型羅!
Time of Update: 2017-01-13
網路廣告,變成了 Internet 上的熱門學問。而 468x60 更變成了廣告人員絞盡腦汁的尺寸。 在處理廣告時,若能直接使用瀏覽器將廣告的 468x60 圖檔送到處理廣告的伺服器中,相信是件很舒服的事,不用再開 FTP 程式,搞大半天只為了 upload。 這個問題,是所有 Web CGI 程式的痛,包括 ASP、Prel....雙緣敬老院等等,都需要再經過系統元件的增加才能達成。號稱最強的 Web CGI 程式: PHP,在這方面的表現沒有令人失望,甚至傲視其它的 CGI
Time of Update: 2017-01-13
以前真沒在意cookie的範圍問題,可能以前用.com網域名稱沒出過問題,今天用公司的一個cn網域名稱測試,怎麼也不能實現cookie共用,後來採用js設定cookie,在另外一台伺服器上共用cookie成功,真叫氣人!翻閱了一下php的cookie 規範 ,裡面有這麼一段Only hosts within the specified domain can set a cookie for a domain and domains must have at least two (2) or
Time of Update: 2017-01-13
在做項目中要用到ACCESS資料庫,所以就寫了一個ACCESS處理類.函數名跟ADODB類一樣. <?php/**ACCESS資料庫操作類*2008-3-26*LIQUAN*$dsn = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=".PATH_ROOT."databasedata.mdb";*
Time of Update: 2017-01-13
<?php$d=array(array("a",-20319),array("ai",-20317),array("an",-20304),array("ang",-20295),array("ao",-20292),array("ba",-20283),array("bai",-20265),array("ban",-20257)
Time of Update: 2017-01-13
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta
Time of Update: 2017-01-13
最近在做一個項目的時候發現,在php中,如果要對一個資料的某個元素進行賦值的時候,就會報錯如:<?php$str="222222";$var=array( a=>"1", b=>$str, &nb
Time of Update: 2017-01-13
1、假設充許連結圖片的主機網域名稱為:www.111cn.net2、修改httpd.conf SetEnvIfNoCase Referer "^http://www.111cn.net/" local_ref=1 <FilesMatch ".(gif|jpg)"> Order Allow,Deny Allow from env=local_ref </FilesMatch>
Time of Update: 2017-01-13
一個簡單的執行個體:新聞模版檔案news_tmp.html:<html><head><title>{title}</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body><TABLE border=0 width=767
Time of Update: 2017-01-13
數字驗證碼 <? /* * Filename: authpage.php */ session_start(); // srand((double)microtime()*10
Time of Update: 2017-01-13
*---------------------- 過濾HTML代碼的函數 -----------------------*/ function htmlEncode($string) { $string=trim($string); $string=str_replace("&","&",$string);