
Hello Calvin, Locate your php.ini file and make sure every reference to mssql is uncommented. Restart Apache and recheck. Confirm via phpinfo that your php.ini settings are correct. How? ------- <?php // create a file phpinfo.php and place it in a browseable folder phpinfo(); ?> On 6/8/10, Calvin Omari <calvinebarongo@gmail.com> wrote:
Hi thanks am using windows xp for the application and windows server 2003 for the database but I can still use the database in my locval xp machine
this is the code am using and I am getting the following error
<?php /////////////////////////////////////////////////// // // Connection test to external MSSQL Database // ///////////// Configure this /////////////////////
// Host\Instance Name $host_inst = 'ICT-COMARI\SQLEXPRESS'; $username = 'sa'; $password = 'kemmie1*';
///////////// End Configure /////////////////////
// Try connecting to the database
$dbconnect = mssql_connect($host_inst, $username, $password);
if ( $dbconnect ) { echo '<b><font color="green">OK!</font></b>'; } else { echo '<b><font color="red">FAILED</font></b>'; }
?>
Error that I am getting is as follows *Fatal error*: Call to undefined function mssql_connect() in * C:\wamp\www\iBusiness\dbcon.php* on line *19
I am using wamp server
Regards * On Tue, Jun 8, 2010 at 1:08 PM, Dan Muiru <danmuiru@gmail.com> wrote:
Calvine,
Which webserver platform are you workin on? IIS, Xampp, Wampp…….? Also the operating system of where PHP is?
Dan
*From:* skunkworks-bounces@lists.my.co.ke [mailto: skunkworks-bounces@lists.my.co.ke] *On Behalf Of *Calvin Omari *Sent:* Tuesday, June 08, 2010 12:18 PM *To:* Skunkworks Forum *Subject:* [Skunkworks] Php mssql2005 remote sever connection
Hi, I am building an application from my machine machine name (ICT-COMARI) and I want to connect to a database in another network computer called APPSERVER01, any idea how I can do that
Regards
-- Our greatest fear is not that we are inadequate, but that we are powerful beyond measure. It is our light, not our darkness, that frightens us.
Calvin Omari Systems Developer/Designer http://www.facebook.com/barongo
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Our greatest fear is not that we are inadequate, but that we are powerful beyond measure. It is our light, not our darkness, that frightens us.
Calvin Omari Systems Developer/Designer http://www.facebook.com/barongo