Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
<?php
function calctime($start,$end)
{
list($msec,$sec)=explode(' ',$start);
$start=(float)$msec+(float)$sec;
list($msec,$sec)=explode(' ',$end);
$end=(float)$msec+(float)$sec;
$time=($end-$start);
return $time;
}
$db=mysql_connect('','','');
mysql_select_db('',$db);
echo 'PHP: ';
$start=microtime();
$results=mysql_query("select * from `users` where `password`='".sha1('')."'");
$end=microtime();
mysql_free_result($results);
echo (calctime($start,$end)*1000000).'<br>';
echo 'MySQL: ';
$start=microtime();
$results=mysql_query("select * from `users` where `password`=sha1('')");
$end=microtime();
mysql_free_result($results);
echo (calctime($start,$end)*1000000).'<br>';
?>
PHP: 342.130661011
MySQL: 143.051147461