PHPÏÂÔØÒ³´úÂëÈçºÎÓ¦ÓÃ
¹ØÓÚphpÏÂÔØÒ³ÃæÔÚphpÊÖ²áÖÐÓÐÕâÑùÒ»¶Î²Î¿¼´úÂ룬ÇëÎÊÎÒÒªÈçºÎÐÞ¸ÄËü£¬ÎªÊ²Ã´Ã»ÓÐÏÂÔØ¿òµ¯³öÄØ£¿ÄÜ·ñ¾ÙÀýÒ»ÏÂÒÔÏ´úÂëµÄʵ¼ÊÓÃÀý£¿
<?php
function dl_file($file){
//First, see if the file exists
if (!is_file($file)) { die(" <b>404 File not found! </b>"); }
//Gather relevent info about file
$len = filesize($file);
$filename = basename($file);
$file_extension = strtolower(substr(strrchr($filename,"."),1));
//This will set the Content-Type to the appropriate setting for the file
switch( $file_extension ) {
case "pdf": $ctype="application/pdf"; break;
case "exe": $ctype="application/octet-stream"; break;
case "zip": $ctype="application/zip"; break;
case "doc": $ctype="application/msword"; break;
case "xls": $ctype="application/vnd.ms-excel"; break;
case "ppt": $ctype="application/vnd.ms-powerpoint"; break;
case "gif": $ctype="image/gif"; break;
case "png"
Ïà¹ØÎÊ´ð£º
mb_convert_encoding ("ÄãºÃ", "HTML-ENTITIES", "gb2312"); //Êä³ö£º你好
mb_convert_encoding ("你好", " ......
ÎÒÃÇÁ¥ÊôÖпÆÔº¼ÆËãËùÍøÂçÖØµãʵÑéÊÒ(http://www.ict.ac.cn/survey/channel/detail443.asp)»ù´¡ÉèÊ©¿ÎÌâ×é.
ÏÖÒòÏîÄ¿ºÍÒµÎñÍØÕ¹µÄÐèÒª,ÌØÐèÒªÕÐÆ¸ÓëÏîÄ¿Ïà¹ØµÄÍøÂçÓ¦Óù¤³Ìʦ1-2Ãû¡£
¾ßÌåÒªÇóÈçÏ¡£ÓÐÒâÕß ......
$a = $_FILES['userfile']['name'] ;
$test = $a;
$p = split('/',$test);
$p[count($p)-1];
$content = file_get_contents("$p");
$con ......
PHPÔıø,°ÑÄãÃÇPHPµÄ¿ªÔ´ÏîÄ¿·¢ÉÏÀ´¿´¿´,ÒÔ¹©ÔªÊ×¼ìÔÄ
¹úÇì ÖÐÇï¿ìÀÖ
Â¥Ö÷£¬¿ªÔ´ÏîÄ¿²¿´ú±íÃâ·ÑÏîÄ¿
¿ÉÒÔ×Ô¼ºÕÒÂð£¬ÍøÉ϶àµÄÊÇ
Ïë·¨²»´í
¹ÛÀñ̨Χ¹Û¡£
Χ¹Û
½¨ÒéÄã²Î¿¼°×¶¾
Ê׳¤ºÃ£¡
Èö·Ö° ......
¸Õ½Ó´¥Õâ¸ö¶«Î÷£¬ÏëÎÊһϸ÷λ¸ßÊÖʵ¼ùÕâ¸öÐèÒªÄÄЩ¹¤¾ß£¨ÎÒÓõÄlinux,dreamweaver£©£¿¾ßÌåÔõôʵÏÖ£¿ÇóÒ»¸ö¼òµ¥ÍêÕûµÄÀý×Ó
ÍøÉÏËÑË÷nusoap
È¥¡°w3ѧУ¡±Ñ§ÏÂxml
²»¹ýÍøÉϱȽÏÄÑÕÒÄÇÖÖÍêÕûµÄÀý×Ó£¬Ö»Óмò ......