php-general Digest 7 Apr 2010 14:49:50 -0000 Issue 6680

2010-04-07 Thread php-general-digest-help
php-general Digest 7 Apr 2010 14:49:50 - Issue 6680 Topics (messages 303864 through 303874): Re: SimpleXMLElement occasionally fails to parse gb2312 or big5 feeds 303864 by: Dan Joseph Re: Logical reason for strtotime('east') and strtotime('west') returning valid results?

Re: [PHP] no-cache control

2010-04-07 Thread Karl DeSaulniers
Thanks kranthi. I thought there was a way. I was thinking you could, say, set your header content in the php.ini file?, but a .htaccess would work too. Thanks, Best, Karl On Apr 6, 2010, at 11:44 PM, kranthi wrote: you can do that by using .htacess in the required directory

Re: [PHP] Re: $_SERVER['PHP_AUTH_USER'] has gone

2010-04-07 Thread Satz Klauer
Yes, the authantication-box is there. And I'm definitely using Basic auth, the same script has worked for a long time without problems. On 4/7/10, Nilesh Govindarajan li...@itech7.com wrote: On 04/06/10 21:27, Satz Klauer wrote: var_dump($_SERVER) gives me several data, the following

Re: [PHP] Re: Logical reason for strtotime('east') and strtotime('west') returning valid results?

2010-04-07 Thread Peter Lind
On a related note: does anyone know why php -r echo date('Y-m-d H:i:s', strtotime('a')); happily outputs a valid timestamp? And why all other letters work as well (but only one character)? I'm sure there's a good reason for it, it just completely escapes me right now :) Regards Peter -- hype

Re: [PHP] image question again

2010-04-07 Thread Ashley Sheridan
On Tue, 2010-04-06 at 21:44 -0500, Karl DeSaulniers wrote: When I have an imagecreatetruecolor and I create another one and use imagecopymerge, how do I keep the backgrounds transparent even if say the width of the top image is smaller than the back image? I keep getting a black

[PHP] Who uses Mantis, please help!

2010-04-07 Thread Andre Polykanine
Hello everyone, I decided to use Mantis before I'll be able to use something like Trac :-). The problem is: I'm not getting mail about issues reported by my testers, only by myself. The preferences are set correctly (all the checkboxes are checked). Could you help me please? Thanks! -- With

Re: [PHP] Who uses Mantis, please help!

