GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Does your host support mysqli and pdo by default? (https://gfy.com/showthread.php?t=1094991)

WalkerTR 01-02-2013 06:24 PM

Does your host support mysqli and pdo by default?
 
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?

Killswitch 01-02-2013 07:02 PM

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.

u-Bob 01-02-2013 07:04 PM

Mojo didn't enable them by default, but all it takes is ticket and a few minutes.

BaldBishop 01-03-2013 05:33 AM

Dreamhost, Hostgator and Servage have PDO.

Klen 01-03-2013 06:15 AM

It's not default on most hosts,but it is easy to enable it.

WalkerTR 01-03-2013 08:05 AM

Thank you. I'm surprised no hosting companies have replied yet.

Klen 01-04-2013 06:20 AM

Quote:

Originally Posted by WalkerTR (Post 19406061)
Thank you. I'm surprised no hosting companies have replied yet.

Probably because this board is visited by sales reps,not tech people so there is chance how they dont have a clue what is mysqli and pdo :upsidedow

Why 01-04-2013 11:26 AM

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.

AndrewX 01-04-2013 01:17 PM

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.

u-Bob 01-04-2013 02:52 PM

Quote:

Originally Posted by KlenTelaris (Post 19407957)
Probably because this board is visited by sales reps,not tech people so there is chance how they dont have a clue what is mysqli and pdo :upsidedow

My first reaction was: how long until a rep replies that their servers come mysql installed :winkwink:

WalkerTR 01-04-2013 03:45 PM

Quote:

Originally Posted by AndrewX (Post 19408757)
Both are available on the shared hosting servers and are also included with the default installs on our dedicated servers

Thank you.

WalkerTR 01-04-2013 03:48 PM

Quote:

Originally Posted by Why (Post 19408556)
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.

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.

AndrewX 01-04-2013 04:25 PM

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.

Killswitch 01-04-2013 04:41 PM

If your host doesn't allow PDO or MySQLi switch asap.

fris 01-04-2013 07:38 PM

it only takes a min or two to adjust the settings


All times are GMT -7. The time now is 08:11 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123