phpÉú³ÉÑéÖ¤ÂëͼƬ´úÂë
Îļþcheck.php
<?php
//Éú³ÉÑéÖ¤ÂëͼƬ
Header("Content-type: image/PNG");
srand((double)microtime()*1000000);//²¥ÏÂÒ»¸öÉú³ÉËæ»úÊý×ÖµÄÖÖ×Ó£¬ÒÔ·½±ãÏÂÃæËæ»úÊýÉú³ÉµÄʹÓÃ
session_start();//½«Ëæ»úÊý´æÈësessionÖÐ
$_SESSION['authnum']="";
$im = imagecreate(62,20); //Öƶ¨Í¼Æ¬±³¾°´óС
$black = ImageColorAllocate($im, 0,0,0); //É趨ÈýÖÖÑÕÉ«
$white = ImageColorAllocate($im, 255,255,255);
$gray = ImageColorAllocate($im, 200,200,200);
imagefill($im,0,0,$gray); //²ÉÓÃÇøÓòÌî³ä·¨£¬É趨£¨0,0£©
while(($authnum=rand()%100000)<10000);
//½«ËÄλÕûÊýÑéÖ¤Âë»æÈëͼƬ
$_SESSION['authnum']=$authnum;
imagestring($im, 5, 10, 3, $authnum, $black);
// Óà col ÑÕÉ«½«×Ö·û´® s »µ½ image Ëù´ú±íµÄͼÏñµÄ x£¬y ×ù±ê´¦£¨Í¼ÏñµÄ×óÉϽÇΪ 0, 0£©¡£
//Èç¹û font ÊÇ 1£¬2£¬3£¬4 »ò 5£¬ÔòʹÓÃÄÚÖÃ×ÖÌå
for($i=0;$i<200;$i++) //¼ÓÈë¸ÉÈÅÏóËØ
{
$randcolor = ImageColorallocate($im,rand(0,255),rand(0,255),rand(0,255));
imagesetpixel($im, rand()%70 , rand()%30 , $randcolor);
}
ImagePNG($im);
ImageDestroy($im);
?>
ÔÚÔÎļþÖмÓÈë<img src="check.php" width="50" height="30" />
Ïà¹ØÎĵµ£º
·þÎñÆ÷½Å±¾ÓëJavascriptµÄÁ½ÖÖ½»»¥·½Ê½(ÒÔphpΪÀý)
ÒýÓÃ:http://www.knowsky.com/1014.html
ÔÚÍøÒ³ÖÆ×÷¹ý³ÌÖÐÔõÑùÔÚ²»Ë¢ÐÂÒ³ÃæµÄÇé¿öÏÂʹǰ̨ҳÃæºÍºǫ́CGIÒ³Ãæ±£³Ö½»»¥Ò»Ö±ÊǸöÎÊÌâ¡£ÕâÀï½éÉÜÁ½¸ö·½·¨¡£
·½·¨Ò»£ºÍ¨¹ýCookie½»»¥¡£
Ò»¹²ÊÇÈý¸öÎļþ£¬·Ö±ðΪ£ºindex.htm,action.php,main.htm
ÔÀíΪǰ̨ҳÃæmain.htmºÍº ......
“Ä£°åÕⶫÎ÷,Æäʵ×îÖØÒªµÄÊÇÊʺÏ×Ô¼ºµÄÏîÄ¿ÐèÇó,¶ø²»ÊÇÊʺÏ×Ô¼ºµÄÏ°¹ß.±ÈÈçÒ»¸öÆóÒµµÄÐû´«ÍøÕ¾,·ÃÎÊÁ¿²»´ó,¸üÐÂÁ¿Ò²²»´ó,ÓÃʲô¶¼Ò»Ñù,ÉõÖÁ²»ÓÃ,
Ö±½ÓPHP+HTMLд¿ÉÄÜËÙ¶È×î¿ì.Ҳûʲô²»¿É.µ«ÊÇÈç¹ûÊÇÒ»¸öÐÂÎÅϵͳ,»òÕßÊÇÄÚÈÝ·¢²¼ÏµÍ³.Á½ÕßÕâÑù,¾Í·Ç³£ÓбØÒªÓõ½Ä£°åÕâÒ»¼¼Êõ.ÒòΪËûÃǶ¼
ÓÐÒ»¸ö¹²Í¨µÄµØ·½,¾ÍÊÇÓÐÒ» ......
mkdir /downloads
chown -R root:root /downloads
chmod -R 774 /downloads
Ò»¡¢°²×°Apache2
ÏÂÔصØÖ·£ºhttp://www.apache.org/ --> HTTP Server --> from a mirror
1. »ñÈ¡mysqlÔ´Âë
shell> cd /downloads
......
http://blog.csdn.net/fleaphp/archive/2009/02/26/3940430.aspx
QeePHP µÄ¼Ü¹¹Ä£Ê½
QeePHP ÊÇÒ»¸öÓëÖÚ²»Í¬µÄ¿ò¼Ü¡£
QeePHP ×ñÑ“ÄÚºË×îС»¯£¬¹¦Äܲå¼þ»¯”µÄÔÔò£¬ÀûÓÃÄÚºËʵÏÖÁËÒ»¸ö¿ìËÙ¡¢¿ÉÀ©Õ¹µÄ¼Ü¹¹¡£È»ºóÔÚºËÐÄÖ®Í⣬ͨ¹ý¸÷ÖÖ²å¼þÌṩ²»Í¬ÀàÐ͵Ļù´¡·þÎñ¡£
QeePHP µÄ¼Ü¹¹¸Åò
ÕâÖּܹ¹Ä£Ê½µÄ ......