
October 15th, 2000, 07:16 AM
|
|
Junior Member
|
|
Join Date: Oct 2000
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
I installed php4 and mysql on my linux box. I ran a simple "phpinfo()"-script, and it worked just fine. The phpinfo gives me the following info:
MySQL Support - enabled
Active Persistent Links - 0
Active Links - 0
Client API version - 3.23.10-alpha
mysql_include -
mysql_lflags -
mysql_libs -
Then I try using php to connect simply to my mySQL server which is working fine:
mysql_connect(127.0.0.1, root, sql);
However, I get the following error in my browser:
Parse error: parse error in /home/httpd/file.php on line 5
I assume that is because php doesn't have a clue what 'mysql_connect' means. I don't know how to 'teach' php that syntax or where to look it up. I'm suspecting it has something to do with the 3 empty:
mysql_include -
mysql_lflags -
mysql_libs -
lines in my phpinfo() result, which should probably point to some directory. Can anyone help me? I'd really appreciate it.
|