![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jun 2006
Posts: 1,646
|
![]() How common are mysqli and PDO mysql? Do most hosts have them installed and enabled by default?
I'm learning PHP and I'm writing small scripts. Is it a good idea to use mysqli or pdo mysql in scripts I plan on selling? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
👏 REVOLUTIONARY 👏
Industry Role:
Join Date: Oct 2012
Posts: 2,326
|
If your host doesn't support mysqli or pdo then leave them immediately.
And yes you should use pdo. Mysqli if pdo is not available.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
there's no $$$ in porn
Industry Role:
Join Date: Jul 2005
Location: icq: 195./568.-230 (btw: not getting offline msgs)
Posts: 33,063
|
Mojo didn't enable them by default, but all it takes is ticket and a few minutes.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jul 2005
Posts: 2,115
|
Dreamhost, Hostgator and Servage have PDO.
__________________
![]() ![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
It's not default on most hosts,but it is easy to enable it.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Jun 2006
Posts: 1,646
|
Thank you. I'm surprised no hosting companies have replied yet.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
MFBA
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
|
PDO and mysqli i believe are both technically add-ons, thus they would not be in a "normal" source build, that being said suhosin is also an add-on but is almost always present.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Jan 2004
Posts: 574
|
Both are available on the shared hosting servers and are also included with the default installs on our dedicated servers: http://main.xenlayer.com/phpinfo.php - it's also PHP 5.4 instead of 5.3, which outperforms it in almost every way.
Now on VPS servers we sometimes disable them to save resources. Same goes for Apache, we do custom Nginx configurations on smaller VPS accounts on request.
__________________
![]() █ ► XenLayer - Paravirtualization Professionals since 2008 - [ICQ: 297820698] █ ► Reseller Hosting | OpenVZ VPS | XEN VPS | Dedicated Servers |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
there's no $$$ in porn
Industry Role:
Join Date: Jul 2005
Location: icq: 195./568.-230 (btw: not getting offline msgs)
Posts: 33,063
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Jun 2006
Posts: 1,646
|
Thank you.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Jun 2006
Posts: 1,646
|
Seeing that most php tutorials now mention PDO or mysqli and that those addons are being recommended on PHP boards, I would have expected them to be present on modern systems.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Industry Role:
Join Date: Jan 2004
Posts: 574
|
PDO is not an extension (anymore) like mcrypt or gd, it's enabled by default in PHP now, it's part of the core. I think cPanel is pretty much the only control panel that explicitly disables it by default, but that's easy to change in WHM. People are using it more and more.
__________________
![]() █ ► XenLayer - Paravirtualization Professionals since 2008 - [ICQ: 297820698] █ ► Reseller Hosting | OpenVZ VPS | XEN VPS | Dedicated Servers |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
👏 REVOLUTIONARY 👏
Industry Role:
Join Date: Oct 2012
Posts: 2,326
|
If your host doesn't allow PDO or MySQLi switch asap.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |