PHP exif ½éÉÜ
// PHP exif
// --
//¡¡wikipedia ½éÉÜ£º
//¡¡EXIF£¨Exchangeable image file format£©Êǿɽ»»»Í¼ÏñÎļþµÄËõд£¬ÊÇרÃÅΪÊýÂëÏà»úµÄÕÕƬÉ趨µÄ£¬¿ÉÒԼǼÊýÂëÕÕƬµÄÊôÐÔÐÅÏ¢ºÍÅÄÉãÊý¾Ý¡£
//¡¡EXIF¿ÉÒÔ¸½¼ÓÓÚJPEG¡¢TIFF¡¢RIFFµÈÎļþÖ®ÖУ¬ÎªÆäÔö¼ÓÓйØÊýÂëÏà»úÅÄÉãÐÅÏ¢µÄÄÚÈݺÍË÷Òýͼ»òͼÏñ´¦ÀíÈí¼þµÄ°æ±¾ÐÅÏ¢¡£
// --
// php ÖÐ exif ¿ÉÒÔ´¦ÀíͼƬµÄÔªÊý¾Ý¡£ÀýÈ磺¿ÉÒÔ¶ÁÈ¡ÊýÂëÏà»úÕÕµ½µÄÕÕƬµÄÔªÊý¾Ý¡£
// With the exif extension you are able to work with image meta data.
// For example, you may use exif functions to read meta data of pictures taken from digital cameras
// by working with information stored in the headers of the JPEG and TIFF images.
//
// Windows Óû§Ê¹ÓøÃÀ©Õ¹±ØÐëÆôÓà mbstring À©Õ¹£¬²¢ÇÒ mbstring À©Õ¹±ØÐëÔÚ exif ֮ǰ¼ÓÔÚ¡£
// Windows users must enable both the php_mbstring.dll and php_exif.dll DLL's in php.ini.
// The php_mbstring.dll DLL must be loaded before the php_exif.dll DLL so adjust your php.ini accordingly.
// --
//
// º¯Êý
exif_imagetype()
// 1/1
// »ñȡͼƬµÄÀ©Õ¹£¬·µ»ØÒ»¸öÕûÊý£¬¶ÔÓ¦ÓÚ exif Öеij£Á¿
exif_read_data()
// 1/4
// Reads the EXIF headers from JPEG or TIFF, ·µ»ØÒ»Êý×é
// EXIF headers tend to be present in JPEG/TIFF images generated by digital cameras,
// but unfortunately each digital camera maker has a different idea of how to actually tag their images,
// so you can't always rely on a specific Exif header being present.
exif_tagname()
// 1/1
exif_thumbnail()
// 1/4
// Retrieve the embedded thumbnail of a TIFF or JPEG image
read_exif_data()
// alias of exif_read_data()
Ïà¹ØÎĵµ£º
apache ¶¯Ì¬±àÒë ±àÒë³Éso ¾²Ì¬±àÒë C ЧÂʸß5% ÏÈÍêÈ«¶¯Ì¬±àÒ룬ȷ¶¨ÐèÒªµÄ ¾²Ì¬±àÒë ºÏÀíʹÓûỰ ¾¡¿ÉÄÜÉٵļÓÔØÍⲿÎļþ ¾¡¿ÉÄÜÉÙµÄÕ¼ÓÃÍⲿ×ÊÔ´ lazyload ³ÙÁ¬½ÓÔçÊÍ·Å ±äÁ¿Ó¦¾¡¿ÉÄܵı£³ÖÒ»ÖÖÀàÐÍ ¸Ä±ä±äÁ¿ÀàÐ͵Äʱºò£¬Ö»»á×Ô¶¯ÔöËùÕ¼ÄÚ´æ ²»»á¼õÉÙ Èçint->float Õ¼¿Õ¼ä±ä´ó float->int ²»»á±äС ......
1¡¢²¼¶ûÖµ£ºfalse(0,¿Õ°×,null); true(-1,·Ç0Öµ)£» 2¡¢echo '$s'Êä³öÄÚÈÝÊÇ $s;
Èç¹û""ÀïÃæ°üº¬ÁË$s»òÕß{$s}£¬ÄÇô½«ÏÔʾµÄ±äÁ¿µÄÖµ¡£ÍƼöʹÓÃ{$s}µÄ·½Ê½¡£
ʹÓÃ""ʱºò£¬Èç¹ûÔÚ""ÀïÃ滹ҪʹÓÃ"",¾Í±ØÐëÓÃ\À´×ªÒå,ÀýÈ磺 echo "\"sss\""; 3¡¢ ......
JavaScript ==> PHP£º
·½·¨Ò»: ÏÈÓÃPHPÉú³Éjs´úÂ룬Ȼºóͨ¹ýä¯ÀÀÆ÷µÄ×Ô¶¯Ë¢Ð£¬½«javascript±äÁ¿´«µÝµ½PHP½Å±¾ÖС£
×¢Ò⣺ÔÚʵ¼ÊÓ¦ÓÃÖÐÒª·ÀÖ¹Óû§ÔÚµØÖ·À¸ÄÚ¸ü¸Ä´«µÝµÄ±äÁ¿Öµ¡£
<?php
if($qq) echo $qq.'<br>';
else echo "<scrip ......
´î½¨ PHP Æäʵ²»ºÜÄÑ£¬Ö»ÊÇÓе㷱Ëö¡£ÒªÊÇ×Ô¼º´î½¨Ò»´Î PHP + MySQL »·¾³ºÜÊÇ·Ñʱ¡£¸üÔãµÄÊÇ£¬ºÜ¶àÐÂÊÖÔÚÅäÖà PHP
ʱ³£³£³öÏÖÕâÑùÄÇÑùµÄÎÊÌâ¡£ÖîÈç mysql À©Õ¹¡¢zend °²×°Ê§°ÜµÈµÈÎÊÌâ¡£Õâʱ£¬ÎÒÃÇÐèÒªÒ»¸ö¿ìËÙ¡¢±ê×¼ÇÒרҵµÄ PHP
Ì×¼þ°ü¡£PHPnow ¾ÍÕâÑùÓ¦Ô˶øÉú£¬ÎªÄã¿ìËٴרҵµÄÐéÄâÖ÷»ú¡£
Óë PHPnow µÄÃû×ÖÒ ......
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 ......