How To Use A Script On Your Site

Table of contents:

How To Use A Script On Your Site
How To Use A Script On Your Site

Video: How To Use A Script On Your Site

Video: How To Use A Script On Your Site
Video: Hacking Websites With Cross-Site Scripting (XSS Attack Basics) 2024, May
Anonim

A script is a script that allows you to accomplish certain tasks. It refers to interpreted programs, i.e. in case of improper use, it is not capable of leading to global failures in the operation of the site.

How to use a script on your site
How to use a script on your site

Instructions

Step 1

There are many scripting languages, but PHP and Java scripts are the most commonly used. To view and further use the php script, you will need an adapted notepad.

Step 2

Find the script you need on the Internet, for example, on the website https://www.vanta.ru/script/php.php, and download it to your computer. Unpack, open the required file containing information with the code, copy and paste it on the desired page of the site.

Step 3

You can write the script directly into the code. If the site is controlled by the engine, and the script is supposed to be used on all pages of the resource, go to the control panel as administrator and go to the section for editing the template. Change the code by adding the necessary information on the line: Tab name Insert the script code here

Step 4

If the script is supposed to be used on a specific page, then do not change anything in the head of the site, but go straight to the materials section. Open the required page and select the "Html" command, after which the page will be converted into code.

Step 5

Paste in the script and click save. Be sure to look at the final version. If nothing happened or the effect after making the changes is clearly not what it should be, then an error must have crept in. Check everything again: first, the correct location of the tags in the body of the page, and then the script itself. Often on sites from which such data are taken, during the presentation of the code, the author places a brief description of his actions, and when users copy the desired section, they insert everything indiscriminately into the site page. Russian explanations and other symbols that have nothing to do with the program code must be cut out. If it does not help, it means: - the site contains a program that blocks the added script; - the script was written with an error.

Recommended: