tpstudent Posted September 13, 2008 Share Posted September 13, 2008 Hi, I had server which I had uploaded my files in it. However, there was an error faced. When I tried to view it, it has a fatal error. Class 'mysqli' not found in /home/imindss/public_html/istaff/tryP.php on line 28 I had put in this in the php.ini: ;extension=php_mysqli.dll ;extension=mysqli.so But it still has error. can anyone help? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/ Share on other sites More sharing options...
gaza165 Posted September 13, 2008 Share Posted September 13, 2008 you have got rid of the ; i assume in the php.ini to make that service active and usable?? Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-640405 Share on other sites More sharing options...
wildteen88 Posted September 13, 2008 Share Posted September 13, 2008 I'd get in touch with your host to see if they support the mysqli extension. The mysqli extension is only available with PHP5, if your host use PHP4 you'll need to either modify you code to use the standard mysql extension or move hosts which profiles your sites requirements. Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-640408 Share on other sites More sharing options...
tpstudent Posted September 13, 2008 Author Share Posted September 13, 2008 I'm not really sure if it supports php 5. Can you all help me see. http://istaff.iminds.sg Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-640422 Share on other sites More sharing options...
Mchl Posted September 13, 2008 Share Posted September 13, 2008 Use phpinfo() function to check PHP version and available extensions Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-640423 Share on other sites More sharing options...
tpstudent Posted September 13, 2008 Author Share Posted September 13, 2008 it is PHP Version 5.2.5. It does support SQLITE. is it the same? the above link is the phpinfo. must i add anything to the php files? Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-640424 Share on other sites More sharing options...
Mchl Posted September 13, 2008 Share Posted September 13, 2008 SQLITE is not mysqli. If you can't see mysqli in your phpinfo(), then it's not installed in your system. Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-640428 Share on other sites More sharing options...
tpstudent Posted September 13, 2008 Author Share Posted September 13, 2008 oh...then how do i installed it? or must i add anything to the php.ini? Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-640429 Share on other sites More sharing options...
Mchl Posted September 13, 2008 Share Posted September 13, 2008 It depends on the OS you use In windows you have to find ;extension=php_mysqli.dll in your php ini, and change it to extension=php_mysqli.dll In Linux you have to recompile PHP I believe, but don't quote me on this. Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-640434 Share on other sites More sharing options...
tpstudent Posted September 13, 2008 Author Share Posted September 13, 2008 Hi, I add that in the php.ini. but still got error. dont know why. Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-640446 Share on other sites More sharing options...
kenrbnsn Posted September 13, 2008 Share Posted September 13, 2008 Did you restart your webserver? Ken Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-640449 Share on other sites More sharing options...
tpstudent Posted September 13, 2008 Author Share Posted September 13, 2008 How do i actually restart the webserver? I was given a sub domain to upload my files. i uas filezila to upload my files how do i actually restart it? Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-640450 Share on other sites More sharing options...
wildteen88 Posted September 13, 2008 Share Posted September 13, 2008 How do i actually restart the webserver? I was given a sub domain to upload my files. i uas filezila to upload my files how do i actually restart it? Are you using a web host? If you are you should get in contact with them for how to configure PHP. Not all hosts will allow you to configure PHP. Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-640454 Share on other sites More sharing options...
tpstudent Posted September 13, 2008 Author Share Posted September 13, 2008 I dont think i am the web host. I get the sub domain from my lecturer. so i dont think i can configure the PHP Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-640476 Share on other sites More sharing options...
tpstudent Posted September 14, 2008 Author Share Posted September 14, 2008 Hi, Do you all have any recommendations of domain server which supports mysqli? ??? Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-640920 Share on other sites More sharing options...
wildteen88 Posted September 14, 2008 Share Posted September 14, 2008 You mean a webhost? Any host which runs PHP5 should support mysqli. Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-640992 Share on other sites More sharing options...
tpstudent Posted September 14, 2008 Author Share Posted September 14, 2008 You said any host that run PHP 5 support mysqli. the version that the host i got is version5.2.5. isnt it should have mysqli?? Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-641234 Share on other sites More sharing options...
PFMaBiSmAd Posted September 14, 2008 Share Posted September 14, 2008 For learning php, developing php code, or debugging php code, you can setup a web server/php/mysql on any personal computer. What exactly do you need to do with the code you are writing? Quote Link to comment https://forums.phpfreaks.com/topic/124051-mysqli/#findComment-641238 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.