no2pencil, on 13 November 2012 - 10:55 AM, said:
khedron, on 13 November 2012 - 01:09 PM, said:
Local host... puttin' the local back in local traffic since 127.0.0.0/8
Also, to clean up grep you can always add | grep -v grep to the command.
Posted 13 November 2012 - 11:19 AM
no2pencil, on 13 November 2012 - 10:55 AM, said:
khedron, on 13 November 2012 - 01:09 PM, said:
Posted 13 November 2012 - 09:45 PM
Posted 13 November 2012 - 09:57 PM
TheChefSLC, on 13 November 2012 - 03:53 PM, said:
Posted 13 November 2012 - 10:11 PM
khedron, on 14 November 2012 - 04:45 AM, said:
netstat -an | grep "LISTEN " tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN tcp6 0 0 :::80 :::* LISTEN tcp6 0 0 ::1:631
Posted 15 November 2012 - 01:28 PM
mysql_connect("$host",$"user","$password");
was missing "s before and after the variables .
<?php ini_set(display_errors , '1'); ?>
<html>
<head><title>Test MySQL</title></head>
<body>
<!-- mysql_up.php -->
<?php
$host="localhost";
$user="root";
$password="apollo";
mysql_connect("$host","$user","$password");
$sql="show status";
$result = mysql_query($sql);
if ($result == 0)
echo "<b>Error " . mysql_errno() . ": "
. mysql_error() . "</b>";
else
{
?>
<!-- Table that displays the results -->
<table border="1">
<tr><td><b>Variable_name</b></td><td><b>Value</b>
</td></tr>
<?php
for ($i = 0; $i < mysql_num_rows($result); $i++) {
echo "<TR>";
$row_array = mysql_fetch_row($result);
for ($j = 0; $j < mysql_num_fields($result); $j++)
{
echo "<TD>" . $row_array[$j] . "</td>";
}
echo "</tr>";
}
?>
</table>
<?php } ?>
</body></html>
