Re: [PHP] Since I speak with some of you more than people I see in person....

2008-12-30 Thread Kirk . Johnson
> >And as a side note (some of you already know): for my wife and I > > closing out the year, we heard the heartbeat of our first child for > > the first time today in the ultrasound. > Congrats on the new critter to be...they are a lot of fun after the first > year of eating sleeping and poo

Re: [PHP] switch vs elseif

2009-01-13 Thread Kirk . Johnson
I regret that I don't recall who made the brilliant observation that programmers spend the majority of their time *reading* code (their own or others) as opposed to *writing* code. So, I make it a point to try to make my code easily scannable. I only and always use the switch construct when eva

Re: [PHP] Trying To Read - Show A Csv File Line By Line

2009-03-20 Thread Kirk . Johnson
revDAVE wrote on 03/20/2009 03:11:00 PM: > Newbie ... I'm trying to Trying to read / show a csv file line by line ... fgetcsv is your friend. http://us.php.net/manual/en/function.fgetcsv.php Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] PHP Security

2009-06-02 Thread Kirk . Johnson
> On Jun 2, 2009, at 17:26, "Grant Peel" wrote: > > I am currently setting up the next generation web server for our > company and am in need of general consulting/advice on php set up > security issues. For "general" considerations, start here: http://www.php.net/manual/en/security.general.

Re: [PHP] Re: Can someone tell me why this is not working?

2009-06-18 Thread Kirk . Johnson
> [PHP] Re: Can someone tell me why this is not working? > > > The center echo does not show. It will show if I replace $newmort with > > anything else. I have copied the first "if" statement,pasted it in the > > second position, and it works fine. Once I change the var to $newmort, it >

Re: [PHP] modifying within foreach

2009-06-23 Thread Kirk . Johnson
Andres Gonzalez wrote on 06/23/2009 12:26:38 PM: > I want to modify $results within the foreach. In other words, > during a given pass of this iteration, I want to delete some > of the items based on particular conditions. Then on the next > pass thru the foreach, I want $results to be the newer,

Re: [PHP] POST without POSTing

2009-10-01 Thread Kirk . Johnson
Paul M Foster wrote on 09/30/2009 09:29:17 PM: > [PHP] POST without POSTing > > Paul M Foster > > to: > > php-general > > 09/30/2009 09:31 PM > > I have a form that collects certain info via POST. It is re-entrant, so > when the user hits the "submit" button, it checks the input and does >

Re: [PHP] a trivial little function (PostToHost)

2009-10-04 Thread Kirk . Johnson
tedd wrote on 10/04/2009 08:51:13 AM: > [PHP] a trivial little function (PostToHost) > > tedd > > to: > > php-general > > 10/04/2009 09:05 AM > > Hi gang: > > The following 'trivial little' function I'm trying to get my head around: > > http://aspn.activestate.com/ASPN/Mail/Message/php-g

Re: [PHP] a trivial little function (PostToHost)

2009-10-05 Thread Kirk . Johnson
tedd wrote on 10/05/2009 01:44:00 PM: [snip] > Hi Kirk: > > Okay, but what specifically is that script? > > I have written a script at server B to print_r($_POST), but I don't > get anything other than log errors (see below*). > > Here's an example: > > http://www.webbytedd.com/aa/send-for

RE: [PHP] php processing name vs. id field

2010-07-02 Thread Kirk . Johnson
"Bob McConnell" wrote on 07/02/2010 08:53:30 AM: > > Arguments against using/dismissing the "name" attribute in tags is > > simply nonsense. > > This discussion began when I pointed out that the name attribute is > deprecated in XHTML. This was later confirmed when someone pointed to > the actu

Re: [PHP] Friday's Question

2013-09-20 Thread Kirk . Johnson
Tedd Sperling wrote on 09/20/2013 10:51:49 AM: > > Do you use a Mousepad? [-snip-] Age: Bag Bomb Mousepad: Yes Padding for my wrist and quieter moving the mouse around - no scraping. So yes, I'm even too old to be plugged into an iPud or an iPeed, whatever they are :) Kirk

