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.
Изобщо не ми трябва това!cheri каза:<html>
<head>
<script language="JavaScript">
function redir() {
window.location='url на сайта ти';
}
</script>
</head>
<body onload="setTimeout('redir()',0)">
</body>
</html>
<?php
$string="stisa sad 12n 12o 1 http://web-tourist.net/x.php das wq 21";
$pattern="/(\b(https?):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/i";
$newstring=preg_replace($pattern,"<a href='$1'>$1</a>",$string);
echo $newstring;
?>
$pattern='@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@';
function make_clickable($text) {
$ret = ' ' . $text;
$ret = preg_replace("#([\t\r\n ])([a-z0-9]+?){1}://([\w\-]+\.([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^ \"\n\r\t<]*)?)#i", '\1<a href="\2://\3" target="_blank">\2://\3</a>', $ret);
$ret = preg_replace("#([\t\r\n ])(www¦ftp)\.(([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^ \"\n\r\t<]*)?)#i", '\1<a href="http://\2.\3" target="_blank">\2.\3</a>', $ret);
$ret = preg_replace("#([\n ])([a-z0-9\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $ret);
$ret = substr($ret, 1);
return($ret);
}
Мерси станаmarian каза:$pattern съшо може да е:Код:<?php $string="stisa sad 12n 12o 1 http://web-tourist.net/x.php das wq 21"; $pattern="/(\b(https?):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/i"; $newstring=preg_replace($pattern,"<a href='$1'>$1</a>",$string); echo $newstring; ?>
Код:$pattern='@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@';