Portal Home > Knowledgebase > Articles Database > PDO --i assume php data object question
PDO --i assume php data object question
Posted by weblooker, 04-13-2012, 09:18 AM |
I recently installed a script on my website.
I have reseller account at a small webhosting company. Moved from a big company to try this one because of a special they were having. I use reseller mostly for my own sites.
I recently installed a script on one of my websites. The script was not working properly, as I could not even login to the admin page.
After contacting the person who has this script he took a look and sent this response:
"It seems your host has PDO disabled. Please contact them and ask that they enable it for you. Without PDO, xxxxx program will not work.
I am assuming that PDO is PHP Oject Data? I have no programing knowledge at all. Just followed instructions to install a few scripts in the past.
Is enabling PDO some big risk? I am waiting on an answer from hosting company. They want to check to see if it is secure or ok to run on shared hosting.
There has also been 2 other major problems (as I see them) for a total of 3 problems now in 30 days which each one has stopped me from moving forward.
The other problems were: i installed an old script---was working but with deprecated errors--script owner said the host should have already had hosting set to solve this problem---it is a simple fix.
Last problem was that I was banned from my own sites for a day or two.
Anyway, with the major big company--I never had to ask them to adjust any settings for scripts to run---it was basically worry free.
Is this normal for a small hosting company? I see my future going back to the big company.
Thanks,
Glenn
|
Posted by rcs, 04-13-2012, 09:33 AM |
We have some shared hosting servers, sometimes users ask for php modules that are not common. We don't run all possible modules on the shared servers because this adds load to the server, in a case where a user need a module that is not installed we add it to php. PDO is quite common, they should have no problem adding it.
old script - if it was written for php 5.2 and your new host runs php 5.3, then you should see some deprecated functions. YOU need to update the script, your host can't do much about it IMO.
Banned - depends on the reason. We allow on our cpanel servers 5 failed login attempts befor cphulk ban the offending IP.
|
Posted by quantumphysics, 04-13-2012, 09:39 AM |
PDO isn't a risk, if anything you SHOULD be using PDO for database access and never using mysql* functions.
|
Posted by FrankLaszlo, 04-13-2012, 09:47 AM |
Yup, PDO is a good thing. Your host should have no problem adding the PHP module for it.
|
Posted by weblooker, 04-13-2012, 10:02 AM |
Thank you for the answers so fast. I may try to stay with them a bit longer. Once scripts are set up, there should no longer be problems other than downtime --if any.
However, I am in the internet marketing arena (a bit above novice) and scripts are needed every now and then.
As for the deprecated errors statement--this was the response I got from the script owner:
"I think that issue is unique to particular web hosts and it's easy to fix. Your web host needs to rebuild Apache with the "Silence Deprecated Patch" enabled. This just stops all the "deprecated" messages for older scripts - personally I don't think they should be showing anyway and it's probably a mistake on your web hosts part that they haven't already done this. ;-)"
Each case has cost me days (i work most on my websites on off days from regular job) and a bit irritating at the moment. I am trying to put a plan into action and it is being slowed down--lol.
Again, thank you for the responses.
Glenn
|
Posted by quantumphysics, 04-13-2012, 10:03 AM |
you don't need a patch.. error_reporting() and exclude E_USER_DEPRECATED and E_DEPRECATED
it's not the web host's fault, it's pretty much "your" fault for using comically old prefab scripts
|
Posted by weblooker, 04-13-2012, 10:17 AM |
Thanks quantumphysics,
I had done some googling the problem and never got to the right code to add.
Anyway, yes you are correct in that the script was old and not updated and somewhat my fault. I have decided to just use a helpdesk script in cpanel.
However, the script was installed not to long ago on the big company hosting and it did not return errors and installed fine. I shut sites down a couple months and just deciding to get back into them.
The old script I actually paid for and own. The author never updated it after selling some copies. It doesn't look like he ever will--lol. I guess I could get someone to look at it for some fixes and updating. Don't even think it would be worth it. I may just buy another script.
Thanks again,
Glenn
|
Add to Favourites Print this Article
Also Read
This or That (Views: 682)
Gigenet down? (Views: 804)