Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
file_put_contents(file_get_contents('http://web-tourist.net/text.txt', $file));
<?php
include "config.php";
if (!isset($_GET['id']) || !is_numeric($_GET['id'])) { die ("Грешка"); }
$id = (int)$_GET['id'];
$nums = mysql_query("SELECT * FROM `asd` WHERE `id`='$id'");
while ($row = mysql_fetch_assoc($nums)) {
$url=$row[link];
$sql = "UPDATE `asd` SET downloaded=downloaded+1 where id='$row[id]'";
mysql_query($sql);
header("Location: $url");
}
?>