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 Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

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)

Hot Topics

Java Tutorial
1669
14
PHP Tutorial
1273
29
C# Tutorial
1256
24
PHP: A Key Language for Web Development PHP: A Key Language for Web Development Apr 13, 2025 am 12:08 AM

PHP is a scripting language widely used on the server side, especially suitable for web development. 1.PHP can embed HTML, process HTTP requests and responses, and supports a variety of databases. 2.PHP is used to generate dynamic web content, process form data, access databases, etc., with strong community support and open source resources. 3. PHP is an interpreted language, and the execution process includes lexical analysis, grammatical analysis, compilation and execution. 4.PHP can be combined with MySQL for advanced applications such as user registration systems. 5. When debugging PHP, you can use functions such as error_reporting() and var_dump(). 6. Optimize PHP code to use caching mechanisms, optimize database queries and use built-in functions. 7

PHP vs. Python: Understanding the Differences PHP vs. Python: Understanding the Differences Apr 11, 2025 am 12:15 AM

PHP and Python each have their own advantages, and the choice should be based on project requirements. 1.PHP is suitable for web development, with simple syntax and high execution efficiency. 2. Python is suitable for data science and machine learning, with concise syntax and rich libraries.

PHP and Python: Comparing Two Popular Programming Languages PHP and Python: Comparing Two Popular Programming Languages Apr 14, 2025 am 12:13 AM

PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

PHP in Action: Real-World Examples and Applications PHP in Action: Real-World Examples and Applications Apr 14, 2025 am 12:19 AM

PHP is widely used in e-commerce, content management systems and API development. 1) E-commerce: used for shopping cart function and payment processing. 2) Content management system: used for dynamic content generation and user management. 3) API development: used for RESTful API development and API security. Through performance optimization and best practices, the efficiency and maintainability of PHP applications are improved.

The Enduring Relevance of PHP: Is It Still Alive? The Enduring Relevance of PHP: Is It Still Alive? Apr 14, 2025 am 12:12 AM

PHP is still dynamic and still occupies an important position in the field of modern programming. 1) PHP's simplicity and powerful community support make it widely used in web development; 2) Its flexibility and stability make it outstanding in handling web forms, database operations and file processing; 3) PHP is constantly evolving and optimizing, suitable for beginners and experienced developers.

PHP and Python: Different Paradigms Explained PHP and Python: Different Paradigms Explained Apr 18, 2025 am 12:26 AM

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP vs. Other Languages: A Comparison PHP vs. Other Languages: A Comparison Apr 13, 2025 am 12:19 AM

PHP is suitable for web development, especially in rapid development and processing dynamic content, but is not good at data science and enterprise-level applications. Compared with Python, PHP has more advantages in web development, but is not as good as Python in the field of data science; compared with Java, PHP performs worse in enterprise-level applications, but is more flexible in web development; compared with JavaScript, PHP is more concise in back-end development, but is not as good as JavaScript in front-end development.

PHP and Python: Code Examples and Comparison PHP and Python: Code Examples and Comparison Apr 15, 2025 am 12:07 AM

PHP and Python have their own advantages and disadvantages, and the choice depends on project needs and personal preferences. 1.PHP is suitable for rapid development and maintenance of large-scale web applications. 2. Python dominates the field of data science and machine learning.

See all articles