PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > The PowWeb Platform > MySQL
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 7-8-09, 01:17 PM   #1
jsantos
Registered
 
Join Date: Sep 2008
Location: Philippines
Posts: 6
Reputation: 0
Do we support PDO?

I think it's a mySQL component. I search google, but no success. Any response are very much appreciated. Thanks.
jsantos is offline   Reply With Quote
Old 7-8-09, 02:57 PM   #2
Dbrazzell
PowWeb Staff
 
Dbrazzell's Avatar
 
Join Date: Nov 2008
Location: Burlington
Posts: 386
Reputation: 122
We have PDO installed with our PHP.

However it only supports sqlite and sqlite2 databases. The MySQL component is not installed.

Most people use the mysql or mysqli component in PHP to communicate with MySQL databases.
__________________
For Robots only Linky
Dbrazzell is offline   Reply With Quote
Old 9-9-09, 07:22 PM   #3
Chris Lambert
Registered
 
Join Date: Jun 2005
Location: UK
Posts: 9
Reputation: 2
Can you explain why PDO is not supported?
Chris Lambert is offline   Reply With Quote
Old 9-10-09, 11:31 AM   #4
Dbrazzell
PowWeb Staff
 
Dbrazzell's Avatar
 
Join Date: Nov 2008
Location: Burlington
Posts: 386
Reputation: 122
For powweb. Its mostly due to lack of demand.

We have a large number customers but only about a half dozen requests for PDO. Also it appears that as time goes on the demand for it seems to dwindle even more.

In short it would seem that PDO is going away and Mysql/Mysqli is king.
__________________
For Robots only Linky
Dbrazzell is offline   Reply With Quote
Old 9-11-09, 03:52 PM   #5
Chris Lambert
Registered
 
Join Date: Jun 2005
Location: UK
Posts: 9
Reputation: 2
If you won't support PDO how about php 5.3.0 to allow full use of mysqli?
Chris Lambert is offline   Reply With Quote
Old 9-11-09, 04:03 PM   #6
Dbrazzell
PowWeb Staff
 
Dbrazzell's Avatar
 
Join Date: Nov 2008
Location: Burlington
Posts: 386
Reputation: 122
Is there some aspect of our mysqli that doesn't work on your shared hosting account?

Right now I'm aware of one bug in our implementation of mysli. It only relates to one function in mysqli that most people don't use.

Right now the latest version of php that's available on our servers is 5.2.4. Even then most people do not have this version. Only people who have recently signed up for accounts. Most people have 5.2.2
__________________
For Robots only Linky
Dbrazzell is offline   Reply With Quote
Old 10-27-09, 04:46 AM   #7
dleigh
 
Join Date: Aug 2002
Location: France
Posts: 93
Reputation: 16
Is adding extension=mysqli.so to my php.ini all I should need to make mysqli work? I'm trying to add Piwik to my account and its message is:

Piwik requires either the mysqli extension or both the PDO and pdo_mysql extensions.


So, based on your explanation above and this message, I SHOULD be able to use mysqli to install Piwik. I've tried adding that extension statement into my php.ini but no success so far. So any mysqli hints would be welcomed! Thanks!
__________________
dleigh is offline   Reply With Quote
Old 10-27-09, 12:31 PM   #8
Dbrazzell
PowWeb Staff
 
Dbrazzell's Avatar
 
Join Date: Nov 2008
Location: Burlington
Posts: 386
Reputation: 122
If you have selected php 5 as the version of php to use for your account you should be good to go.

mysqli is only available in php5 and doesn't exist in php4.
Its turned on by default in our install pf php5
__________________
For Robots only Linky
Dbrazzell is offline   Reply With Quote
Old 10-27-09, 12:41 PM   #9
dleigh
 
Join Date: Aug 2002
Location: France
Posts: 93
Reputation: 16
Thanks!
__________________
dleigh is offline   Reply With Quote
Old 11-12-09, 08:48 AM   #10
dleigh
 
Join Date: Aug 2002
Location: France
Posts: 93
Reputation: 16
Ok, I'm still not able to get Piwik to install. The Piwik folks say:

You have mysqli but if it doesn't have the function to set encoding, then you won't see that choice.

I've asked them to clarify that, but in the mean time, I'll ask here: Is there some capability of mysqli that Powweb does NOT yet support (certain functions? is it a back version? Chris Lambert above alluded to something as did you Dbrazzell)?

thanks
__________________
dleigh is offline   Reply With Quote
Old 11-12-09, 06:53 PM   #11
mpk
PowWeb Staff
 
mpk's Avatar
 
Join Date: Dec 2008
Location: united states
Posts: 80
Reputation: 14
What error are you receiving when attempting to install Piwik?
mpk is offline   Reply With Quote
Old 11-13-09, 01:32 AM   #12
dleigh
 
