if(isset($_POST['submit']))
{
$file = $_POST['path'];
}
$log = file($file);
/*$host = "localhost";
$user = "root";
$pswd = "1234";
$conn = mysql_connect($host,$user,$pswd) or die(mysql_error());
mysql_select_db("proxylog") or die(mysql_error());
$match = "select * from accesslog";
$query=mysql_query($match) or die(mysql_error());*/
//$num_rows = mysql_num_rows($query);
echo $file;
//echo $log;
foreach($log as $line)
{
echo $line;
}
/*$host = "localhost";
$user = "root";
$pswd = "1234";
$conn = mysql_connect($host,$user,$pswd) or die(mysql_error());
mysql_select_db("proxylog") or die(mysql_error());
$ip="yuyu";
$date="huhu";
$sql = "insert into accesslog(UserIP,Action)values('$ip','$date')";
$result1 = mysql_query($sql) or die(mysql_error());
mysql_close($conn);*/
//header( 'Location: frame.html' ) ;
?>
2007-07-07
23:17:07
·
3 answers
·
asked by
pisces clover
1
in
Computers & Internet
➔ Programming & Design