Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

BINARY upload willing to analyze and set up and upload using BINARY

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

BINARY upload is willing to analyze and set up and upload using BINARY. In view of this problem, this article introduces the corresponding analysis and solutions in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

Discuz! Users are required to use binary upload method when uploading PHP program files. The reason is that some program files have been compiled and processed, and the use of general text upload will cause file transfer errors and affect your use. You can find options for binary uploads in all FTP client software, such as LeapFTP, CuteFTP, etc. The following examples illustrate how these two kinds of client software set up binary uploads of PHP files.

LeapFTP: select Parameters (Parameter Settings) from the Options menu, select the "ASCII extension" in the list, select "* .PHP" in the list, click "Delete" on the right, and then click "OK" on the right. If the "* .PHP" project does not exist, you can use it directly without setting it up separately.

CuteFTP: after entering the software, press ALT+F7 to enter Global Options (global option), select [ASCII Type] under "transfer", find the item named "PHP" in the list box on the right, select "Delete" on the right, and click "OK" below. If the "PHP" project does not exist, it can be used directly without having to set it up separately.

How do I change file properties?

You only need to change the file properties during installation if the server uses a Linux/Unix-like operating system, and the server of the Windows system does not need to change the properties. You can select the file or directory for which you want to change the attribute in the FTP software, then right-click to select CHMOD (change file attribute), enter the attribute value (such as 777), and then confirm. If your FTP software prompts that you do not have the right to change the properties, and you do not have the way to log in to the host through Shell, please contact your space service provider and ask it to grant you permission to CHMOD.

Why do you get the same information as program code by visiting all .php pages?

This is because the PHP language support environment on your server is not installed or is not configured correctly. Please install it yourself or seek a solution from the space provider.

Why does the software prompt information like Unable to read xxx bytes in xxx.php in xx?

Because you are not using binary (BINARY) to upload PHP files, please use the FTP software to retransfer all PHP files.

Why does the forum prompt Caches successfully created, please refresh?

This is a prompt for automatic cache updates, which usually occurs after the initial installation is complete, or when the cache file does not exist and is automatically re-established by the system. This prompt is a normal phenomenon and usually appears only once. Just refresh the page.

Why does the forum prompt Can not write to cache files, please check directory. / forumdata/ and. / forumdata/cache/.?

This prompt usually occurs because the Cache file cannot be written. For users of the Unix operating system, check whether the writable properties are set in the. / forumdata/,. / forumdata/cache/, and. / forumdata/templates/ directories, and if you are transferring forums from another server, in addition to setting properties on the above files, you need to do one of the following two steps:

Delete all files in the last two directories of the above three directories

Set all the file and directory properties in the above three directories to 777

If the database does not exist, can the installer build the database automatically?

Discuz! The installer provides this function as long as your account has the permission to build a database, otherwise you can only use the existing database.

In general, what settings do I need to modify in config.inc.php?

The general application only needs to modify the five variables of $dbname,$dbuser,$dbpw,$dbhost,$adminemail, while others leave it by default or wait until they are more familiar with the forum software. The above five variables, except $adminemail, are used to connect to the database. They are all given in the description of your server space. If one of them is not configured correctly, there will be an error that the database cannot connect and cannot use Discuz! Forum. If you do not know this, please consult your space service provider on how to set these four variable parameters.

Post-installation forum prompts Access denied for user@localhost using password YES', how to solve it?

This prompt means that your database connection parameters are set incorrectly, and there are two possibilities: one is the wrong database account or password. The second is that the database account and password are correct, but do not have the right to access the specified database. In this case, please consult your space service provider on how to configure database connection parameters for your space.

Why does the installation succeed and prompt Please delete install.php via FTP after entering the system setup?

Because you do not follow the instructions to delete the install.php, there will be security problems, this prompt automatically disappears after you delete it using the FTP software.

This is the answer to the question about BINARY upload willing to analyze and set up and use BINARY upload. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report