Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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"


Ïà¹ØÎÊ´ð£º

phpº¯ÊýÖв»ÖªµÀÔõôÔÚCÖе÷ÓÃ? htmlʵÌåÓëÍøÒ³±àÂë

mb_convert_encoding ("ÄãºÃ", "HTML-ENTITIES", "gb2312");    //Êä³ö£º&#20320;&#22909;
mb_convert_encoding ("&#20320;&#22909;", " ......

±±¾©¼±ÕÐlinux¡¢PHPÍøÂçÓ¦Óÿª·¢

ÎÒÃÇÁ¥ÊôÖпÆÔº¼ÆËãËùÍøÂçÖØµãʵÑéÊÒ(http://www.ict.ac.cn/survey/channel/detail443.asp)»ù´¡ÉèÊ©¿ÎÌâ×é.
ÏÖÒòÏîÄ¿ºÍÒµÎñÍØÕ¹µÄÐèÒª,ÌØÐèÒªÕÐÆ¸ÓëÏîÄ¿Ïà¹ØµÄÍøÂçÓ¦Óù¤³Ìʦ1-2Ãû¡£

¾ßÌåÒªÇóÈçÏ¡£ÓÐÒâÕß ......

phpÖÐfile_get_contentsÎÊÌâ

$a = $_FILES['userfile']['name'] ;

$test = $a;

$p = split('/',$test);

$p[count($p)-1];

$content = file_get_contents("$p");

$con ......

PHPÔıø

PHPÔıø,°ÑÄãÃÇPHPµÄ¿ªÔ´ÏîÄ¿·¢ÉÏÀ´¿´¿´,ÒÔ¹©ÔªÊ×¼ìÔÄ
¹úÇì ÖÐÇï¿ìÀÖ

Â¥Ö÷£¬¿ªÔ´ÏîÄ¿²¿´ú±íÃâ·ÑÏîÄ¿

¿ÉÒÔ×Ô¼ºÕÒÂð£¬ÍøÉ϶àµÄÊÇ

Ïë·¨²»´í

¹ÛÀñ̨Χ¹Û¡£

Χ¹Û

½¨ÒéÄã²Î¿¼°×¶¾

Ê׳¤ºÃ£¡

Èö·Ö° ......

ÈçºÎѧϰphp webservice?

¸Õ½Ó´¥Õâ¸ö¶«Î÷£¬ÏëÎÊһϸ÷λ¸ßÊÖʵ¼ùÕâ¸öÐèÒªÄÄЩ¹¤¾ß£¨ÎÒÓõÄlinux,dreamweaver£©£¿¾ßÌåÔõôʵÏÖ£¿ÇóÒ»¸ö¼òµ¥ÍêÕûµÄÀý×Ó
ÍøÉÏËÑË÷nusoap
È¥¡°w3ѧУ¡±Ñ§ÏÂxml

²»¹ýÍøÉϱȽÏÄÑÕÒÄÇÖÖÍêÕûµÄÀý×Ó£¬Ö»Óмò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