<form action="" method="post">
<input type="textbox" required name="min">
<input type="textbox" required name="max">
<input type="submit" name="Our number is"> // тут должно быть name="submit"
<p>
<?php
if($_POST["submit"]) // тут ошибка
{
$min = $_POST["min"];
$max = $_POST["min"];
$n = rand ($min , $max);
echo $n;
}
?>
</p>
/var
/www
/talapai.local
/vendor
/monolog
/monolog
/src
/Monolog
/Handler
/Curl
/Util.php
/**
* Executes a CURL request with optional retries and exception on failure
*
* @param resource $ch curl handler
* @throws \RuntimeException
*/
public static function execute($ch, $retries = 5, $closeAfterDone = true)
{
while ($retries--) {
if (curl_exec($ch) === false) {
$curlErrno = curl_errno($ch);
if (false === in_array($curlErrno, self::$retriableErrorCodes, true) || !$retries) {
$curlError = curl_error($ch);
if ($closeAfterDone) {
curl_close($ch);
}
throw new \RuntimeException(sprintf('Curl error (code %s): %s', $curlErrno, $curlError));
}
continue;
}
if ($closeAfterDone) {
curl_close($ch);
}
break;
}
}
}
Arguments
"Curl error (code 3): <url> malformed"