2010-04-07 Thread Paul M Foster
On Wed, Apr 07, 2010 at 03:37:07PM +0300, Andre Polykanine wrote: Hello everyone, I decided to use Mantis before I'll be able to use something like Trac :-). The problem is: I'm not getting mail about issues reported by my testers, only by myself. The preferences are set correctly (all the

[PHP] stat(), NFS shares and local files timeout

2010-04-07 Thread Igor Feghali
I am running with an issue with remote filesystems (mounted via NFS) and PHP's stat() / filemtime(). Sometimes when the remote filesystem (NFS share) is busy, my PHP daemon just hangs forever on a filemtime() call to a file inside this FS. I failed to find a proper way of setting a timeout for

Re: [PHP] stat(), NFS shares and local files timeout

2010-04-07 Thread Dan Joseph
On Wed, Apr 7, 2010 at 10:27 AM, Igor Feghali igor.fegh...@gmail.comwrote: I am running with an issue with remote filesystems (mounted via NFS) and PHP's stat() / filemtime(). Sometimes when the remote filesystem (NFS share) is busy, my PHP daemon just hangs forever on a filemtime() call to

[PHP] RE: mysql query returning slowly

2010-04-07 Thread David Murphy
Nathan, The profiling I included proved that was not the case. Mysql run the query and return the single column single row result in under 1 second but PHP's mysql-query waited much longer than that to return. If it was a big result set I could see some slow down in parsing the results into

[PHP] Re: Howto send command over ssh using sockets

2010-04-07 Thread Thomas Anderson
phpseclib does SSH without PECL extension and only with fsockopen: http://phpseclib.sourceforge.net/ On Sun Apr 4 21:09:54 2010, Hans_Åhlin wrote: Instead of ssh, you could use telnet to connect to the Cisco router (which incidentally runs on port 23, but is likely to be disabled on the

[PHP] Greate day for you,

2010-04-07 Thread Chris G
http://sites.google.com/site/vfgbyuhoi6/kewe2w -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Greate day for you,

2010-04-07 Thread Daniel Brown
On Wed, Apr 7, 2010 at 12:11, Chris G thunder...@gmail.com wrote: http://sites.google.com/site/vfgbyuhoi6/kewe2w Heads-up: It's a SPAM link. You probably already knew that. (Funny that Jochem was targeted directly for this particular one. ;-P) -- /Daniel P. Brown

Re: [PHP] Greate day for you,

2010-04-07 Thread Nilesh Govindarajan
On 04/07/10 21:41, Chris G wrote: http://sites.google.com/site/vfgbyuhoi6/kewe2w Bloody asshole spammer. Is there no spam filter at lists.php.net ? -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List

Re: [PHP] Greate day for you,

2010-04-07 Thread Bruno Fajardo
2010/4/7 Nilesh Govindarajan li...@itech7.com: On 04/07/10 21:41, Chris G wrote: http://sites.google.com/site/vfgbyuhoi6/kewe2w Bloody asshole spammer. Is there no spam filter at lists.php.net ? It was probably a virus or a trojahn, not intentionally sent to the list by the OP... --

Re: [PHP] Greate day for you,

2010-04-07 Thread Kevin Kinsey
Nilesh Govindarajan wrote: On 04/07/10 21:41, Chris G wrote: http://sites.google.com/site/vfgbyuhoi6/kewe2w snip Is there no spam filter at lists.php.net ? Does your filter catch 101% of all of it? That's the only one I've seen in a Long Time(tm). Just asking :-) Kevin Kinsey --

RE: [PHP] Greate day for you,

2010-04-07 Thread HallMarc Websites
time today I have seen something like this and both have originated through actual gmail accounts and CC to people on their mailing lists. __ Information from ESET Smart Security, version of virus signature database 5007 (20100407) __ The message was checked by ESET Smart Security

[PHP] Sort two coupled arrays

2010-04-07 Thread tedd
Hi gang: Here's the problem -- I want to sort and combine two arrays into one sorted array. Here's a real-world example: Array 1 ( [1] = 75 [2] = 31 [3] = 31 [4] = 31 [5] = 40 ) Array 2 ( [1] = Personal Email [2] = Personal Phone [3] = Web site [4] = Text

Re: [PHP] Sort two coupled arrays

2010-04-07 Thread Piero Steinger
Am 07.04.2010 22:09, schrieb tedd: Hi gang: Here's the problem -- I want to sort and combine two arrays into one sorted array. Here's a real-world example: Array 1 ( [1] = 75 [2] = 31 [3] = 31 [4] = 31 [5] = 40 ) Array 2 ( [1] = Personal Email [2] =

Re: [PHP] Sort two coupled arrays

2010-04-07 Thread Mattias Thorslund
Piero Steinger wrote: Am 07.04.2010 22:09, schrieb tedd: Hi gang: Here's the problem -- I want to sort and combine two arrays into one sorted array. Here's a real-world example: Array 1 ( [1] = 75 [2] = 31 [3] = 31 [4] = 31 [5] = 40 ) Array 2 ( [1] = Personal Email

Re: [PHP] Sort two coupled arrays

2010-04-07 Thread Paul M Foster
On Wed, Apr 07, 2010 at 04:09:47PM -0400, tedd wrote: Hi gang: Here's the problem -- I want to sort and combine two arrays into one sorted array. Here's a real-world example: Array 1 ( [1] = 75 [2] = 31 [3] = 31 [4] = 31 [5] = 40 ) Array 2 ( [1] = Personal

Re: [PHP] Sort two coupled arrays

2010-04-07 Thread Andrew Ballard
On Wed, Apr 7, 2010 at 5:02 PM, Paul M Foster pa...@quillandmouse.com wrote: On Wed, Apr 07, 2010 at 04:09:47PM -0400, tedd wrote: Hi gang: Here's the problem -- I want to sort and combine two arrays into one sorted array. Here's a real-world example: Array 1 (     [1] = 75     [2] = 31

Re: [PHP] Sort two coupled arrays

2010-04-07 Thread Hans Åhlin
Try this insted array( [0]=array( [0]=75, [1] = Personal Email) [1]=array( [0]=31, [1] = Personal Phone) [2]=array( [0]=31, [1] = Web site) [3]=array( [0]=31, [1] = Text Message) [4]=array( [0]=40, [1] = USPS mail) MvH / Hans Åhlin Tel: +46761488019 http://www.kronan-net.com/

Re: [PHP] Sort two coupled arrays {my solution]

2010-04-07 Thread tedd
At 5:35 PM -0400 4/7/10, Andrew Ballard wrote: On Wed, Apr 7, 2010 at 5:02 PM, Paul M Foster pa...@quillandmouse.com wrote: Array indexes have to be unique regardless of whether they are numeric or strings. Ahhh, so you start to see the problem, eh? Let's look at the problem again (a vote

Re: [PHP] Sort two coupled arrays {my solution]

2010-04-07 Thread Ryan Sun
rsort(array_combine(array2, array1)); you should expect array( 'Personal Email' = 75, 'USPS mail' = 40, 'Personal Phone' = 31, 'Web site' = 31, 'Text Message' = 31 ) logically, the items are your key but not the count of votes On Wed, Apr 7, 2010 at 6:29 PM, tedd