PHPÈ¡¶þ½øÖÆÎļþÍ·¿ìËÙÅжÏÎļþÀàÐÍ
<?php
$filename
=
"
D:
\\
296.mid
"
;
$file
=
fopen
(
$filename
,
"
rb
"
)
;
$bin
=
fread
(
$file
,
2
)
;
//Ö»¶Á2×Ö½Ú
fclose
(
$file
)
;
$strInfo
= @
unpack
(
"
c2chars
"
,
$bin
)
;
$typeCode
=
intval
(
$strInfo
[
'
chars1
'
]
.
$strInfo
[
'
chars2
'
])
;
$fileType
=
''
;
switch
(
$typeCode
)
{
case
7790
:
$fileType
=
'
exe
'
;
break
;
case
7784
:
$fileType
=
'
midi
'
;
break
;
case
8297
:
$fileType
=
'
rar
'
;
break
;
case
255216
:
$fileType
=
'
jpg
'
;
break
;
case
7173
:
$fileType
=
'
gif
'
;
break
;
case
6677
:
$fileType
=
'
bmp
'
;
break
;
case
13780
:
$fileType
=
'
png
'
;
break
;
default
:
echo
'
unknown
'
;
}
echo
'
this is a(an)
'
.
$fileType
.
'
file:
'
.
$typeCode
;
Ïà¹ØÎĵµ£º
ºÜ¶àSOHOER¶¼Ï£ÍûÓиö×Ô¼ºµÄÍøÕ¾,¶ø¶ÔÍøÕ¾½¨ÉèÒ»ÎÞËùÖª,»òÕßÒ»Öª°ë½â.½ñÌìÎÒÏȽ²³ÌÐò·½ÃæµÄÇø±ð,ÏàÐźܶàÈËÅöµ½ÁËÓÐЩ¹«Ë¾Ëµphp±ÈAsp,Asp.Net¶¼ÒªºÃ,»òÕßAsp±ÈÆäËûÓïÑÔ¶¼ÒªºÃ¡£Æäʵ,³ÌÐòµÄÓÅÂÔÓëÍøÕ¾¿ª·¢ÈËÔ±µÄ¾Ñé\¼¼ÊõˮƽÏà¹Ø£¬¶øÓïÑÔ±¾Éí²¢Ã»ÓÐʲôÓÅÂÔÖ®·Ö.¾Ñé¶àµÄ³ÌÐòÔ±,²»¹ÜʹÓõÄÄ ......
ajax+asp.net+mssqlʵÏÖµÄajaxÎÞË¢ÐÂÁÄÌìÊÒ£¬Ö§³Öhtml web±à¼Æ÷¡£
ΪÁ˼ӿìËٶȣ¬Ê¹ÓÃÁË´æ´¢¹ý³Ì¡£
asp¼°php°æ±¾Çë¿´ÏÂÃæµÄÎÄÕÂ
ajax+asp+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
ajax+php+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
´ËÀý×ÓÒ²¿ÉÒÔ×÷Ϊmssql´æ´¢¹ý³ÌʹÓõÄʾÀý£¬Èçphpµ÷ÓÃmssqlµÄ´æ´¢¹ý³Ì£¬php»ñÈ¡mssqlÊý¾Ý¿âµÄÊä³ö²ÎÊý¡£
ҪʹÓò»Í¬µÄ¶¯Ì¬Ò³Ãæ£ ......
´óÈýÏÂѧÆÚ£¬ÎÒ½Ó´¥µ½ÁËPHP£¬Ñ§ÁËÒ»µã»ù±¾µÄÓï·¨£¬ÒòΪ¸úCµÄÓï·¨ºÜÏñ£¬ËùÒÔѧÆðÀ´ºÜÊ¡Á¦¡£½¥½¥µØÎÒϲ»¶ÉÏÁËPHPÕâÃÅÓïÑÔ£¬ÒòΪÓÃËü¿ÉÒÔ×öÍøÕ¾£¬µ½ÁË´óËÄÎÒ±ã¸ü¼ÓÉîÈëµØѧPHPÁË£¬Ñ§Ï°ÓÃPHP×ö¶«Î÷³ÉÁËÎÒÉú»îÖеÄÒ»²¿·Ö...............
PHPÊÇÔËÐÐÓÚ·þÎñÆ ......