Re: [PHP] $_POST vars

2011-04-13 Thread Kirk . Johnson
Nathan Nobbe wrote on 04/13/2011 12:47:11 PM: [much snippage] > no, it's actually a better practice. users are expected to populate arrays > they create. the $GLOBALS array is expected to be populated by user > scripts. The $_POST array is expected to be populated by PHP. by the time > you

[PHP] When will the ereg extension be removed from PHP?

2012-01-17 Thread Kirk . Johnson
All, The ereg extension was deprecated as of version 5.3.0. Does anyone know what the schedule is for removing it completely? Thanks. Kirk

Re: [PHP] When will the ereg extension be removed from PHP?

2012-01-17 Thread Kirk . Johnson
kirk.john...@zootweb.com wrote on 01/17/2012 09:59:43 AM: > The ereg extension was deprecated as of version 5.3.0. Does anyone know > what the schedule is for removing it completely? Answering my own question, it looks like not before 6.0: http://marc.info/?l=php-internals&m=132618195307998&w=2

[PHP] Do an LDAP Password Modify Extended Operation?

2012-02-17 Thread Kirk . Johnson
Is it possible to do an LDAP Password Modify Extended Operation, as specified in RFC 3062? The password hashing scheme in the LDAP directory I am working with may change periodically, so it is my understanding that I can't hash a new password according to a specific scheme, e.g., {SHA}, on my s

Re: [PHP] Do an LDAP Password Modify Extended Operation?

2012-02-17 Thread Kirk . Johnson
Mike Mackintosh wrote on 02/17/2012 12:36:06 PM: > On Feb 17, 2012, at 10:57, kirk.john...@zootweb.com wrote: > > > Is it possible to do an LDAP Password Modify Extended Operation, as > > specified in RFC 3062? The password hashing scheme in the LDAP directory I > > am working with may chang

Re: [PHP] Do an LDAP Password Modify Extended Operation?

2012-02-21 Thread Kirk . Johnson
Mike Mackintosh wrote on 02/17/2012 07:25:36 PM: > [image removed] > > Re: [PHP] Do an LDAP Password Modify Extended Operation? > > Mike Mackintosh > > to: > > Kirk.Johnson, PHP General List > > 02/17/2012 07:26 PM > > On Feb 17, 2012, at 3:34 PM, kirk.john...@zootweb.com wrote: > > > M

[PHP] PHP: "superior code quality"

2012-03-28 Thread Kirk . Johnson
A little note about our favorite language: " Linux 2.6, PHP 5.3, and PostgreSQL 9.1 are recognized as open source projects with superior code quality and can be used as industry benchmarks, achieving defect densities of .62, .20, and .21 respectively. " http://www.coverity.com/html/press/open-s

[PHP] Beware of round() function

2008-03-24 Thread Kirk . Johnson
Beware: round() apparently has changed its behavior from PHP 4. For certain special numbers that seem to be multiples of 100,000, the return value is in exponential format, rather than the usual decimal format. Some of these special values are 120, 140, 230, which are returned as 1.

Re: [PHP] Beware of round() function

2008-03-25 Thread Kirk . Johnson
Thanks for the info, Jeremy. Regardless of the technical details, my code still broke. I am little discouraged that an operation that should be so simple has these sorts of gotchas. BTW, I ended up casting to int as my solution. Kirk Jeremy Privett <[EMAIL PROTECTED]> wrote on 03/24/2008 02:04

Re: [PHP] Beware of round() function

2008-04-09 Thread Kirk . Johnson
> On Mon, 24 Mar 2008 13:10:17 -0600, [EMAIL PROTECTED] wrote: > > Beware: round() apparently has changed its behavior from PHP 4. For > > certain special numbers that seem to be multiples of 100,000, the return > > value is in exponential format, rather than the usual decimal format. > Some > >

