- Cell Phones 1450
- Desktop 740
- Editors 243
- Education, Science & Engineering 1367
- Games 2833
- Internet 4429
- Scripts 2731
- Active Advertising Systems 112
- Auctions 33
- Banner Networks 16
- Casinos, Lotteries 344
- CMS 274
- Exchangers 64
- Forums, Message Boards 107
- Pop Ups 27
- Search Engines 48
- SEO Scripts 122
- Services 216
- Sites Layout 123
- Social Networks 28
- Stores 290
- Others 833
- FOREX 702
- Autocall, Voice Mail 11
- Chat 94
- Dowloading and Connection 61
- FTP 14
- ICQ 26
- Local Networking 46
- Management 54
- SMTP 7
- Stock Market 18
- Web Design 333
- Others 332
- Scripts 2731
- Multimedia & Graphics 1113
- Office software 722
- PC 482
- Programming 2049
- Security 1187
- SEO 294
- Software for Pocket PC 182
- Utilities 1214
PHP script for direct download of Yandex disk files #12
Refunds: 0
Uploaded: 23.08.2020
Content: 0012 PHP скрипт скачивания файлов яндекс диск.zip 2,41 kB
Seller

Seller will give you a gift certificate in the amount of
Product description
As a rule, when downloading a file from the Yandex disk file hosting, you need to go to the download page and perform certain actions. This PHP script allows you to create a direct link to download files from the Yandex Disk service by clicking, without going to the page. Such a link is designed and looks like a regular link. When you click on the link, a dialog box for saving the file immediately opens in the browser.
======= How the script works
The advantage of this method is that you do not need to use third-party services to get a direct link to the file. The availability of your link will not depend on the availability of these services. That is, if a third-party service "falls", then all your links will become unavailable. And the script yandex.php, will always be available on your site.
When you click on such a link, the first request goes to the site where the PHP file is located yandex.php on your server. The file forms a direct link and then the main traffic comes from Yandex.disk.
======= Installing the script
To download files from Yandex. Disk via a direct link, without using third-party services, you need to place one file on your server yandex.php. After that, at the beginning of each link to yandex. disk, it is enough to add the path:
http://www.mysite.ru/yandex.php?url=
where,
www.mysite.ru - the address of your site;
yandex.php - file for straightening the link;
url= link to the Yandex. disk file;
For example, there was a link:
<a href="https://yadi.sk/d/ClM2fIaUtxkQV">Download</a>
Became a link:
<a href="http://www.mysite.ru/yandex.php?url=https://yadi.sk/d/ClM2fIaUtxkQV">Download</a>
======= Examples of links
A single PHP file is used yandex.php, only links to Yandex. disk files will change:
http://www.mysite.ru/yandex.php?url=https://yadi.sk/d/ClM2fIaUtxkQV
http://www.mysite.ru/yandex.php?url=https://yadi.sk/d/L-tMgrfrtxna3
http://www.mysite.ru/yandex.php?url=https://yadi.sk/i/yfK68WxztxVtN
http://www.mysite.ru/yandex.php?url=https://yadi.sk/i/ye-fAkuktxdG6
The HTML code of the link for the user will have the following form:
<a href=”http://www.имя_сайта.ru/yandex_disk.php?url=https://yadi.sk/адрес_файла”>Download</a>
======= Output of images and images
Also, the script can be used to output images on an HTML page:
<img src=”http://www.имя_сайта.ru/yandex_disk.php?url=https://yadi.sk/адрес_файла”>
In this case, the image located on yandex. disk will be displayed on the site page as a normal html image.
======= Requirements for the script to work
- The script runs on your server in PHP.
- In the Yandex Disk cloud, the downloaded file must be accessed via a link and the number of downloads must not exceed the maximum limit set by Yandex disk.
- For some sites, on the pages where the link is installed, it is necessary to add the following tag in the <head> header:
<meta name="referrer" content="no-referrer">
Additional information
========== Гарантии и Лицензия (Warranty and License)
http://www.mobile-island.narod.ru/license2.html
Feedback
1Period | |||
1 month | 3 months | 12 months | |
0 | 0 | 0 | |
0 | 0 | 0 |
