I am writing the simplest PHP8 script to WEB-interface connection to MariaDB 10.5 in Rocky 9.1. Some years ago I used mysql extension to connect the MySQL 5.0 Database like below,
<?php
mysql_connect ('localhost', 'my_username', 'password') or die ...
Then recent textbook told me extension mysql_connect is no longer available to use. But Textbook suggest to use instead API mysqli (MySQL Improved). Now I tried to use mysqli. Up to now, no success yet. Thus here comes my question. How could I verify My WEB-SERVER Rocky9.1 has been loaded mysqli API already or not yet?
Up to now, I did simplely the following MariaDB loading,
# dnf install mariadb mariadb-server
That's all I installed when it comes to Database is concerned.
MariaDB is perfectly fine as judged by Terminal, CLi interface. I need to develop WEB-browser interface to connect MariaDB as a GUI. Thanks, any comment or any suggestion, I am waiting.
Hi ! Everyone, in after 20 minutes or so, I found it out how to check the loading status of mysqli (MySQL Improved). My WEB-SERVER has not been loaded. I checked it by,
$ php -m | grep mysqli
mkido@localhost$php -m | grep mysqli
PHP Warning: PHP Startup: Unable to load dynamic library ‘mysqli’ (tried: /usr/lib64/php/modules/mysqli (/usr/lib64/php/modules/mysqli: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/mysqli.so (/usr/lib64/php/modules/mysqli.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
~/bin
mkido@localhost$