php¶ÔͼƬÌí¼ÓˮӡÀà
/*
* ¹¦ÄÜ£ºPHP
ͼƬˮӡ (ˮӡ֧³ÖͼƬ»òÎÄ×Ö)
* ²ÎÊý£º
* $product_img ±³¾°Í¼Æ¬£¬¼´ÐèÒª¼ÓˮӡµÄͼƬ£¬ÔÝÖ»Ö§³ÖGIF,JPG,PNG¸ñʽ£»
* $waterPos ˮӡλÖã¬ÓÐ10ÖÖ״̬£¬0ÎªËæ»úλÖã»
* 1Ϊ¶¥¶Ë¾Ó×ó£¬2Ϊ¶¥¶Ë¾ÓÖУ¬3Ϊ¶¥¶Ë¾ÓÓÒ£»
* 4ΪÖв¿¾Ó×ó£¬5ΪÖв¿¾ÓÖУ¬6ΪÖв¿¾ÓÓÒ£»
* 7Ϊµ×¶Ë¾Ó×ó£¬8Ϊµ×¶Ë¾ÓÖУ¬9Ϊµ×¶Ë¾ÓÓÒ£»
* $waterImage ͼƬˮӡ£¬¼´×÷ΪˮӡµÄͼƬ£¬ÔÝÖ»Ö§³ÖGIF,JPG,PNG¸ñʽ£»
* $waterText ÎÄ×Öˮӡ£¬¼´°ÑÎÄ×Ö×÷ΪΪˮӡ£¬Ö§³ÖASCIIÂ룬²»Ö§³ÖÖÐÎÄ£»
* $textFont ÎÄ×Ö´óС£¬ÖµÎª1¡¢2¡¢3¡¢4»ò5£¬Ä¬ÈÏΪ5£»
* $textColor ÎÄ×ÖÑÕÉ«£¬ÖµÎªÊ®Áù½øÖÆÑÕɫֵ£¬Ä¬ÈÏΪ#FF0000(ºìÉ«)£»
*
* ×¢Ò⣺Support GD 2.0£¬Support FreeType¡¢GIF Read¡¢GIF Create¡¢JPG ¡¢PNG
* $waterImage ºÍ $waterText ×îºÃ²»ÒªÍ¬Ê±Ê¹Óã¬Ñ¡ÆäÖÐÖ®Ò»¼´¿É£¬ÓÅÏÈʹÓà $waterImage¡£
* µ±$waterImageÓÐЧʱ£¬²ÎÊý$waterString¡¢$stringFont¡¢$stringColor¾ù²»ÉúЧ¡£
* ¼ÓˮӡºóµÄͼƬµÄÎļþ
ÃûºÍ $product_img Ò»Ñù¡£
* ×÷Õߣºlongware @ 2004-11-3 14:15:13
*/
function imageWaterMark($product_img,$waterPos=0,$waterImage="",$waterText="",$textFont=5,$textColor="#FF0000")
{
$isWaterImage = FALSE;
$formatMsg = "Ôݲ»Ö§³Ö¸ÃÎļþ¸ñʽ£¬ÇëÓÃͼƬ´¦ÀíÈí¼þ½«Í¼Æ¬×ª»»ÎªGIF¡¢JPG¡¢PNG¸ñʽ¡£";
//¶ÁȡˮӡÎļþ
i
Ïà¹ØÎĵµ£º
ÍøÉϵÄͼƬÉÏ´«ºÜÉÙ£¬Òª²»¾ÍÊÇÀÏÍâµÄ¶«Î÷£¡
ÓÃ×Å×ܸоõ²»Ë¬~~ÓÚÊÇ×Ô¼º×öÁËÒ»¸ö£¡Ä¿Ç°»ù±¾ÉϹ¦ÄÜÒѾÍê³É¡£ÍêÈ«¹ú²ú¹þ¹þ
ÇëÖ§³Ö¹ú»õ£¡
Éϼ¸¸öͼ£º
Ö÷ÒªÌØµã½éÉÜһϣº
1.³ÌÐòÓÅ»¯ ÔÚ1.0°æ±¾»ù´¡ÉÏÓÅ»¯Á˳ÌÐò
2.ÐÞÕýÉÏ´«Ê±ºò¹ö¶¯ÌõBUG
3.¿ÉÖØ¸´Ìí¼ÓÁÐ±í ²»Öظ´Ìí¼ÓÒÑÓÐͼƬ
4.¿ÉÇå¿ÕͼƬÁÐ±í£¬Ò²¿Éµ¥ÕÅͼƬɾ³ý
5.Ìå ......
ËäÈ»±¾ÈËûÓÐÑéÖ¤¹ý,²»¹ý¾Ý˵ͨ¹ýADODB·ÃÎÊOracle¶ÔÐÔÄÜÓ°ÏìºÜС.¶øÇÒADODB±ÈOCI8Ò²Òª·½±ãºÜ¶à,±Ï¾¹Ðí¶à¶«Î÷¶¼Ôٴηâ×°¹ý.²»¹ý²»¹ÜÔõô˵Õâ¶¼ÔÚÖмäÓÖ¼ÓÉÏÁËÒ»²ã,ÀíÂÛÉÏÀ´Ëµ³öÏÖÎÊÌâµÄ¼¸Âʺͽâ¾öÎÊÌâµÄÄѶȶ¼±ä´óÁË.¶øOracleÓÖ¾³£ÓÃÔÚ²»ÄÜËæ±ã³öÎÊÌâµÄ»·¾³,ËùÒÔÏë±ØÏëÒªÖ±½ÓʹÓÃOCIµÄÇé¿öÒ²²»ÉÙ.ÒÔϾÍÊÇÎÒµÄÀý×Ó:
<?p ......
Ö»ÊÇ˼·,»¹Ã»ÑéÖ¤. ÓÃWindowsµÄ¼Æ»®ÈÎÎñÿ¸ôÒ»¸öСʱÔËÐÐÒ»¸öphp½Å±¾. ¸Ãphp½Å±¾»á½«°ë¸öСʱºòÒªÖ´ÐеÄPHP´úÂëдÈëÒ»¸ö¹Ì¶¨µÄphpÎļþÖÐ. Óõڶþ¸ö¼Æ»®ÈÎÎñÔÚµÚÒ»¸ö¼Æ»®ÈÎÎñÖ´Ðкó°ë¸öСʱ,Ö´ÐÐÉÏÃæµÄ¹Ì¶¨µÄphpÎļþ. ʵ¼ÊÇé¿öµÈÓпÕʵÑéºóÔÙ˵. ......
Êýѧº¯Êý
Abs
º¯ÊýÃèÊö£ºmixed abs(mixed number);
·µ»ØÖµ£ºº¯Êýabs·µ»Ø²ÎÊýnumberµÄ¾ø¶ÔÖµ¡£
Acos
º¯ÊýÃèÊö£ºdouble acos(double number);
·µ»ØÖµ£ºº¯Êýacos·µ»Ø²ÎÊýnumberµÄ·´ÓàÏÒÖµ¡£Èç¹û²ÎÊýnumber´óÓÚ1»òСÓÚ1£¬
ÔòÆä·´ÓàÏÒÖµÎÞÒâÒå ¡£
Acosh --
·´Ë«ÇúÓàÏÒ
Asin
º¯ÊýÃèÊö£»double asin(double number); ......
Ò»¡¢apache Ô´Âë°²×°
./configure --prefix=/usr/local/apache --enable-so
make
make install
×¢£º°²×°ºóÈç¹û¸Ä±äapacheÆðʼĿ¼(¹¤×÷Ŀ¼)£¬¿ÉÄÜ»á³öÏÖ403´íÎ󣬴ËʱÐÞ¸Ähttpd.confÖеÄUserºÍGroupΪÄã¸Ä±äºó
µÄÆðʼĿ¼ËùÊôµÄÓû§ºÍ×é¼´¿É£¡
ÈçrootÓû§° ......