Hi, Can anyone tell me how connect a MS QL SERVER over network from PHP Apache Server based on Red Hat Linux OS.
I created simple demo page to test a connection using System DSN MoAd.
"
$sql="Select * from Users"
$conn=odbc_connect('MoAd','sa','sa');
$rs=odbc_exec($conn,$sql);
$odbc_close($conn);
"
But when i run script from Apache Server i get "Fatal error: Call to undefined function: odbc_connect()"
I belive that Linux doesn't have ODBC for MS SQL SERVER which could identify the function call.
Is there solution for problem.
Regards,
Kamkrish
Connection to SQL SERVER over network from PHP Apache Server
Moderator: General Moderators
-
CyberSpatium
- Forum Newbie
- Posts: 21
- Joined: Thu Mar 20, 2003 12:23 pm
- Contact:
Connection to SQL SERVER over network from PHP Apache Server
Thanx for reply CyberSpatium. I got php.ini file...
Can please guide me on what are value that i have chnage so that i can get my MS SQL SERVER up and running.
Regards,
Kamkrish
Can please guide me on what are value that i have chnage so that i can get my MS SQL SERVER up and running.
Regards,
Kamkrish
-
CyberSpatium
- Forum Newbie
- Posts: 21
- Joined: Thu Mar 20, 2003 12:23 pm
- Contact: