Search the Community
Showing results for tags 'mysqli'.
-
Hi, I was looking for fresh news about PW and mysqli support. The freshest I could find is https://www.cmscritic.com/processwire-2.4-released/ (april 2014). In this article Ryan said : "The mysqli driver will continue to be supported for backwards compatibility" Is it still true today ? (2 years and a half after that article) I mean I'm more used to mysqli than to PDO, so can I write some custom queries with mysqli rather than with PDO without taking too much risk ? I'd like not to rewrite everything with PDO if within a few months PW drops mysqli support, perhaps I've missed a news (I'm a newcomer with PW). Thanks
-
Hi, guys. My friend gave me access to his shared hosting so I could install PW for him and he could experiment with it a little. The problem is that this hosting doesn't have mysqli enabled so PW compatibility check fails. Can I use Native PHP MySQL Driver instead of Mysqli and if so how can I enable it somewhere in config file of PW? If it's not possible then I will have to ask his hoster to enable mysqli. Also I've read that native driver has some performance anvantage over mysqli though it doesn't matter in my case. Thank you. Edit: Ah, I'm sorry for posting this. My question doesn't make sense since mysqli can use native sql driver but native driver itself doesn't provide API for developer. After some googling and reading I found out that switching from original mysql API to mysqli requires some work. And after looking at the database.php code I see that it extends mysqli so it will be simplier to change hosting settings anyway. Please, delete this topic.