string mime_content_type ( string $filename ) Returns the MIME content type for a file as determined by using information from the magic.mime file. <?php $mime_type = mime_content_type('1.jpg'); echo $mime_type; // image/jpeg ?>
fileinfo? ????? php_fileinfo ?? ????? ???? ???.
???? ??? Extension_dir ?????? php_fileinfo.dll(windows), fileinfo.so(linux)? ?? ? ????.
php.ini? ?? Extension=php_fileinfo.dll ?? ";"? ??? ?? ?? ?????. ???.
exif_imagetype ???? ????? php_exif ???? php_mbstring ???? ???? ???.
????? Extension_dir ????? php_exif.dll(windows), exif.so(linux)? ?? ? ????.
php.ini? ?? ???=php_mbstring? ?????. .dll ?? ","? ???? ???=php_exif.dll? ?? ?? ???? ?? ??????? masterMIME?? ??? PHP ????????. ??? ??? ?? ????? ? ????.
? ???? ?? ???? ???? ????? ?? ???? ????? ????????. ?????? ???? ?? ??????! ? ???? ?? ???? ?? ?????? ?????. ??? ???? ???? ??? ????. ??? ??? ?? ??? ?? ??? ???? ????! ??? ?? ?? ??? ???? ????? ????. ???: admin@php.cn
?? ??

29 Jul 2016
??? ?? ??? ?? ?? ?????: ??? ?? ??? ?? ?? ????? ??? ?? ????(1): ? ??? ?????? ???? ??? ??? ??: # ------ --- --------------------- # # ??? ??? ?? 'author' # CREATE TABLE ??? ( author_id int (6) DEFAULT '0' NOT NULL auto_increment, first_name varchar(20)

29 Jul 2016
php ??: php ?? php ?? ?? ? ????: ??? ?? ??? ?????. <?php session_start() $_SESSION['username']="zhuzhao" ?> ??? ?? ??? ?????. <?php session_start() ; unset ($_SESSION['username']); if(isset($_SESSION['username'])) echo "??? ??? ?? ?????.";


??? ??

??? ?? ????? PHP ?????
??? ?? ????? PHP ?????

50?? ??? ??? PHP ???? ??
??? PHP ????, ??? ????? ??? ???? ?????

??? ???? ?? ?? PHP ?????
??? ???? ?? ?? PHP ?????
