php-general Digest 16 Mar 2011 11:44:50 -0000 Issue 7229

2011-03-16 Thread php-general-digest-help
php-general Digest 16 Mar 2011 11:44:50 - Issue 7229 Topics (messages 311881 through 311884): Re: String eval assistance 311881 by: Simon J Welsh 311882 by: Jack 311883 by: Richard Quadling 311884 by: Alex Administrivia: To subscribe to the digest, e-mail:

php-general Digest 17 Mar 2011 02:06:27 -0000 Issue 7230

2011-03-16 Thread php-general-digest-help
php-general Digest 17 Mar 2011 02:06:27 - Issue 7230 Topics (messages 311885 through 311893): Re: Deleting elements from the middle of an array 311885 by: Tom Barrett 311886 by: Marc Guay MySQL Unbuffered Query Behavior Change 311887 by: Nicholas Williams Array of

Re: [PHP] String eval assistance

2011-03-16 Thread Richard Quadling
On 16 March 2011 00:25, Jack jacklistm...@gmail.com wrote:     Here you're trying to access it as an array, which it's not, so the 'response' key doesn't exist.  In addition, you're looking for UPPER-CASE, whereas that's not the case in your example variable. Finally, you're checking to make

Re: [PHP] String eval assistance

2011-03-16 Thread Alex
I'm not sure as to why strpos does what it does here, at least its not immediately obvious, but, a solution to this would be to use a regular expression search, it would be more exact, it has never failed me, and it will be faster; I recall reading that preg functions were faster at then str

Re: [PHP] Deleting elements from the middle of an array

2011-03-16 Thread Tom Barrett
http://en.wikipedia.org/wiki/Two_Little_Dickie_Birds

Re: [PHP] Deleting elements from the middle of an array

2011-03-16 Thread Marc Guay
I copied this thread to some co-workers with the subject line Be glad that you're not programmers. Is it Friday yet? Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySQL Unbuffered Query Behavior Change

2011-03-16 Thread Nicholas Williams
I was previously on PHP 5.1.6 and was using the following code: $dbr = mysql_unbuffered_query($query, $this-con); while($row = mysql_fetch_array($dbr, $assoc ? MYSQL_ASSOC : MYSQL_NUM)) $this-result[] = $row; $this-rows = mysql_num_rows($dbr); It worked properly. The documentation at

[PHP] Array of Error Codes: Key/Values

2011-03-16 Thread Brendan_Crowley
Hi, I'm new to php and i'm looking to setup an array (or what work best) of codes and corresponding error strings, for example (pseudo code): ERROR_CODES = array('-1' = 'Error opening file', '-2' = 'General File IO Error', '-3' = 'Database connection error'); Access these string values using

[PHP] [Semi-OT] Request for help: Squirrelmail, PHP and RTL-Languages

2011-03-16 Thread Michelle Konzack
Hello, I am wotking in an environent where it is required to support LTR and RTL languages at once. My own website support this but with squirrelmail there is a problem. Is there an Iranien, Israelian or Arabic Programmer which can help out to get RTL support in the Squirrelmail interface

Re: [PHP] [Semi-OT] Request for help: Squirrelmail, PHP and RTL-Languages

2011-03-16 Thread Dotan Cohen
On Wed, Mar 16, 2011 at 21:59, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Hello, I am wotking in an environent where it is required to  support  LTR  and RTL languages at once. My own website support this but with squirrelmail there is a problem. Is there an Iranien, Israelian

Re: [PHP] [Semi-OT] Request for help: Squirrelmail, PHP and RTL-Languages

2011-03-16 Thread Michelle Konzack
Shalom Dotan, thanks for your VERY fast answer. Am 2011-03-16 22:39:43, hacktest Du folgendes herunter: What exactly is the problem? I have an associate using SquirrelMail in Hebrew, it even has a Hebrew interface. Are you getting directional display issues? Gibberish? The locale on my

[PHP] Re: [Semi-OT] Request for help: Squirrelmail, PHP and RTL-Languages

2011-03-16 Thread Michelle Konzack
Again... Here is a screenshoot (squirrelmail 1.4.21 from Debian/Squeeze): http://vserver04.tamay-dogan.net/squirrelmail/20110316221617_squirrelmail_prersian_error.jpg which is set to Persian interface and even Firefox is set to prefered Language fa_IR and it does not work here (in 1.5.x

[PHP] PHP4 vs PHP5 overrides

2011-03-16 Thread Tom Robinson
Hi, I'm trying to decipher inherited code (I did not write this) and I'm having great difficulty understanding the override of a method in PHP4 vs PHP5 Here's the code: form.php 22 class FormClass 23 { ... /* some method calls to _dispatchSave() */ 572

Re: [PHP] PHP4 vs PHP5 overrides

2011-03-16 Thread Tom Robinson
My apologies. I've not seen something I should have earlier. Also the instance that is behind all of this is and instance of ActiveRecordFormClass. So, in PHP4, the correct overridden method is called: ActiveRecordFormClass::_dispatchSave(). In PHP5, the FormClass::_dispatchSave() is called...???

Re: [PHP] PHP4 vs PHP5 overrides

2011-03-16 Thread Tom Robinson
It's funny how talking or writing about something uncovers things you didn't see before. In an effort to tidy up the code I heeded the original implementors comments and made the methods private (they were previously undeclared). Making them public seems to have fixed the problem. On 17/03/11

[PHP] PHP session replication

2011-03-16 Thread Alessandro Ferrucci
Hello, I'm curious, what are the most popular methods to perform session replication across http servers in PHP? I've read about repcache(memcached module) and Mysql. anything else? is there some mod_php_session_replication httpd module? thanks -- Signed, Alessandro Ferrucci