How To Upload A Script To The Site

Table of contents:

How To Upload A Script To The Site
How To Upload A Script To The Site

Video: How To Upload A Script To The Site

Video: How To Upload A Script To The Site
Video: How to Upload | install PHP website script on Hosting and Create database 2024, November
Anonim

The script files used in the operation of Internet sites almost always contain a set of instructions in plain text format. These instructions, written in a high-level programming language, are read and executed either by the server software, or sent to the visitor's browser and executed on the web surfer's computer. Uploading files of this kind to the server is almost no different from the same operation for files with HTML-code of site pages.

How to upload a script to the site
How to upload a script to the site

Instructions

Step 1

If you have access to the site's control panel, use one of its modules, the file manager, to download any files, including scripts. There is no single standard for all systems, so you will have to clarify the sequence of actions in the help for your version of the control system. For example, in the file manager of the UCOZ system, you need to go to the required folder by sequentially clicking the links in the "Name" column, and then click the "Browse" button located under the table. In the dialog box that opens, find the script file and click the "Open" button, and then click on the "Load file" button.

Step 2

Another method can be applied if the hosting company that hosts your site allows access to the server via the ftp protocol. This requires a special program - an ftp client. After entering the ftp server address, login, password, and establishing a connection, you need to find the file with the script in the left panel - this is where the local computer folder tree is usually located. And in the right pane, using the same directory tree, navigate to the required folder on the server. Then drag and drop or double-click the script and the application will move to the specified directory.

Step 3

You can not move the file from the local computer, but use the option to create a file on the server - do it, for example, using the same file manager from the site's control panel. In this case, the browser will display a form for filling out with a set of fields, among which there will be a field for entering the contents of this file.

Step 4

Open the original script file on your computer - you can do this with any text editor. Select all lines of code, copy them and drag them to a form field open in a browser. Do not forget to correctly indicate the extension of the file being created in this form, otherwise the script will not be recognized by the server software.

Recommended: