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

phpÉÏÔØÎļþÖ»Äܱ£´æÒ»Ð¡²¿·Ö

<html>
<head>
  <title>Uploading...</title>
</head>
<body>
<h1>Uploading file...</h1>
<?php
    echo '<pre>';
    print_r($_FILES);
    echo '</pre>';
    if ($_FILES['userfile']['error'] > 0)
        {
          echo 'Prolem: ';
          switch ($_FILES['userfile']['error'])
          {
            case 1: echo 'File exceeded upload_max_filesize'; break;
            case 2: echo 'File exceeded max_file_size'; break;
            case 3: echo 'File only partially uploaded'; break;
            case 4: echo 'No file uploaded'; break;
          }
          exit;
}
    if ($_FILES['userfile']['type'] != 'application/x-zip-compressed')
        {
           echo 'Problem: file is not pdf';
           exit;
       }
    $upfile = '/upload/'.$_FILES['userfile']['name'];
     if (is_uploaded_file($_FILES['userfile']['tmp_name']))
        {   
     if (!move_uploaded_file($_FILES['userfile']['tmp_name'], $upfile))
          {
           echo 'Problem: Could not move file to destination directory';
            exit;
    &nb


Ïà¹ØÎĵµ£º

¡¶Ï¸ËµPHP¡·ÄÚÈݽéÉÜ

¿ª·¢WebÓ¦ÓóÌÐòPHPÊÇ×îÀíÏëµÄ¹¤¾ß£¬Ò×ÓÚʹÓᢹ¦ÄÜÇ¿´ó¡¢³É±¾µÍÁ®¡¢¸ß°²È«ÐÔ¡¢¿ª·¢ËÙ¶È¿ìÇÒÖ´ÐÐÁé»î¡£È«ÊéÒÔʵÓÃΪĿ±êÉè¼Æ£¬ÄÚÈݷḻ£¬°üº¬PHP¿ª·¢×îÖ÷Á÷µÄ¸÷Ïî¼¼Êõ£¬¶Ôÿһ¸ö֪ʶµã¶¼½øÐÐÁËÉîÈëÏêϸµÄ½²½â£¬²¢¸½ÓдóÁ¿µÄʵÀý´úÂ룬ͼÎIJ¢Ã¯¡£´ÓÔËÐл·¾³´î½¨¡¢PHPµÄ»ù±¾Óï·¨ºÍ¹æ·¶ÈëÊÖ£¬ÓÉdzÈëÉѭÐò½¥½ø£¬ÏµÍ³µÄ½éÉÜÁË ......

PHP——ÔËËã·ûºÍ¹Ø¼ü×Ö


Ô­ÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/2010/01/29/1-5/
ÒÔÏ´úÂëÊǼ¸¸ö±í´ïʽµÄÀý×Ó£º
¡¡¡¡$a = “phpdo.net”;
¡¡¡¡$sum = $var_a + $var_b;
¡¡¡¡$i++;
 PHPÖÐÔËËã·ûÊDZí´ïʽÖжÔÔËËã·û½øÐвÙ×÷µÄ·ûºÅ£¬°üÀ¨ËãÊõÔËËã·û£¬×Ö·û´®ÔËËã·ûºÍÂß¼­ÔËËã·ûµÈ¡£
 PHPÓÐÒ»¸öÓëCÓïÑÔÀàËÆµÄ¸ÅÄî&mdash ......

PHPÖÐJSONµÄÓ¦ÓÃ

»¥ÁªÍøµÄ½ñÌ죬AJAXÒѾ­²»ÊÇʲôİÉúµÄ´Ê»ãÁË¡£ËµÆðAJAX£¬¿ÉÄÜ»áÁ¢¼´ÏëÆðÒòRSS¶øÐËÆðµÄXML¡£XMLµÄ½âÎö£¬¿ÖÅÂÒѾ­²»ÊÇʲôÄÑÌâÁË£¬ÌرðÊÇPHP5£¬´óÁ¿µÄXML½âÎöÆ÷µÄÓ¿ÏÖ£¬Èç×îÇáÁ¿¼¶µÄSimpleXML¡£²»¹ý¶ÔÓÚAJAXÀ´Ëµ£¬XMLµÄ½âÎö¸üÇãÏòÓÚǰ̨JavascriptµÄÖ§³Ö¶È¡£ÎÒÏëËùÓнâÎö¹ýXMLµÄÈË£¬¶¼»áÒòÊ÷ºÍ½Úµã¶øÍ·´ó¡£²»¿É·ñÈÏ£¬XMLÊÇºÜ ......

PHPÉÏ´«FTPºóÎÞ·¨Õý³£Ê¹Óà ³öÏ֓ŵ”

½ñÌìÕæÊǵ¹Ã¹µÄÈÕ×Ó£¬ºÁ²»ÈÝ×öºÃµÄÍøÕ¾ÉÏ´«µ½Ftp¡£¾ÓÈ»ÎÞ·¨Ê¹Óá£ÏÖÏóΪphpÒ³ÃæÊ²Ã´¶¼ÏÔʾ²»³öÀ´¡£µ«ÊÇÔÚÎÒ±¾µØÈ·ÊǺúõġ£ ÄѵÀͬÑùµÄ¶«Î÷ÉÏ´«µ½FTPÉÏ»áÓÐÎÊÌâÂ𣿠¾­¹ýÎÒ½«½üÈý¸öСʱµÄµ÷²é£¬ÖÕÓڲ鴦ÁËÔ­Òò¡£ Ô­À´ һЩ utf-8¸ñʽµÄÎļþ¼ÓÁËBOM¡£Õâ¸öBOM¿É²»ÊǸöºÃ¶«Î÷¡£»á¸ãµÃ¼¸¸ö±à¼­Æ÷ Éñ»êµßµ¹µÄ¡£×îÖ±½ÓµÄ±íÏÖ¾ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