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.
Fakeheal каза:За точна фукнция не знам, но може да пробваш така.
Код:<?php $string = "htt://asd.bg"; if (eregi("http://", $string) || eregi("www.", $string)) { echo "съдържа http:// или www."; } else { echo "не съдържа http:// или www."; } ?>
last edited 17:09
if($this->_data_holder['ownerSite'] !='')
{
if(!strstr($this->_data_holder['ownerSite'], "http://") && !strstr($this->_data_holder['ownerSite'], "www."))
{
$this->_data_holder['ownerSite'] = "http://".$this->_data_holder['ownerSite'];
}
elseif(!strstr($this->_data_holder['ownerSite'], "http://") && strstr($this->_data_holder['ownerSite'], "www."))
{
$this->_data_holder['ownerSite'] = str_replace("www.","http://",$this->_data_holder['ownerSite']);
}
}