Re: [PHP] Quarters -- ERRORS --

2008-04-11 Thread Kirk . Johnson
tedd <[EMAIL PROTECTED]> wrote on 04/11/2008 02:49:21 PM: > But the critter is dead in the water for all versions of IE -- if -- > I don't figure out a way around the following single statement. > > document.getElementById(id).checked = true; > > After reading a bunch, it seems that M$ has a be

RE: [PHP] Binary data in $_POST, not in $_FILES, why?

2008-06-16 Thread Kirk . Johnson
"Jim Feniello" <[EMAIL PROTECTED]> wrote on 06/16/2008 03:16:02 PM: > Anyone know if PHP keys off the content-disposition for form pre-processing > to populate the $_FILES array? I believe that the $_FILES array is only populated when the tag contains 'enctype="multipart/form-data"' and there

Re: [PHP] Floats and avoid exponential notation - How?

2008-07-17 Thread Kirk . Johnson
"k bah" <[EMAIL PROTECTED]> wrote on 07/17/2008 05:23:40 AM: > Hi, > > From http://www.php.net/manual/en/language.types.float.php (second comment in > that page, from "kjohnson at zootweb dot com"): > > "PHP switches from the standard decimal notation to exponential notation for > certain "

Re: [PHP] quick php for perl coder question

2008-09-11 Thread Kirk . Johnson
Thomas Bolioli <[EMAIL PROTECTED]> wrote on 09/11/2008 01:10:18 PM: > I want to return an array from a function. > I have this: > return array($found, $username, $email, $nickname); > as my code. I have a bug in the code and I am not sure where yet. Should > the above statement with this: > > a

Re: [PHP] Session expires randomly

2005-09-02 Thread Kirk . Johnson
> On Fri, 2 Sep 2005, Mauricio Pellegrini wrote: > > > Hi, I have this problem , When I start a Session everything seems to be > > ok but sometimes with no reason the session vanishes. > > > > All settings are default , I mean session_cache_expire is 180 min. > > I understand that this setting sh

Re: [PHP] Session expires randomly

2005-09-08 Thread Kirk . Johnson
> > > So I was thinking on implementing some sort of automatic session refresh > > > after a short period, let's say every 20 minutes of inactivity. > > > > > > And of course I should provide the users with a manual way to make > > > session end, sort of a logout from the application.( no problem

RE: [PHP] session.gc_maxlifetime

2005-09-09 Thread Kirk . Johnson
> Also, I thought you could use ini_set to change your php.ini configuration > for your current script. > > But I could be wrong... Did I miss read the manual? ini_set() can be used to change *some* settings. Some items that are configured in php.ini come into play before the script is parsed,

Re: [PHP] Is PHP the language for me???

2005-09-23 Thread Kirk . Johnson
"Emily McCall" <[EMAIL PROTECTED]> wrote on 09/23/2005 03:07:39 PM: > I am trying to figure out whether php will help me to set up a > website which is essentially just links to donwloadable material. Emily, you certainly came to the right place to get an endorsement of PHP ;) Yes. PHP will h

Re: [PHP] php / JS / DOM question

2005-12-29 Thread Kirk . Johnson
Add the "value" property: document.forms['query_form'].elements['q'] .value. Kirk jonathan <[EMAIL PROTECTED]> wrote on 12/29/2005 02:45:23 PM: > > > > > > When the user clicks on the button, I want the text that is in input > elment 'q' to be sent to the Javascript function drawImg but wh

[PHP] Need help interpreting server log entries

2006-02-17 Thread Kirk . Johnson
We are seeing this message in our server logs with respect to one of our internal extensions. What is the meaning of "Overrun" in this context? acd-result.c(114) : Block 0x0816D12C status: Beginning: Overrun (magic=0x0021, expected=0x7312F8DC) End: Unknown TIA Kirk -- PHP