PHPºÍflex½»»¥ÂÒÂë
Õâ¸öÔÒòÓÐÒÔϼ¸¸ö£º
µÚÒ»£¬ÔÚphpÖеÄÄÚÈݲ»ÊÇÓÃutf-8½øÐбàÂëµÄ£¬¿ÉÒÔÔÙphpÍ·²¿Ìí¼Ó£ºheader("Content-Type:text/html;charset=utf-8");
µÚ¶þ£¬phpÎļþ±¾Éí²»ÊÇutf-8±àÂëµÄ£¬Õâ¿ÉÒÔ¸ü¸Äzend-studio£¬µÄÎļþ±àÂë¸ñʽ£¬Ö¸¶¨Îªutf-8·½·¨ÊÇ£ºwindw->preference->General->Workspace->Text file encoding,Ñ¡Ôñutf-8.
Ïà¹ØÎĵµ£º
½«php·þÎñÆ÷¼Üµ½linuxÏÂʱûÓÐ×¢Òâ¸ÃÎÊÌ⣬
Ç°¼¸Ììµ¹ÊÇÅöµ½ÁËÔÚlinuxÏÂÑéÖ¤ÂëµÄͼƬÎÞ·¨ÏÔʾµÄÇé¿ö£¬·¢ÏÖlinuxÏÂÒ²ÒªÓÐgd¿âµÄÖ§³Ö£¬ÓÚÊÇ°²×°ÁËphp5-gd£¨±¾ÈËʹÓõÄÊÇphp5£©
£¬Õâ¸öÎÊÌâ½â¾öÁË
½ñÌìͻȻ·¢ÏÖimgͼƬÎÞ·¨ÏÔʾ£¬ÉÏÍøËÑÁËÒ»°Ñ£¬ÓÖ¾¹ý²âÊԵóöÈçϽáÂÛ
<img src="pc.jpg"......>
Ëû»áÒÔµ±Ç°Â·¾¶ ......
´î½¨ PHP Æäʵ²»ºÜÄÑ£¬Ö»ÊÇÓе㷱Ëö¡£ÒªÊÇ×Ô¼º´î½¨Ò»´Î PHP + MySQL »·¾³ºÜÊÇ·Ñʱ¡£¸üÔãµÄÊÇ£¬ºÜ¶àÐÂÊÖÔÚÅäÖà PHP
ʱ³£³£³öÏÖÕâÑùÄÇÑùµÄÎÊÌâ¡£ÖîÈç mysql À©Õ¹¡¢zend °²×°Ê§°ÜµÈµÈÎÊÌâ¡£Õâʱ£¬ÎÒÃÇÐèÒªÒ»¸ö¿ìËÙ¡¢±ê×¼ÇÒרҵµÄ PHP
Ì×¼þ°ü¡£PHPnow ¾ÍÕâÑùÓ¦Ô˶øÉú£¬ÎªÄã¿ìËٴרҵµÄÐéÄâÖ÷»ú¡£
Óë PHPnow µÄÃû×ÖÒ ......
¶Ôhttp request¹ýÀ´µÄÊý¾Ý£¬·²ÊǺ¬Óе¥ÒýºÅ£¬Ë«ÒýºÅ£¬·´Ð±Ïߵȶ¼½øÐмÓбÏß´¦Àí¡£·ÀÖ¹½øÐÐ×¢Èë²Ù×÷¡£
/*
¶ÂSQL©¶´
*/
function quotes($content){
//Èç¹ûmagic_quotes_gpc=Off£¬ÄÇô¾Í¿ªÊ¼´¦Àí
if (!get_magic_quotes_gpc()) {
//ÅжÏ$contentÊÇ·ñΪÊý×é
if (is_array($content)) {
//Èç¹û$contentÊÇ ......
javaʹÓÃMathÀ࣬phpʹÓÃϵͳº¯Êý
ceil¹¦ÄÜ ´óÓÚµÈÓÚijÊý(³£ÓÃÓÚ·ÖÒ³Ò³Êý¼ÆË㣩
phpÖУºceil(a/b)
javaÖУº(int)Math.ceil((double)a/b)) Math.ceilÔÚjavaÖÐÐèÒª´«ÈëdoubleÐÍ£¬¶ø·µ»ØÒ²ÊÇdoubleÐÍ¡£×¢ÒâÕâÀïÓÃ(double)a/b²Å¿ÉÒÔ¡£
a/b,(dobule)(a/b)¶¼²»ÐС£ÒòΪËûÃÇ»áÏÈ×Ô¶¯ÉáÆúСÊýÈ¡µÃÕûÊý
flooe ......
// PHP exif
// --
//¡¡wikipedia ½éÉÜ£º
//¡¡EXIF£¨Exchangeable image file format£©Êǿɽ»»»Í¼ÏñÎļþµÄËõд£¬ÊÇרÃÅΪÊýÂëÏà»úµÄÕÕƬÉ趨µÄ£¬¿ÉÒԼǼÊýÂëÕÕƬµÄÊôÐÔÐÅÏ¢ºÍÅÄÉãÊý¾Ý¡£
//¡¡EXIF¿ÉÒÔ¸½¼ÓÓÚJPEG¡¢TIFF¡¢RIFFµÈÎļþÖ®ÖУ¬ÎªÆäÔö¼ÓÓйØÊýÂëÏà»úÅÄÉãÐÅÏ¢µÄÄÚÈݺÍË÷Òýͼ»òͼÏñ´¦ÀíÈí¼þµÄ°æ±¾ÐÅÏ¢¡£
......