Re: [PHP] IE problem downloading files

2005-04-01 Thread kjohnson
"Luis Lebron" <[EMAIL PROTECTED]> wrote on 04/01/2005 09:42:32 AM: > > I have just changed the server that was being used our public website. > In the process the php scripts used to download files stopped working > with IE. The new box is running Debian Testing. The php version is > listed as PH

Re: [PHP] Using switch() to process a set of forms

2005-03-07 Thread kjohnson
I think the problem is that the name and value attributes of the tag aren't posted with the rest of the data, i.e., $_POST['form'] isn't defined. You will need to code the form identifier a different way, e.g., either a field, or, unique name and value attributes in a button. Kirk Greg Do

Re: [PHP] Problems including a url with query string variables

2005-03-04 Thread kjohnson
"Brian A. Anderson" <[EMAIL PROTECTED]> wrote on 03/04/2005 12:37:29 PM: > The below example works: > -- > > ob_start(); > include("http:/-.-.-.-/datachange.asp"); > $message = ob_get_clean(); > > > The below example does not work: >

Re: [PHP] Regex help

2005-01-29 Thread kjohnson
Michael Sims wrote: >> I need a validation regex that will "pass" a string. The string can >> be no longer than some maximum length, and it can contain any >> characters except two consecutive ampersands (&) anywhere in the >> string. >Yup, use this perl regex: > > /^(?:(&)(?!&)|[^&]){1,5}$/

Re: [PHP] Regex help

2005-01-28 Thread kjohnson
[EMAIL PROTECTED] wrote on 01/28/2005 04:13:38 PM: > On 28 Jan 2005 [EMAIL PROTECTED] wrote: > > > Thanks, Tom. I agree, but not an option at this time - other parts of the > > design require this to be a regex. > > It is pretty easy to do with two regexps, one to check the length and > anoth

Re: [PHP] Regex help

2005-01-28 Thread kjohnson
[EMAIL PROTECTED] wrote on 01/28/2005 03:19:14 PM: > On 28 Jan 2005 [EMAIL PROTECTED] wrote: > > > I need a validation regex that will "pass" a string. The string can be no > > longer than some maximum length, and it can contain any characters except > > two consecutive ampersands (&) anywher

[PHP] Regex help

2005-01-28 Thread kjohnson
OK, this is off-topic like every other "regex help" post, but I know some of you enjoy these puzzles :) I need a validation regex that will "pass" a string. The string can be no longer than some maximum length, and it can contain any characters except two consecutive ampersands (&) anywhere in

Re: [PHP] too slow to unset big array (after mem fragment)

2005-01-19 Thread kjohnson
> Xuefer Tinys wrote: > > i have a big array with 20k elements, i have no problem building it, > > because the elements is recv from socket, i can socket_select() on 1k > > clients, read from them. > > i plan to unset the whole array every 1hour > > this is a not big problem when for a few times, i

[PHP] Unique, "hard" session timeout on a shared server

2005-01-10 Thread kjohnson
I have researched a few ways to set a "hard" session timeout on a shared server. Does anyone have comments on the advantages/disadvantages of each approach? Are there other alternatives? 1. Override the php.ini settings in an .htaccess file: php_value session.gc_maxlifetime 900 php_value sessio