Написать небольшой код на php
Имеется php (прикреплен) файл с кодом на ввод номеров для дозвона.
Нужно что бы номера ввести в стационарном режиме и что бы код автоматически обновлялся каждые 5 минут.
Можно к примеру отсчет до автоматического выполнения
Applications 1
-
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>!!!!!</title>
</head>
<body>
<?php
system ("pkill auto");
system ("pkill auto2");
$handle = fopen("site.date", "r");
if ($handle==0) {
$startT="09:00";
$endT ="18:00";
} // if ($handle=0)
else {
$startT = fgets($handle);
$endT = fgets($handle);
$startT = mb_strcut ($startT, 0, 5);
} // else if ($handle=0)
fclose($handle);
?>
<form action="/post1.php">
<p>Введите номер 1: <input type="tel" name="phone1" pattern="[0-9]{10}" required></p>
<p>Введите номер 2: <input type="tel" name="phone2" pattern="[0-9]{10}" required></p>
<p>Введите номер 3: <input type="tel" name="phone3" pattern="[0-9]{10}" required></p>
Введите номер 4: <input type="tel" name="phone4" pattern="[0-9]{10}" required>
<input type="submit">
<span>Формат ввода: 0501234567</span>
</form>
</body>
</html>
Вместо формы вписать стационарно 4 номера и вместо кнопки отправить нужно что бы каждые 300 сек отправляло автоматически
-

1. Если писать JavaScript таймер, то потребуется, чтобы страничка была открыта в брузере.
2. Если установить прогон через cron каждые 300 секунд, то сервер будет автоматом прогонять скрипт всегда. А уже в коде, я вижу проверку на время, чтобы звонки шли только с 09-18ч -
Да так и нужно что бы в браузере открыта была страница
-
Current freelance projects in the category PHP
Fix CLSIt is necessary to fix the Cumulative Layout Shift through code PageSpeed does not see this problem, but through Google Chrome, it is visible that there is a layout shift for the desktop version of the page According to Google Search, there is an error regarding the speed of… PHP, Web Programming ∙ 2 days 10 hours back ∙ 29 proposals |
Transfer the fully ready adaptive HTML5 structure to WordPress.
267 USD
I am looking for an experienced WordPress developer who can convert our meticulously prepared static HTML5/CSS3 code into a high-performance custom WordPress theme. The frontend is almost ready (about 99%): semantic markup, metadata, and multilingual structure (hreflang) are… Content Management Systems, PHP ∙ 2 days 12 hours back ∙ 64 proposals |
GoPos IntegrationHello, has anyone done an integration of GoPos with a custom website for a restaurant in Poland? I need help, their documentation is very sparse, there is only swagger and it lacks descriptions. https://app.gopos.io/doc/swagger-ui/index.html The essence is this: we used their… PHP, Web Programming ∙ 3 days 4 hours back ∙ 25 proposals |
Write meta data for ALT using AIA website on Laravel, the site has many images for which it is necessary to automatically generate correct semantic and relevant ALT descriptions for the images, with the possibility of verification. AI & Machine Learning, PHP ∙ 4 days 2 hours back ∙ 35 proposals |
A developer is needed to complete and integrate a project for automatic data collection and processing.
16 USD
The main part of the parser has already been implemented. The parser works in a Windows environment through Microsoft Edge: the site has anti-bot protection, so data collection is performed not through direct HTTP requests, but through a live browser session. The scripts control… PHP, Web Programming ∙ 4 days 8 hours back ∙ 26 proposals |