--------------------------------------------------------------------------
[root@knot php]# php connect.php3
X-Powered-By: PHP/4.0.4pl1
Content-type: text/html
<br>
<b>Warning</b>: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
in <b>/www/php/connect..php3</b> on line <b>2</b><br>
<br>
<b>Warning</b>: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
in <b>/www/php/connect.php3</b> on line <b>3</b><br>
<br>
<b>Warning</b>: MySQL: A link to the server could not be established in <b>/www/php/connect.php3</b> on line <b>3</b><br>
----------------------------------------------------------
a kada isti fajl pozovem iz browsera moze lepo da se konektuje....
connect.php3 izgleda ovako:
-------------------------------------------------
<?
mysql_connect("localhost","root");
mysql_select_db("proba");
// ide code posle ovoga.
?>
-------------------------------------------------
ovo ne bi bilo problem da meni ne treba da se izvrsava iz shella, ali treba posto treba da ga ubacim u crontab.
isti problem sa konektovanjem je kad hocu iz perl-a da se konektujem....
Excellence, then, is not an act,
but a habit."
-Aristotle