I am trying to run mysqli on my remote windows server and I keep getting this error
Fatal error: Call to undefined function mysqli_connect()
I assume mysqli is not installed on my remote server. So how do I install mysqli on my remote server.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
mysqliis a PHP extension. So all you have to do is enable that extension in yourphp.inifile.Uncomment:
To:
If using a share hosting account, you may have to create a
.htaccessand point it to your own copy ofphp.ini.To do that, you could try the following:
If php is installed as a module: In your
.htaccessputSetEnv PHPRC /location/todir/containing/phpinifileIf php is installed as a cgi extension, put your
php.iniin thecgi-binfolder.For some hosts, you can also just put your
php.iniin the folder where you would usually put your.htaccessfiles.