<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          class.upload.phpPHP文件上傳管理器

          聯(lián)合創(chuàng)作 · 2023-09-21 19:47

          class.upload.php 為你管理基于 HTTP 的文件上傳,示例代碼:

          $foo = new Upload($_FILES['form_field']);
          if ($foo->uploaded) {
           
          // save uploaded image with no changes
            $foo
          ->Process('/home/user/files/');
           
          if ($foo->processed) {
              echo
          'original image copied';
           
          } else {
              echo
          'error : ' . $foo->error;
           
          }
           
          // save uploaded image with a new name
            $foo
          ->file_new_name_body = 'foo';
            $foo
          ->Process('/home/user/files/');
           
          if ($foo->processed) {
              echo
          'image renamed "foo" copied';
           
          } else {
              echo
          'error : ' . $foo->error;
           
          }
           
          // save uploaded image with a new name,
           
          // resized to 100px wide
            $foo
          ->file_new_name_body = 'image_resized';
            $foo
          ->image_resize = true;
            $foo
          ->image_convert = gif;
            $foo
          ->image_x = 100;
            $foo
          ->image_ratio_y = true;
            $foo
          ->Process('/home/user/files/');
           
          if ($foo->processed) {
              echo
          'image renamed, resized x=100
                    and converted to GIF'
          ;
              $foo
          ->Clean();
           
          } else {
              echo
          'error : ' . $foo->error;
           
          }
          }

          It manages the uploaded file and allows you to do whatever you want with the file as many times as you want. If the file is an image, you can convert and resize it, rotate it, and crop it in many ways. You can also add borders, frames, bevels, add of text labels and watermarks, or apply various graphical effect filters. Security features and file management functions are provided. The class can also work on local files, which is useful for batch processing images online, and can circumvent open_basedir restrictions.

          如果下面的網(wǎng)址無法訪問,下載請進:http://freshmeat.net/projects/class_upload_php

          瀏覽 24
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  国产福利18禁 | 看国产乱伦毛片 | 丝袜电影一区 | 优希麻琴无码一区二区三区 | A视频免费观看 |