php-general Digest 31 Jan 2011 10:49:44 -0000 Issue 7160
Topics (messages 311086 through 311093):
Re: PEAR & PHP
311086 by: Ashley Sheridan
311087 by: Ashley Sheridan
311088 by: Ethan Rosenberg
311092 by: Jim Lucas
Re: 95th percentile of an array.
311089 by: Marc Trudel
311090 by: Adam Richardson
311091 by: Adam Richardson
odd list bounces
311093 by: Ashley Sheridan
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
"Ethan Rosenberg" <[email protected]> wrote:
>At 03:29 AM 1/30/2011, Thijs Lensselink wrote:
>>-----BEGIN PGP SIGNED MESSAGE-----
>>Hash: SHA1
>>
>>On 01/30/2011 05:43 AM, Ethan Rosenberg wrote:
>> > Dear list -
>> >
>> > I enter the command pear list, and get errors. See below --
>> >
>> > ethan@rosenberg:/usr/lib/php5$ ls -l
>> > total 12
>> > drwxr-xr-x 2 root root 4096 Jan 6 00:53 20090626+lfs
>> > drwxr-xr-x 2 root root 4096 Jul 18 2010 libexec
>> > -rwxr-xr-x 1 root root 596 Jan 5 08:09 maxlifetime
>> >
>> > ethan@rosenberg:/usr/lib/php5$ pear list
>> > PHP Warning: PHP Startup: Unable to load dynamic library
>> > '/usr/lib/php5/20090626+lfs/msql.so' -
>> > /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object file:
>No
>> > such file or directory in Unknown on line 0
>> > <font color=#ff0000>
>> > Warning: PHP Startup: Unable to load dynamic library
>> > '/usr/lib/php5/20090626+lfs/msql.so' -
>> > /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object file:
>No
>> > such file or directory in Unknown on line 0
>> > </font>Installed packages, channel pear.php.net:
>> > =========================================
>> > Package Version State
>> > Archive_Tar 1.3.7 stable
>> > Console_Getopt 1.2.3 stable
>> > PEAR 1.9.1 stable
>> > Structures_Graph 1.0.3 stable
>> > Validate_US 0.5.4 beta
>> > XML_Util 1.2.1 stable
>> >
>> > ethan@rosenberg:/usr/lib/php5$ cd 20090626+lfs
>> >
>> > ethan@rosenberg:/usr/lib/php5/20090626+lfs$ ls -l
>> > total 560
>> > -rw-r--r-- 1 root root 95596 Jan 5 08:09 gd.so
>> > -rw-r--r-- 1 root root 38272 Jan 5 08:09 mcrypt.so
>> > -rw-r--r-- 1 root root 109220 Jan 5 08:09 mysqli.so
>> > -rw-r--r-- 1 root root 42352 Jan 5 08:09 mysql.so
>> > -rw-r--r-- 1 root root 26116 Jan 5 08:09 pdo_mysql.so
>> > -rw-r--r-- 1 root root 87588 Jan 5 08:09 pdo.so
>> > -rw-r--r-- 1 root root 141336 Aug 19 04:04 suhosin.so
>> >
>> > ethan@rosenberg:/usr/lib/php5/20090626+lfs$
>> >
>> > Help and advice, please.
>> >
>> > Thanks.
>> >
>> > Ethan
>> >
>> > MySQL 5.1 PHP 5.3.3-6 Linux [Debian (sid)]
>> >
>> >
>>
>>msql.so is missing. So either install it. Or comment it out in php.ini
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>++++++
>Thank you.
>
>You are correct, msql is not installed.
>
>1] How do I install it? apt-get install does not find the package.
>
>2] Excuse my ignorance, what is a dynamic extension?
>
>Ethan
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
I noticed you mis-typed mysql as msql there, did you try apt-get mysql or msql?
Mysql comes with every Linux distro I've ever used, so it should be there in
your standard repositories.
Thanks
Ash
http://www.ashleysheridan.co.uk
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
--- End Message ---
--- Begin Message ---
"Ashley Sheridan" <[email protected]> wrote:
>"Ethan Rosenberg" <[email protected]> wrote:
>
>>At 03:29 AM 1/30/2011, Thijs Lensselink wrote:
>>>-----BEGIN PGP SIGNED MESSAGE-----
>>>Hash: SHA1
>>>
>>>On 01/30/2011 05:43 AM, Ethan Rosenberg wrote:
>>> > Dear list -
>>> >
>>> > I enter the command pear list, and get errors. See below --
>>> >
>>> > ethan@rosenberg:/usr/lib/php5$ ls -l
>>> > total 12
>>> > drwxr-xr-x 2 root root 4096 Jan 6 00:53 20090626+lfs
>>> > drwxr-xr-x 2 root root 4096 Jul 18 2010 libexec
>>> > -rwxr-xr-x 1 root root 596 Jan 5 08:09 maxlifetime
>>> >
>>> > ethan@rosenberg:/usr/lib/php5$ pear list
>>> > PHP Warning: PHP Startup: Unable to load dynamic library
>>> > '/usr/lib/php5/20090626+lfs/msql.so' -
>>> > /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object
>file:
>>No
>>> > such file or directory in Unknown on line 0
>>> > <font color=#ff0000>
>>> > Warning: PHP Startup: Unable to load dynamic library
>>> > '/usr/lib/php5/20090626+lfs/msql.so' -
>>> > /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object
>file:
>>No
>>> > such file or directory in Unknown on line 0
>>> > </font>Installed packages, channel pear.php.net:
>>> > =========================================
>>> > Package Version State
>>> > Archive_Tar 1.3.7 stable
>>> > Console_Getopt 1.2.3 stable
>>> > PEAR 1.9.1 stable
>>> > Structures_Graph 1.0.3 stable
>>> > Validate_US 0.5.4 beta
>>> > XML_Util 1.2.1 stable
>>> >
>>> > ethan@rosenberg:/usr/lib/php5$ cd 20090626+lfs
>>> >
>>> > ethan@rosenberg:/usr/lib/php5/20090626+lfs$ ls -l
>>> > total 560
>>> > -rw-r--r-- 1 root root 95596 Jan 5 08:09 gd.so
>>> > -rw-r--r-- 1 root root 38272 Jan 5 08:09 mcrypt.so
>>> > -rw-r--r-- 1 root root 109220 Jan 5 08:09 mysqli.so
>>> > -rw-r--r-- 1 root root 42352 Jan 5 08:09 mysql.so
>>> > -rw-r--r-- 1 root root 26116 Jan 5 08:09 pdo_mysql.so
>>> > -rw-r--r-- 1 root root 87588 Jan 5 08:09 pdo.so
>>> > -rw-r--r-- 1 root root 141336 Aug 19 04:04 suhosin.so
>>> >
>>> > ethan@rosenberg:/usr/lib/php5/20090626+lfs$
>>> >
>>> > Help and advice, please.
>>> >
>>> > Thanks.
>>> >
>>> > Ethan
>>> >
>>> > MySQL 5.1 PHP 5.3.3-6 Linux [Debian (sid)]
>>> >
>>> >
>>>
>>>msql.so is missing. So either install it. Or comment it out in
>php.ini
>>>
>>>--
>>>PHP General Mailing List (http://www.php.net/)
>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>++++++
>>Thank you.
>>
>>You are correct, msql is not installed.
>>
>>1] How do I install it? apt-get install does not find the package.
>>
>>2] Excuse my ignorance, what is a dynamic extension?
>>
>>Ethan
>>
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>
>I noticed you mis-typed mysql as msql there, did you try apt-get mysql
>or msql? Mysql comes with every Linux distro I've ever used, so it
>should be there in your standard repositories.
>
>
>Thanks
>Ash
>http://www.ashleysheridan.co.uk
>--
>Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
Sorry, I misread the error messages there, ignore that last message!
Thanks
Ash
http://www.ashleysheridan.co.uk
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
--- End Message ---
--- Begin Message ---
At 01:51 PM 1/30/2011, Ashley Sheridan wrote:
"Ashley Sheridan" <[email protected]> wrote:
>"Ethan Rosenberg" <[email protected]> wrote:
>
>>At 03:29 AM 1/30/2011, Thijs Lensselink wrote:
>>>-----BEGIN PGP SIGNED MESSAGE-----
>>>Hash: SHA1
>>>
>>>On 01/30/2011 05:43 AM, Ethan Rosenberg wrote:
>>> > Dear list -
>>> >
>>> > I enter the command pear list, and get errors. See below --
>>> >
>>> > ethan@rosenberg:/usr/lib/php5$ ls -l
>>> > total 12
>>> > drwxr-xr-x 2 root root 4096 Jan 6 00:53 20090626+lfs
>>> > drwxr-xr-x 2 root root 4096 Jul 18 2010 libexec
>>> > -rwxr-xr-x 1 root root 596 Jan 5 08:09 maxlifetime
>>> >
>>> > ethan@rosenberg:/usr/lib/php5$ pear list
>>> > PHP Warning: PHP Startup: Unable to load dynamic library
>>> > '/usr/lib/php5/20090626+lfs/msql.so' -
>>> > /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object
>file:
>>No
>>> > such file or directory in Unknown on line 0
>>> > <font color=#ff0000>
>>> > Warning: PHP Startup: Unable to load dynamic library
>>> > '/usr/lib/php5/20090626+lfs/msql.so' -
>>> > /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object
>file:
>>No
>>> > such file or directory in Unknown on line 0
>>> > </font>Installed packages, channel pear.php.net:
>>> > =========================================
>>> > Package Version State
>>> > Archive_Tar 1.3.7 stable
>>> > Console_Getopt 1.2.3 stable
>>> > PEAR 1.9.1 stable
>>> > Structures_Graph 1.0.3 stable
>>> > Validate_US 0.5.4 beta
>>> > XML_Util 1.2.1 stable
>>> >
>>> > ethan@rosenberg:/usr/lib/php5$ cd 20090626+lfs
>>> >
>>> > ethan@rosenberg:/usr/lib/php5/20090626+lfs$ ls -l
>>> > total 560
>>> > -rw-r--r-- 1 root root 95596 Jan 5 08:09 gd.so
>>> > -rw-r--r-- 1 root root 38272 Jan 5 08:09 mcrypt.so
>>> > -rw-r--r-- 1 root root 109220 Jan 5 08:09 mysqli.so
>>> > -rw-r--r-- 1 root root 42352 Jan 5 08:09 mysql.so
>>> > -rw-r--r-- 1 root root 26116 Jan 5 08:09 pdo_mysql.so
>>> > -rw-r--r-- 1 root root 87588 Jan 5 08:09 pdo.so
>>> > -rw-r--r-- 1 root root 141336 Aug 19 04:04 suhosin.so
>>> >
>>> > ethan@rosenberg:/usr/lib/php5/20090626+lfs$
>>> >
>>> > Help and advice, please.
>>> >
>>> > Thanks.
>>> >
>>> > Ethan
>>> >
>>> > MySQL 5.1 PHP 5.3.3-6 Linux [Debian (sid)]
>>> >
>>> >
>>>
>>>msql.so is missing. So either install it. Or comment it out in
>php.ini
>>>
>>>--
>>>PHP General Mailing List (http://www.php.net/)
>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>++++++
>>Thank you.
>>
>>You are correct, msql is not installed.
>>
>>1] How do I install it? apt-get install does not find the package.
>>
>>2] Excuse my ignorance, what is a dynamic extension?
>>
>>Ethan
>>
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>
>I noticed you mis-typed mysql as msql there, did you try apt-get mysql
>or msql? Mysql comes with every Linux distro I've ever used, so it
>should be there in your standard repositories.
>
>
>Thanks
>Ash
>http://www.ashleysheridan.co.uk
>--
>Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
Sorry, I misread the error messages there, ignore that last message!
Thanks
Ash
http://www.ashleysheridan.co.uk
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
++++++++++++++
Ashley -
I make more mistakes reading emails than you do!!
Would you [or anyone else on this list] please help me with my questions
1] How do I install it? [msql NOT mysql] apt-get install does not
find the package.
2] Excuse my ignorance, what is a dynamic extension?
Thanks.
Ethan
--- End Message ---
--- Begin Message ---
On 1/30/2011 2:34 PM, Ethan Rosenberg wrote:
I make more mistakes reading emails than you do!!
Would you [or anyone else on this list] please help me with my questions
1] How do I install it? [msql NOT mysql] apt-get install does not find
the package.
http://www.google.com
Enter "<your distro> apt-get install msql" ...
I entered "linux apt-get install msql"
and the second result I get is this
http://ubuntuforums.org/archive/index.php/t-350269.html
If your distro is not ubuntu, I'm sorry, but you haven't said what you
are running yet.
2] Excuse my ignorance, what is a dynamic extension?
Again, http://www.google.com
Enter "what is a dynamic extension" ...
Here is a good result from the list returned....
http://www.atnf.csiro.au/computing/software/karma/programmer-manual/node17.html
Thanks.
Ethan
I hope this gets you headed down the right path.
Jim Lucas
--- End Message ---
--- Begin Message ---
Just out of curiosity, wouldnt it be better to use floor($n) instead of
round($n-0.5)?
On Sun, Jan 30, 2011 at 5:48 AM, Paul Halliday <[email protected]>wrote:
> On Sat, Jan 29, 2011 at 2:28 PM, Adam Richardson <[email protected]>
> wrote:
> > For the nearest rank computation, you could use the following:
> >
> > $arr =
> >
> array(12,89,65,23,90,99,9,15,56,67,3,52,78,12,10,88,77,77,77,77,77,77,77);
> > sort($arr);
> > $score_representing_95th_percentile = $arr[round((95/100) * count($arr) -
> > .5)];
> > echo $score_representing_95th_percentile; // 90
> >
>
> Perfect, exactly what I was looking for.
>
> thank you.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Marc Trudel-Bélisle
*Chief Technical Officer*
www.wizcorp.jp
--- End Message ---
--- Begin Message ---
On Sun, Jan 30, 2011 at 8:44 PM, Marc Trudel <[email protected]> wrote:
> Just out of curiosity, wouldnt it be better to use floor($n) instead of
> round($n-0.5)?
>
Hi Marc,
I don't think so, although I could have missed something (I just quick
cranked out the example.) The definition I linked to involves rounding (2.5
would round to 3, and 2.4 would round to 2), so I just included the rounding
in the equation. Let me know if you see something I botched.
Thanks,
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
--- End Message ---
--- Begin Message ---
On Sun, Jan 30, 2011 at 10:39 PM, Adam Richardson <[email protected]>wrote:
> On Sun, Jan 30, 2011 at 8:44 PM, Marc Trudel <[email protected]> wrote:
>
>> Just out of curiosity, wouldnt it be better to use floor($n) instead of
>> round($n-0.5)?
>>
>
> Hi Marc,
>
> I don't think so, although I could have missed something (I just quick
> cranked out the example.) The definition I linked to involves rounding (2.5
> would round to 3, and 2.4 would round to 2), so I just included the rounding
> in the equation. Let me know if you see something I botched.
>
> Thanks,
>
> Adam
>
> --
> Nephtali: A simple, flexible, fast, and security-focused PHP framework
> http://nephtaliproject.com
>
Hi again Marc,
One other note. Maybe you were suggesting that the equation should have
been reduced to floor($n) instead round($n - .5).
I purposely tried to stay true to the equation/algorithm provided in the
link so it would be easy for the OP to see exactly where I got the equation
from and how I mapped it to PHP code (although I did have to adjust the
equation for zero indexes used in arrays.)
That all said, if you wanted to reduce the equation to floor($n) to produce
a more succinct representation, then you could certainly make that change
and it would produce the same result.
Thanks,
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
--- End Message ---
--- Begin Message ---
Hiya,
Is anyone else getting odd bounce messages? I just received one from the
list about a message that was returned as a bounce from my email
address. The fact that I was able to read an email about an email that
bounced from me suggests that things are OK my end with regards to
receiving messages.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---