Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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¡·Ä¿Â¼½á¹¹

µÚ1Õ  LAMPÍøÕ¾¹¹½¨     1
1.1  ÍøÕ¾Èí¼þ¼ò½é.... 1
1.1.1  B/SÈí¼þÌåϵ½á¹¹... 1
1.1.2  ¶¯Ì¬ÍøÕ¾½éÉÜ... 2
1.2  ¶¯Ì¬ÍøÕ¾Èí¼þ¿ª·¢ËùÐèµÄWeb¹¹¼þ.... 3
1.2.1  ¿Í»§¶Ëä¯ÀÀÆ÷... 4
1.2.2  À©Õ¹³¬Îı¾±ê¼ÇÓïÑÔXHTML. 5
1.2.3  ²ãµþÑùʽ±íCSS. 6
1.2.4 ......

PHPÍøÒ³UTF8±àÂ뿪·¢Öпհ׵ÄÎÊÌâ

¿ª·¢ÖÐһֱû°ì·¨½â¾öµÄÒ»¸öÎÊÌâ
¡¡¡¡Ò³Ãæ²ÉÓÃUTF8±àÂ룬ͷ²¿ºÍβ²¿ÓÃÁËÄ£°å°üº¬ÎļþµÄ·½·¨£¬½á¹ûÍ·²¿ºÍβ²¿Î޶˶˸÷¶à³öÒ»¸öÔ¼10pxµÄ¿Õ
ÐУ¬Ê²Ã´Ò²Ã»ÓС£
¡¡¡¡Ô­ÒòÊÇÈ«²¿²ÉÓÃutf8±àÂ룬°üº¬ÎļþµÄʱºò£¬×îºóµÄ¶þ½øÖÆÁ÷Öаüº¬Á˶à´ÎUTF8
BOM±ê¼Ç£¬IE²»ÄÜÕý³£½âÎö°üº¬¶à¸öUTF8 BOM ±ê¼ÇµÄÒ³Ãæ£¬Ö±½ÓÌæ»»³Éʵ¼ÊÏÔʾµÄ»Ø³ ......

´î½¨Eclipse PHP¿ª·¢»·¾³

    ´î½¨PHP¿ª·¢»·¾³£º
    1¡¢×¼±¸²¢°²×°ÏÂÁÐÈí¼þ£º
    MySQL 5.1.30: http://dev.mysql.com/downloads/¡£
    Apache 2.2.14: http://httpd.apache.org/. ÔÚ°²×°¹ý³ÌÖÐ,»á³öÏÖ3¸öÎı¾¿ò£¬ÉÏÃæÁ½¸öÊäÈëÄãµÄ±¾»úIP£¨È磺127.0.0.1£©£¬×îÏÂÃæÊäÈëÄãµÄEMAIL ......

PHPÕûÀíÏÔʾÕÕÆ¬exifÐÅÏ¢

<?php
/**
* »ñȡͼÏóÐÅÏ¢µÄº¯Êý
*
* Ò»¸öÈ«Ãæ»ñȡͼÏóÐÅÏ¢µÄº¯Êý
*
* @access public
* @param string $img ͼƬ·¾¶
* @return array
*/
function GetImageInfoVal($ImageInfo,$val_arr) {
    $InfoVal = "δ֪";
    foreach($val_arr as $name=>$val) {
   ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