web方式ftp

psh18793966189

psh18793966189

2016-01-29 14:43

web方式ftp,web方式ftp
  <?php

/* $Id: ftp.php,v 2.2 2002/03/12 23:21:28 pauls Exp $ */

/* This software came from http://inebria.com/ */

/* Copyright (c) 2000
      Paul Southworth.  All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote
    products derived from this software without specific prior
    written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */

/* Configuration Options */

$phpftp_host="localhost";
$phpftp_version="2.2";

/* Comment this out if you don't want the version footer */

$show_version_footer=1;

/* How large a file will you accept?  You may also need to edit your
   php.ini file and change upload_max_filesize appropriately */

$max_file_size="1000000";

/* The temporary directory $phpftp_tmpdir must exist and be writable
   by your web server.
   Hint:  mkdir /var/tmp/xfers && chmod 1777 /var/tmp/xfers */

$phpftp_tmpdir="/var/tmp/xfers";

/* $use_mime_lookup
   Turning this on creates a dependency upon the
   http://www.inebria.com/mime_lookup/ MIME type lookup library.
   Setting this variable to "1" enables it.  "0" disables.
   If you turn it on, put the mime_lookup.php file in the same directory
   as ftp.php and uncomment the 'include("mime_lookup.php");' statement. */

$use_mime_lookup="0";
/* include("mime_lookup.php"); */

/* We enclose the top and bottom in functions because sometimes
   we might not send them (ie, in a file-download situation) */

function phpftp_top() {
    global $phpftp_version;
?
<!-- function phpftp_top --
<html
<head
<titlePHP FTP Client <?php echo $phpftp_version; ?</title
</head
<body bgcolor="#ffffff"
<?php
}

function phpftp_bottom() {
    global $phpftp_version;
    global $show_version_footer;
?
<!-- function phpftp_bottom --
<?php
if (isset($show_version_footer)) {
?
<p<font size=-2This is <a href="http://inebria.com/phpftp/"PHP FTP</a
version <?php echo $phpftp_version; ?</font</p
<?php
}
?
</body
</html
<?php
}

/* This is the form used for initially collecting username/passwd
展开更多 50%)
分享

猜你喜欢

web方式ftp

PHP
web方式ftp

在线实时开通WEB及FTP源程序

ASP
在线实时开通WEB及FTP源程序

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

怎样在电脑新建FTP 新建FTP详解教程

计算机应用技术
怎样在电脑新建FTP   新建FTP详解教程

文件FTP传送工具FTP Rush实用技巧

电脑入门
文件FTP传送工具FTP Rush实用技巧

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

WEB交互设计中的页面表达常用方式

平面设计 海报设计 广告设计 画报设计 签名设计 服装设计 名片设计 画册设计 版式设计 商标设计
WEB交互设计中的页面表达常用方式

Linux 核心--17.关于Linux的Web与FTP站点 --18.作者简介

Linux Linux命令 Linux安装 Linux编程 Linux桌面 Linux软件 Linux内核 Linux管理
Linux 核心--17.关于Linux的Web与FTP站点 --18.作者简介

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

《暴走武侠》攻略之新手玩家注意的小技巧

《暴走武侠》攻略之新手玩家注意的小技巧

如何使用Oracle10gR2'sRMAN进行加密备份

如何使用Oracle10gR2'sRMAN进行加密备份
下拉加载更多内容 ↓