Project

General

Profile

Bug #1825 » logsendtest.php

Fake connection test php - azilber, 2009-10-15 21:30

 
<?php
if(lcg_value() < 0.5) {
echo "Throwing Exception... server: xxxx.com";
throw new Exception('This is not a real error, testing logsend. Server: xxxx.com');
}
else {
echo "Fake Mysql Connetion...Server: xxxxx.com";
mysql_connect("not_a_real_host","user","pass");
}
?>
(2-2/3)