English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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

3 answers

That looks like php to me.

If you want someone to identify the error, it would help to include the parse error from your web server's error log.

2007-07-08 02:02:48 · answer #1 · answered by McFate 7 · 0 0

Basically there are two steps when a browser parses straight HTML: 1) Separate text and tags. 2) Figure out which tags are properly written. Most languages (PHP, Java, C++, Visual Basic, Unix script, etc.) have a third step, which is to report errors on improper commands/statements. HTML is unusual in that it doesn't report errors. In general terms, parsing is figuring out if a statement is valid and reporting if it's not. In HTML, a tag is analogous to a statement.

2016-05-21 03:18:45 · answer #2 · answered by ? 3 · 0 0

You have cut and pasted wrong file, for getting help on your assignment there are better websites like http://getafreelnacer.com/

2007-07-08 02:20:50 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers