My PHP application requires the mysqli extension, but it does not appear to be enabled on my account. Can you please enable it, or is there a way to use MySQL with PHP on InfinityFree?
Welcome to the community.
MySQLi is enabled on free hosting and you can create and connect to a database. The phpinfo() function will not show detailed information about server due to security, but it is enabled in free hosting.
As support team replied.
Pdo and mySQLi and GD already Enabled. Those working fine with my news website. No any problem.
Check your code page.
Includes config or ur database connection method.
Yeah, I’ve also checked that it’s enabled, but the problem is occuring likely because of PHP version. Can you confirm that the PHP version is not less than 5.6 and that the server uses PHP 7+
Your own screenshot confirms it. It shows the PHP version in use on the first line of the page.
But yes, MySQLi is fully supported and the extension is enabled. We don’t do anything weird, or have any severely outdated software that could cause it to malfunction.
You probably won’t take my word for it, but looking for possible server issues that cause this issue probably won’t help you, because you won’t find any because there aren’t any.
Can you please tell us a bit more about what exactly made you believe that mysqli was missing? Are you writing custom code and is the database connection not working? Or are you trying to install software that says it’s missing?
If you can tell us the full problem you’re having, maybe we can help try to find a way to actually solve it.