Join Date: Aug 2002
Location: France
Posts: 93
Reputation: 16
Their installation process issues these two PHP statements:

$extensions = @get_loaded_extensions();
return in_array('mysqli', $extensions) && function_exists('mysqli_set_charset');


So, they would be seeing mysqli in the list of extensions, but apparently they are NOT seeing mysqli_set_charset as a PHP function that exists. I don't know if that's an issue with PHP version or mysqli version or any other limitation or problem, but this statement is returning "false" so Piwik won't go any further in the installation.

Does that give you enough information to go on?
Thanks.
__________________
dleigh is offline   Reply With Quote
Old 11-16-09, 04:13 PM   #13
dleigh
 
Join Date: Aug 2002
Location: France
Posts: 93
Reputation: 16
The folks at Piwik replied to me and they gave me this code as a test to see if POWWEB meets its requirements:

<?php
echo 'test';
$extensions = @get_loaded_extensions();
if (in_array('mysqli', $extensions) && function_exists('mysqli_set_charset')) {
echo "MySQLi is supported\n";
}
if (in_array('PDO', $extensions) && in_array('pdo_mysql', $extensions)) {
echo "PDO MySQL is supported\n";
}

I only get "test" as the output. So really, the key now is the "mysqli_set_charset" function within mysqli. Powweb is not showing it as existing. Is it an issue of a version or a problem? Can it/will it get fixed? Soon?

Thanks!
__________________
dleigh is offline   Reply With Quote
Old 11-16-09, 05:41 PM   #14
mpk
PowWeb Staff
 
mpk's Avatar
 
Join Date: Dec 2008
Location: united states
Posts: 80
Reputation: 14
The set charset function exists in versions of php >= 5.2.3. Chances are your account is running PHP 5.2.1. I recommend checking with Piwik to find out if there are ways to complete the installation without usage of the function.
mpk is offline   Reply With Quote
Old 11-17-09, 01:46 AM   #15
dleigh
 
Join Date: Aug 2002
Location: France
Posts: 93
Reputation: 16
Does this mean my account COULD be running 5.2.3 (i.e. SOME powweb accounts already are?) If so, how can I change and what are the implications of the change (i.e. do I need to be aware of big PHP changes in my applications?)

I have asked Piwik about alternatives to the use of this function and I'm awaiting their reply. But, if I can be moved to a newer version of PHP that would resolve this, I'd prefer that, I think.

Thanks.
__________________
dleigh is offline   Reply With Quote
Old 11-17-09, 01:57 AM   #16
dleigh
 
Join Date: Aug 2002
Location: France
Posts: 93
Reputation: 16
Ooops...just checked OPS and it SAYS that that my version is 5.2.5.

Given that, is there another issue? If being on 5.2.5 SHOULD be sufficient for having this mysqli function, I'm certainly not going to push for a php upgrade for my account. BUT, I would like to push that this function work. Do I need to open a ticket on this one? I guess I'm asking so that I can know what I'm asking for somewhat intelligently.

Thanks!
__________________
dleigh is offline   Reply With Quote
Old 11-17-09, 02:01 AM   #17
dleigh
 
Join Date: Aug 2002
Location: France
Posts: 93
Reputation: 16
This gets better. Now, in looking at phpinfo, it says 5.2.2! So, that would explain the missing mysqli function...but not what OPS is telling me. So I'm back to the question of how one upgrades their version...a tantilizing prospect when OPS even says that I already have it! ;c)

Any hints as to how to proceed?
__________________
dleigh is offline   Reply With Quote
Old 11-17-09, 04:26 AM   #18
Croc Hunter
Mod.. with bite..
 
Croc Hunter's Avatar
 
Join Date: Sep 2002
Location: Australia
Posts: 6,630
Reputation: 383
You cannot install Piwik with MySQLi until Powweb runs php 5.2.3 or later on your server. Or you install a prior version of Piwik that does not require the mysqli_set_charset.
__________________
Croc Hunter MSC :
Croc Hunter is offline   Reply With Quote
Old 11-17-09, 05:08 AM   #19
HalfaBee
 
HalfaBee's Avatar
 
Join Date: Feb 2002
Location: Sydney, Australia
Posts: 7,131
Reputation: 333
I did a quick scan of piwik files and only found 2 references to the function.

You could probably write a function to do the neccessary query.
__________________
I don't suffer from laziness, I enjoy every minute!
Edit your php.ini here
http://members.powweb.com/member/cgi...nt/PHPplus.bml
HalfaBee is offline   Reply With Quote
Old 11-17-09, 07:16 AM   #20
dleigh
 
Join Date: Aug 2002
Location: France
Posts: 93
Reputation: 16
Thanks. I may look at doing that!
__________________
dleigh is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 01:58 AM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.