config root man

Current Path : /home/design/public_html/

Linux rs105.nsresponse.com 3.10.0-614.10.2.lve1.4.55.el7.x86_64 #1 SMP Tue Jun 20 08:59:12 EDT 2017 x86_64
Upload File :
Current File : /home/design/public_html/random.php

<?php

$dbh=mysql_connect ("localhost", "design_concept", "minusw") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("design_randomdb", $dbh); 

$id=1;
$g=0;
for($i=0; $i<100; $i++){
$g=$g+rand(0, 1);}

//$m_query = "INSERT INTO `valori_grafic_1` ( `id` , `grafic` ) 
    		//VALUES ( '$id', '$g' ); ";
//$m_query="UPDATE valori_grafic_1 SET grafic='$g' where id=1";
$data = "text1=".$g ;
//echo file_put_contents("http://www.concept-w.com/test.txt","Hello World. Testing!");
 //fwrite("test1.txt","Hello World. Testing!");

//$str = $g;
$out = fopen("text1.txt", "w");
fwrite($out, $data);
fclose($out);


//$send_form=mysql_query($m_query, $dbh);
//mysql_close($dbh);
?>

Man Man