php-general Digest 24 Jun 2011 12:57:37 -0000 Issue 7373

2011-06-24 Thread php-general-digest-help
php-general Digest 24 Jun 2011 12:57:37 - Issue 7373 Topics (messages 313685 through 313692): Call to undefined function 313685 by: admin.buskirkgraphics.com 313686 by: Shiplu Mokaddim 313688 by: admin.buskirkgraphics.com Get all the keys from a hierarchical hash

php-general Digest 25 Jun 2011 04:13:51 -0000 Issue 7374

2011-06-24 Thread php-general-digest-help
php-general Digest 25 Jun 2011 04:13:51 - Issue 7374 Topics (messages 313693 through 313715): Re: Manipulate Request Headers after Redirect 313693 by: Louis Huppenbauer 313696 by: Arthur Moczulski 313697 by: Louis Huppenbauer Re: [PHP-DB] Re: radio form submission

Re: [PHP] Get all the keys from a hierarchical hash

2011-06-24 Thread Fatih P.
use recursive calls to fetch them all in one array and there will be memory cost. refer array_keys function: http://php.net/manual/en/function.array-keys.php not sure but this should be working. function *get_keys_recursive*($arr) { while (list($k, $v) = each($arr)) { if (is_array($v)

[PHP] Manipulate Request Headers after Redirect

2011-06-24 Thread Louis Huppenbauer
Hi there! I just have a small question concerning the http-protocol and php (and in specific the header-function, i think). Is it possible to manipulate the headers for the request which is sent after a 302-header? eg: Response: header('Referer: example.com'); header('Location: example.net');

Re: [PHP] Create a hierarchical hash from flat source

2011-06-24 Thread Paul M Foster
On Thu, Jun 23, 2011 at 01:57:24PM -0400, Robert Cummings wrote: On 11-06-23 12:54 PM, Tamara Temple wrote: On Jun 22, 2011, at 5:24 PM, Scott Baker wrote: On 06/22/2011 03:17 PM, Simon J Welsh wrote: You still need to pass the value by reference to assign_children(), so: $new

[PHP] Re: this newsgroup and OE

2011-06-24 Thread Jonesy
On Wed, 22 Jun 2011 11:38:22 -0400, Jim Giner wrote: Well - it's a secret until one asks I guess. Thanks Shawn for the info. Since you say it's been happening for years, I guess there's no hope for resolution. Can you or someone else recommend a newsgroup client that functions better with

Re: [PHP] Manipulate Request Headers after Redirect

2011-06-24 Thread Louis Huppenbauer
Thanks for your response, but I don't think that will do. First - SERVER_PORT is the port the apache/iis/whatever server is working with (usually 80 or 443) Second - That would still be manipulating the headers for the response (As php mostly just generates the response, and not the request).

[PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Tamara Temple
On Jun 24, 2011, at 6:28 AM, Chris Stinemetz wrote: So I am trying to keep this simple and just assign the value with the radio button and then insert it into mysql database, but with the following code I am getting the mysql error: Unknown column '250kbps' in 'field list' when I choose the

RE: [PHP] php session_start dead lock

2011-06-24 Thread Zaccone, Warren
We ran the checks and found no problems with the disks. All disks are accessible, there are no I/O errors or disk access errors. What has me bewildered is this started happening quite recently. If it's not hardware, then perhaps a new usage pattern is revealing a flaw in our php session

Re: [PHP] Manipulate Request Headers after Redirect

2011-06-24 Thread Arthur Moczulski
Hey, this is what I understand: you want to manipulate headers of the request sent by the client directly after receiving a 302 response? If that's the case, than read further ;) Any client goes through the following process while communicating with a web-server: 1. get IP address from the domain

Re: [PHP] Manipulate Request Headers after Redirect

2011-06-24 Thread Louis Huppenbauer
Thank you for your answer! You are more or less correct - And as I saw it to be too much work (or just more or less impossible) I changed my approach to the problem. I am now sending several separated request with JavaScript (jQuery to be exact) without a 302, since I know in advance where I'll

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Chris Stinemetz
That worked perfectly! Thank you, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How PHP handles memory on exit

2011-06-24 Thread Brad Lorge
Hey All, I have a question pertaining to how PHP handles the residual values in memory once a thread exits. I am working on some credit card processing logic and would like to ensure that the values I am working with are not being left to their own fortune after the application exits. Out of

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Vitalii Demianets
On Friday 24 June 2011 17:28:08 Chris Stinemetz wrote: That worked perfectly! And will work, until you decide to put quotes in button name for some reason. And until some malicious user forge POST request with $_POST['post_tptest'] = '; DROP DATABASE; -- But you can use prepared statements to be

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Richard Quadling
On 24 June 2011 15:44, Vitalii Demianets vi...@nppfactor.kiev.ua wrote: On Friday 24 June 2011 17:28:08 Chris Stinemetz wrote: That worked perfectly! And will work, until you decide to put quotes in button name for some reason. And until some malicious user forge POST request with

[PHP] Upgrade or Die?

2011-06-24 Thread admin
In shifting gears to a faster pace of development and release, Mozilla has opted to abandon security support for Firefox 4 immediately upon the release of version 5, which came out this week. This could be a risky move, since many users neglect to update their browsers immediately for various

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Tamara Temple
On Jun 24, 2011, at 10:28 AM, Richard Quadling wrote: On 24 June 2011 15:44, Vitalii Demianets vi...@nppfactor.kiev.ua wrote: And furthermore, I think Carthage must be destroyed. Let's haul out the PHP war wagons! http://xkcd.com/327/ I so wanted to rename my daughter Little Chelsea

Re: [PHP] Upgrade or Die?

2011-06-24 Thread Richard S. Crawford
That is indeed frustrating. I upgraded to FF 4 a month ago or so, and it's been nothing but a hassle. Out of frustration, I switched to Chrome, and I haven't looked back. On Fri, Jun 24, 2011 at 10:16 AM, ad...@buskirkgraphics.com wrote: In shifting gears to a faster pace of development and

Re: [PHP] Upgrade or Die?

2011-06-24 Thread james
Chrome. Enough said. Now, if we can only convince the rest of the world ... Original Message From: ad...@buskirkgraphics.com To: php-general@lists.php.net Sent: Fri, Jun 24, 2011, 1:17 PM Subject: [PHP] Upgrade or Die? In shifting gears to a faster pace of development and release,

Re: [PHP] Upgrade or Die?

2011-06-24 Thread Andy McKenzie
On Fri, Jun 24, 2011 at 1:30 PM, ja...@nixsecurity.org wrote: Chrome. Enough said. Now, if we can only convince the rest of the world ... Ugh. I can't stand Chrome. Of course, I gave up on Firefox years ago and went back to Opera, so it doesn't bother me when Firefox does something weird

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Richard Quadling
On 24 June 2011 18:23, Tamara Temple tamouse.li...@gmail.com wrote: On Jun 24, 2011, at 10:28 AM, Richard Quadling wrote: On 24 June 2011 15:44, Vitalii Demianets vi...@nppfactor.kiev.ua wrote: And furthermore, I think Carthage must be destroyed. Let's haul out the PHP war wagons!

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Chris Stinemetz
radio select validation What I am doing wrong? I want to make sure a radio button is selected, but my current code allows insertion even when radio button isn't selected. My code is: //Generating radio buttons for store type with array

Re: [PHP] Upgrade or Die?

2011-06-24 Thread Ashley Sheridan
On Fri, 2011-06-24 at 13:38 -0400, Andy McKenzie wrote: On Fri, Jun 24, 2011 at 1:30 PM, ja...@nixsecurity.org wrote: Chrome. Enough said. Now, if we can only convince the rest of the world ... Ugh. I can't stand Chrome. Of course, I gave up on Firefox years ago and went back to

Re: [PHP] Upgrade or Die?

2011-06-24 Thread Robert Cummings
On 11-06-24 01:16 PM, ad...@buskirkgraphics.com wrote: In shifting gears to a faster pace of development and release, Mozilla has opted to abandon security support for Firefox 4 immediately upon the release of version 5, which came out this week. This could be a risky move, since many users

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Jim Giner
Call me backwards, but I prefer to keep my statements simple. I would first obtain the POST value before trying to pull up an array element. $stype=$_POST[''store_type']; if (!isset($stype)) (handle missing radio button) else $st_name=$choices[$stype]; for me (and the next guy who has

Re: [PHP] Upgrade or Die?

2011-06-24 Thread Richard Quadling
On 24 June 2011 19:39, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2011-06-24 at 13:38 -0400, Andy McKenzie wrote: On Fri, Jun 24, 2011 at 1:30 PM,  ja...@nixsecurity.org wrote: Chrome. Enough said. Now, if we can only convince the rest of the world ... Ugh.  I can't stand

Re: [PHP] Upgrade or Die?

2011-06-24 Thread Nam Gi VU
Dear James, In case you love Chrome that much, be sure you not using its `remember password` feature or any one else share using your PC/laptop will see it super-easily! Nam On Sat, Jun 25, 2011 at 12:30 AM, ja...@nixsecurity.org wrote: Chrome. Enough said. Now, if we can only convince the

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Andre Polykanine
Hello Chris, Maybe I'm off topic, but wouldn't you consider JavaScript form validation? That will make your task easier and the user will see his/her error much earlier, before he/she submits the form. -- With best regards from Ukraine, Andre Skype: Francophile My blog:

RE: [PHP] Upgrade or Die?

2011-06-24 Thread admin
The message for Netscape was very clear, the development community refused to write for it they had started a precedence that could not be forgotten. I say communities will not forget this act and remove the browser from their systems rather than be forced into an update for security reasons.