cluce Posted May 18, 2007 Share Posted May 18, 2007 I currently have a dynamic web site published over my work's domain but I am having trouble connecting to the database over the domain. Currently, mySQL is configured locally. Can someone tell me how to configured this so my coworkers can logon on to the database through their machine. Obviously, I have a connection issue.... Fatal error: Call to undefined function mysqli_connect() in C:\Inetpub\wwwroot\email_info.php on line 8 Any help is greatly appreciated. Quote Link to comment Share on other sites More sharing options...
Wildbug Posted May 18, 2007 Share Posted May 18, 2007 From the PHP manual: on Windows Systems...MySQLi is not enabled by default, so the php_mysqli.dll DLL must be enabled inside of php.ini. Quote Link to comment Share on other sites More sharing options...
cluce Posted May 18, 2007 Author Share Posted May 18, 2007 I already checked there. And it is enabled. I can logon on to my machine. I just cant logon through another machine on the network. I have the website hosted on IIS. Quote Link to comment Share on other sites More sharing options...
Wildbug Posted May 18, 2007 Share Posted May 18, 2007 A call to an undefined function smacks of the extention not being loaded, not really a connection error. Let me see if I understand your situation. You have a PHP-driven website hosted on YOUR computer. The MySQL db is also hosted on YOUR computer. When accessing the website via a web broswer on YOUR computer, it works as expected. However, when attempting to access the website that's hosted on YOUR computer from a web browser on ANOTHER computer, the above error message displayed. Is this correct? Quote Link to comment Share on other sites More sharing options...
cluce Posted May 18, 2007 Author Share Posted May 18, 2007 correct but it only displays the error when I try to logon or access the database. You can still view the web pages you just not logon or register. Quote Link to comment Share on other sites More sharing options...
cluce Posted May 18, 2007 Author Share Posted May 18, 2007 is there a setting to set for mysql to connect via web Quote Link to comment Share on other sites More sharing options...
Wildbug Posted May 18, 2007 Share Posted May 18, 2007 What do you mean by "when I try to logon or access the database?" Do you mean accessing the website's pages which contain PHP involving the mysqli() functions, or actually trying to access the database via PHP on OTHER machines? If the site and the database are on the same computer, mysql is not connecting "via web." It's a localhost situation. Quote Link to comment Share on other sites More sharing options...
cluce Posted May 18, 2007 Author Share Posted May 18, 2007 I mean by logon on is to get access to a web page that requires a username and password. Thats when I get the error Yes. mysql is connected local. I just don't know how to access it via web. Quote Link to comment Share on other sites More sharing options...
Wildbug Posted May 18, 2007 Share Posted May 18, 2007 Excuse the clarifications, but your descriptions are vague/potentially misleading. Have you tried this stuff: http://forge.mysql.com/wiki/PHP_FAQ Quote Link to comment Share on other sites More sharing options...
cluce Posted May 18, 2007 Author Share Posted May 18, 2007 sorry forf being vague. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.