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.
забравил си 1 скобаembaka каза:Код:$id = $_GET['id']; if(isset($id) && is_numeric($id)) echo "ОК url е правилен"; } else{ echo "Грешка": }
if(preg_match('/^see\d\d$/', променлива)) {
echo "OK, url е правилен";
} else {
echo "Грешка";
}
<?php
if(preg_match('/^see\d\d$/i', $_GET['param'], $matches))
echo "OK";
else
echo "Ne";
?>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?param=$1 [L]
<?php
$a = $_SERVER['HTTP_HOST'];
$b = $_SERVER['REQUEST_URI'];
$c = "http://".$a.$b;
echo $c;
?>