Home php教程 php手册 在线管理PHP网站文件

在线管理PHP网站文件

Jun 21, 2016 am 08:57 AM
http php phpcms

  EndTo是一名网络爱好者,通过努力终于开通了自己的网站,但是随着网站的日益壮大,网站空间里的文件显得越来越杂乱。一般的FTP文件管理方式需要下载相关软件,不能随时随地进行网站维护,而服务商提供的在线管理系统登录过程繁琐且功能简陋。如何才能快速有效地对网站文件进行管理维护,从而使它们变得整齐有序呢?现在,就让EndTo来介绍他在PHP系统环境下,从Web界面管理网站文件的方法。

  安装设置 一步到位

  在线管理PHP网站文件,需要使用一款名为《PHPCMS文件管理器》的程序软件。该软件大小仅为82 KB,并且免费。它的优点是采用 PHP + AJAX 的方式构建,客户端使用缓存技术,减轻了服务器的负担。在使用之前,我们需要首先确认网站空间支持Session和Zend组件,并且PHP版本大于4.10。

  接着下载PHPCMS文件管理器主文件(下载地址:http://down.chinaz.com/S/16681.asp),将程序解压缩后把文件夹“up load”以及其中的全部文件上传到PHP网站空间。而后将需要进行整理的文件以及UPLOAD文件夹更改为可读写模式。方法是在FTP软件中登录网站空间,把这些文件目录的权限属性更改为777,即选中可读、可写、可执行复选框。

  然后执行刷新命令,确认安装无误后,在浏览器中输入文件地址,即“http://你的域名/upload/index.php”,按回车键后就会出现简洁的程序登录界面(图1)。

  最后使用默认的用户名和密码“adm in”登录系统,程序会自动转入修改密码的页面,在密码文本框中输入默认密码以及新密码,再设置程序所在的目录,最后点击“提交”按钮即可。

  提示:程序目录可以设置在较为隐蔽的位置,如放置于二级甚至更多级的目录中,以减少软件被恶意使用的几率。

  批量操作 随心所欲

  文件管理器程序可以进行几乎所有的文件管理操作。它不仅具备一般的上传、下载、新建、重命名文件等功能,还提供了诸多实用的其它功能,可以依靠这些功能完成对网站的管理维护。

  在管理器主页面的功能菜单中选择“上传文件”按钮,将在网页最下方打开文件上传模块(图2),点击“浏览”按钮选择本地文件,然后再点击上传即可。程序中的文件容量栏目会自动显示该文件占用网站空间的大小,文件大小会以KB或Byte两种单位显示。我们可以根据此功能方便地对网站文件进行整理归类操作;点击下载超链接可以将网站文件下载到本地硬盘,操作方式与普通下载方式无异,还可以使用迅雷等下载工具进行文件的高速下载;软件还提供了功能强大的编辑器(图3),点击编辑连接后会显示文件的源代码,它还提供了本地预览与在线预览的功能,使网站文件的调试工作变得简单高效。

  在实际应用中,常常有多个文件需要修改。单击“增加”按钮,打开文件选择模块,添加更多的文件。软件对文件单次上传数量没有限制,但数量越多上传速度就会相应变慢。

  提示:在文件数量较多时程序可能会出现短暂不能响应的现象,这时只须等待其自动恢复即可。如果直接关闭浏览器,会出现文件丢失或损坏的错误。

  数据备份 一气呵成

  在网站维护中,站长常常要对网站数据进行备份,以免出现意外情况而造成数据的损失。一般的下载备份方法不仅麻烦而且速度缓慢。这时我们就可以使用程序提供的文件压缩功能来快速进行网站数据的备份。
首先将需要备份的网站文件前的复选框选中,然后点击“添加到压缩文件”超链接,接着在弹出的对话框中输入文件名称,注意一定要输入以zip为后缀的压缩文件格式。确定后稍等片刻,一个文件压缩包就制作完成了。将它下载,放置在安全的地方保存。

  如果不幸出现数据丢失等问题,我们就可以通过备份来使网站恢复正常,方法是先将备份文件上传到网站空间,接着从程序中进入该文件所在的文件夹,点击zip备份文件后的“解压”按钮,然后选择要解压到的文件目录,便可成功恢复网站数据。

  提示:下载备份文件到本地后,最好将网站空间中的备份文件删除,这样做一是可以释放多余的空间,二是保证了数据的安全性。

  远程下载 方便快捷
  
  软件提供了独有的远程文件下载功能,目的是将其它服务器里的文件直接下载到网站服务器中。它的好处是由于两者都是高速Web服务器,文件传输的速度比直接从本地上传要快很多,可以方便地进行网站程序安装等操作。

  方法是点选远程下载功能后,在模块中输入远程文件地址和新的文件名称(如不需要修改可略过),最后点击“下载”按钮即可。需要注意的是,如果传输的文件为压缩格式,还需要使用相应的远程解压缩工具处理文件。

  提示:如果使用的是ASP类型的空间,则可以选择《秋忆文件管理器》来进行网站的在线管理(下载地址:http://down.chinaz.com/S/18106.asp),该软件的安装和使用方法与PHPCMS文件管理器类似,这里不再赘述。



Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

7 PHP Functions I Regret I Didn't Know Before 7 PHP Functions I Regret I Didn't Know Before Nov 13, 2024 am 09:42 AM

If you are an experienced PHP developer, you might have the feeling that you’ve been there and done that already.You have developed a significant number of applications, debugged millions of lines of code, and tweaked a bunch of scripts to achieve op

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

PHP Program to Count Vowels in a String PHP Program to Count Vowels in a String Feb 07, 2025 pm 12:12 PM

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

Explain late static binding in PHP (static::). Explain late static binding in PHP (static::). Apr 03, 2025 am 12:04 AM

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

What are PHP magic methods (__construct, __destruct, __call, __get, __set, etc.) and provide use cases? What are PHP magic methods (__construct, __destruct, __call, __get, __set, etc.) and provide use cases? Apr 03, 2025 am 12:03 AM

What are the magic methods of PHP? PHP's magic methods include: 1.\_\_construct, used to initialize objects; 2.\_\_destruct, used to clean up resources; 3.\_\_call, handle non-existent method calls; 4.\_\_get, implement dynamic attribute access; 5.\_\_set, implement dynamic attribute settings. These methods are automatically called in certain situations, improving code flexibility and efficiency.

See all articles