RE: [PHP] Detect and Redirect Mobile Users

2013-06-14 Thread Ford, Mike
> -Original Message- > From: Dead Letter.Office [mailto:dead.letter.off...@isam.co.nz] > Sent: 14 June 2013 05:22 > To: php-general@lists.php.net > > http://php.net/manual/en/misc.configuration.php#ini.browscap > http://tempdownloads.browserscap.com/ > > $browser = get_browser(null, TRUE)

RE: [PHP] target question

2013-03-25 Thread Ford, Mike
> -Original Message- > From: Paul M Foster [mailto:pa...@quillandmouse.com] > Sent: 25 March 2013 16:09 > > This behavior of the browser actually conforms to the standard as > far as > I know. The "target" attribute is attached only to the tag, > according to w3schools.com Actually, the

RE: [PHP] Re: UNLESS Statement Equivalent

2013-03-12 Thread Ford, Mike
> -Original Message- > From: Arno Kuhl [mailto:a...@dotcontent.net] > Sent: 12 March 2013 13:04 > > Mike, I presume you're saying the precedence of the Boolean keyword > operators is lower than the Boolean symbol operators, but if so then > wouldn't there be less need for the parentheses?

RE: [PHP] Re: UNLESS Statement Equivalent

2013-03-12 Thread Ford, Mike
> -Original Message- > From: Maciek Sokolewicz [mailto:tula...@gmail.com] On Behalf Of > Maciek Sokolewicz > Sent: 11 March 2013 22:44 > > unless ( $a and $b ) > = > if ( ! ($a and $b) ) > > So in simple terms, just stick a ! (or the keyword not) in front of > your > expression, and you'

RE: [PHP] Re: Stupid question

2013-02-27 Thread Ford, Mike
> -Original Message- > From: Jim Giner [mailto:jim.gi...@albanyhandball.com] > Sent: 27 February 2013 12:28 > > > 2 - you have a couple indices wrapped in curly braces, not parens. > Is > that some new kind of syntax I'm not aware of? No, that's some old kind of syntax you have no reason

RE: [PHP] select function

2012-10-25 Thread Ford, Mike
> -Original Message- > From: Stuart Dallas [mailto:stu...@3ft9.com] > Sent: 25 October 2012 22:48 Aw, nuts! Stuart, you just beat me to it! I was half way through writing an almost identical post when yours popped into my Inbox Cheers! Mike -- Mike Ford, Electronic Information Dev

RE: [PHP] Array help.

2012-10-24 Thread Ford, Mike
> From: Paul Halliday [paul.halli...@gmail.com] > Sent: 24 October 2012 18:38 > To: PHP-General > Subject: [PHP] Array help. > > $groupMappings = array('40' =>'A','41' =>'B','1' =>'C'); > > $ocTest = explode(".", $ip); > $groupKeys = array_keys($groupMappings); > $groupTest = arra

RE: [PHP] Wrong time being displayed by PHP!

2012-10-18 Thread Ford, Mike
> From: underp...@gmail.com [mailto:underp...@gmail.com] On Behalf Of > Richard S. Crawford > Sent: 17 October 2012 19:29 > To: PHP-General > > You can see the current output of the above code here: > > http://projectbench.extensiondlc.net Can I ask what the fix for this was? Because that URL is

RE: [PHP] How do I do count the occurrence of each word?

2012-08-20 Thread Ford, Mike
> -Original Message- > From: Marco Behnke [mailto:ma...@behnke.biz] > Sent: 19 August 2012 06:39 > To: php-general@lists.php.net > Subject: Re: [PHP] How do I do count the occurrence of each word? > > Am 19.08.12 06:59, schrieb tamouse mailing lists: > > On Sat, Aug 18, 2012 at 6:44 PM, Jo

RE: [PHP] Re: php form action breaks script

2012-07-02 Thread Ford, Mike
> -Original Message- > From: Tim Dunphy [mailto:bluethu...@gmail.com] > Sent: 28 June 2012 01:18 > > Hey guys, > > It's been a little while since I've toyed with this, and I hope you > don't mind my coming back to you for some more advice. But I've > enjoyed some limited success with Davi

RE: [PHP] Can I do this in a single match/replace?

2012-06-28 Thread Ford, Mike
> -Original Message- > From: Paul Halliday [mailto:paul.halli...@gmail.com] > Sent: 28 June 2012 02:27 > Using preg_match and this pattern I can get the refs: > > $pattern = '\reference:url,([^;]+;)\'; > > which gives me: > > $matches[0] = www.ndmp.org/download/sdk_v4/draft-skardal-nd

RE: [PHP] Function mktime() documentation question

2012-03-09 Thread Ford, Mike
> -Original Message- > From: Tedd Sperling [mailto:tedd.sperl...@gmail.com] > Sent: 08 March 2012 23:15 > To: PHP-General List [previous discussion snipped] > Mike: > > Very well put. > > You say: > > > Huh? The 0th day of next month *is* the last day of the current > month, > > whi

RE: [PHP] Function links on error and warningmessages

2012-02-03 Thread Ford, Mike
> -Original Message- > From: Florian Müller [mailto:florip...@hotmail.com] > Sent: 03 February 2012 14:36 > > Hi guys, > > I was wondering some time ago, why the links which are shown on > error or warning (E_WARNING etc.) show relative links to an usually > non-existing file. Because yo

RE: [PHP] sessions and expirations and isolations

2012-01-18 Thread Ford, Mike
> -Original Message- > From: Stuart Dallas [mailto:stu...@3ft9.com] > Sent: 18 January 2012 12:02 > > On 17 Jan 2012, at 23:17, Haluk Karamete wrote: > > > I'm afraid session.cookie_lifetime = 0 keeps all session data ( > that > > is past and present ) in server memory until a server rest

RE: [PHP] Variable question

2011-10-03 Thread Ford, Mike
> -Original Message- > From: Ron Piggott [mailto:ron@actsministries.org] > Sent: 01 October 2011 18:59 > To: php-general@lists.php.net > Subject: [PHP] Variable question > > > If $correct_answer has a value of 3 what is the correct syntax > needed to use echo to display the value of $

RE: [PHP] form validation

2011-08-14 Thread Ford, Mike
> -Original Message- > From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of > Daniel P. Brown > Sent: 12 August 2011 16:53 > > On Fri, Aug 12, 2011 at 11:42, Chris Stinemetz > wrote: > > I have a select menu created by a foreach loop. I am trying to > > validate that there wa

RE: Re: [PHP] pathinfo function

2011-07-27 Thread Ford, Mike
> -Original Message- > From: Tim Streater [mailto:t...@clothears.org.uk] > Sent: 27 July 2011 09:57 > > On 26 Jul 2011 at 23:55, Micky Hulse wrote: > > > On Tue, Jul 26, 2011 at 3:47 PM, Tim Streater > wrote: > >> that I will get an error if I try to reference $info["extension"] > ?? >

RE: [PHP] Top Posting

2011-07-06 Thread Ford, Mike
On 2011-07-05, Stuart Dallas penned the words: > On Tue, Jul 5, 2011 at 3:29 PM, wrote: > >> Anyone know how to make Outlook changes its reply position. > > Google delivers... > http://sourceforge.net/apps/mediawiki/macros4outlook/index.php?title > =QuoteFix_Macro Many thanks for that link, St

RE: [PHP] header function odd behavior

2011-06-28 Thread Ford, Mike
> -Original Message- > From: H Rao [mailto:hydsd...@gmail.com] > Sent: 28 June 2011 04:40 > > I am trying to understand odd(different) behavior of the header > function > under two different environments. > > Here is the code which I am trying to execute from two different > servers > >

RE: [PHP] Doctrine madness!

2011-06-20 Thread Ford, Mike
> -Original Message- > From: Nathan Nobbe [mailto:quickshif...@gmail.com] > Sent: 16 June 2011 17:51 [...] > Here's what's going on, I instantiate a model object for the product > table > from my application > > $newRecord = new Product(); > > at this point memory usage goes up noticea

RE: [PHP] strcmp()?

2011-05-23 Thread Ford, Mike
> -Original Message- > From: tedd [mailto:tedd.sperl...@gmail.com] > Sent: 23 May 2011 14:41 > The "which way the arrows point" thing is because I'm dyslexic. > While > I know that "a" appears before "b", it's difficult for me to think > of > 'a' being less than 'b' -- UNLESS -- I think i

RE: [PHP] strcmp()?

2011-05-23 Thread Ford, Mike
> -Original Message- > From: Joshua Kehn [mailto:josh.k...@gmail.com] > Sent: 23 May 2011 13:04 > > On May 23, 2011, at 8:00 AM, tedd wrote: > > > At 8:13 AM + 5/23/11, Ford, Mike wrote: > >> echo strcmp('These are nearly equal', &#x

RE: [PHP] A Review Request

2011-05-23 Thread Ford, Mike
> -Original Message- > From: tedd [mailto:tedd.sperl...@gmail.com] > Sent: 22 May 2011 22:33 > > At 5:50 PM +0200 5/22/11, Nisse =?utf-8?Q?Engstr=C3=B6m?= wrote: > >On Sat, 21 May 2011 09:26:02 -0400, tedd wrote: > > > >> The function strcmp() simply evaluates two strings and reports > ba

RE: [PHP] Warning: session_start()

2011-05-19 Thread Ford, Mike
> -Original Message- > From: Pete Ford [mailto:p...@justcroft.com] > Sent: 19 May 2011 11:36 > To: php-general@lists.php.net > Subject: Re: [PHP] Warning: session_start() > > >> On 18 May 2011 19:15, Nazish wrote: > > > >>> Hi everyone, > > > >>> - > >>> WHEN USER CLI

RE: [PHP] Ranges for case statement and a WTF moment.

2011-04-07 Thread Ford, Mike
> -Original Message- > From: David Harkness [mailto:davi...@highgearmedia.com] > Sent: 06 April 2011 21:08 > To: Richard Quadling; PHP General list > Subject: Re: [PHP] Ranges for case statement and a WTF moment. > > On Tue, Apr 5, 2011 at 8:28 AM, Richard Quadling > wrote: > [...] > > 10

RE: [PHP] Closing Session

2011-04-01 Thread Ford, Mike
> -Original Message- > From: Ethan Rosenberg [mailto:eth...@earthlink.net] > Sent: 31 March 2011 21:40 > I can be working on more than one program simultaneously and have > one > tab open w/ program A and another w/ program B. The site in > reference is "http://localhost"; Do these

RE: [PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-15 Thread Ford, Mike
> -Original Message- > From: Andy McKenzie [mailto:amckenz...@gmail.com] > Sent: 15 March 2011 15:51 > > As it turns out, the most important lesson here is: "Don't trust > what > anyone tells you." The old server is 64-bit. The new server is > 32-bit. Once I stopped to check that mysel

RE: [PHP] Issue with Quick Email validation

2011-03-10 Thread Ford, Mike
Apart form the obvious error already solved, in this situation I would not be forcing my users to type in an element that only has one option -- I would display the form box with the text "@company.com" immediately after it, and only expect the unique part to be entered. Cheers! Mike -- Mik

RE: [PHP] String length output in php-generated response

2011-02-07 Thread Ford, Mike
> -Original Message- > From: Florin Jurcovici [mailto:florin.jurcov...@gmail.com] > Sent: 06 February 2011 15:57 > I'm trying to build myself a small JSON-RPC server using PHP. > > Using wireshark, here's the conversation: > > Request: [...snip...] > Response: > HTTP/1.1 200 OK

RE: [PHP] PHP Docs update

2011-01-06 Thread Ford, Mike
Except it completely sucks when I look at it using my (corporately constrained) IE7! There are also a few display issues on the individual reference pages when viewed with FF3.6 - the coloured bars and grey backgrounds spill over into the left-hand menu (although the text does not). Looks like

RE: [PHP] How do I convert the string "E_ALL & ~E_NOTICE" to the decimal equivalent 6135?

2010-11-12 Thread Ford, Mike
> -Original Message- > From: Daevid Vincent [mailto:dae...@daevid.com] > Sent: 11 November 2010 22:23 > To: php-general@lists.php.net > > > -Original Message- > > From: Ford, Mike [mailto:m.f...@leedsmet.ac.uk] > > Sent: Thursday, November 11,

RE: [PHP] How do I convert the string "E_ALL & ~E_NOTICE" to the decimal equivalent 6135?

2010-11-11 Thread Ford, Mike
> -Original Message- > From: Daevid Vincent [mailto:dae...@daevid.com] > Sent: 11 November 2010 04:06 > To: php-general@lists.php.net > > We're trying to move all of our configuration files for our > DEV/TEST/PROD > and various python scripts and such that all need the same DB > connection

RE: [PHP] Possible foreach bug; seeking advice to isolate the problem

2010-10-22 Thread Ford, Mike
> -Original Message- > From: Jonathan Sachs [mailto:081...@jhsachs.com] > Sent: 20 October 2010 04:48 > To: php-general@lists.php.net > Subject: [PHP] Possible foreach bug; seeking advice to isolate the > problem > > I've got a script which originally contained the following piece of > cod

RE: [PHP] Re: "My truth comes out" [1]

2010-10-22 Thread Ford, Mike
> -Original Message- > From: Jason [mailto:networkad...@emarket2.com] > Sent: 21 October 2010 11:45 > > What about something simple and readable like: > > ($string=="true") ? true : false; ... and wasteful. The above gives exactly the same result as ($string=="true") Cheers! Mike

RE: [PHP] Formatting an ECHO statement.

2010-10-18 Thread Ford, Mike
> -Original Message- > From: Shreyas Agasthya [mailto:shreya...@gmail.com] > Sent: 18 October 2010 11:10 > > A bit of silly one but like my book says, there are no dumb > questions, I am > asking it here. > > If I have : > > $other="Whatever"; > > and I do: > > echo 'Other Comments:' .

RE: [PHP] RegExp question: how to add a number?

2010-10-15 Thread Ford, Mike
> -Original Message- > From: Andre Polykanine [mailto:an...@oire.org] > Sent: 14 October 2010 21:42 > > Hi everyone, > I hope you're doing well (haven't written here for a long time :-)). > The question is as follows: I have a regexp that would do the > following. If the string begins with

RE: [PHP] Re: Continuance of the struggle (trying to understand)

2010-10-05 Thread Ford, Mike
> -Original Message- > From: Col Day [mailto:colind...@aol.com] > Sent: 05 October 2010 12:55 > To: php-general@lists.php.net > Subject: Re: [PHP] Re: Continuance of the struggle (trying to > understand) > > Hi Shreyas, > > Ok, as far as I can tell the script should show "This is an HTM

RE: [PHP] if/elseif being treated as if/if

2010-09-27 Thread Ford, Mike
> -Original Message- > From: tedd [mailto:tedd.sperl...@gmail.com] > Sent: 25 September 2010 16:02 > One can make the argument that the ELSE IF statement first surfaced > circa 1977 in FORTRAN 77 and the CASE statement came later in > FORTRAN > 90 circa 1991. Being a fully-fledged membe

RE: [PHP] Bitwise NOT operator?

2010-08-24 Thread Ford, Mike
> -Original Message- > From: Andy McKenzie [mailto:amckenz...@gmail.com] > Sent: 24 August 2010 17:24 > To: php-general@lists.php.net > Subject: Re: [PHP] Bitwise NOT operator? > From your example, this would have shown me what I needed to know: > > "Then taking the value of E_NOTICE...

RE: [PHP] the state of the PHP community

2010-07-30 Thread Ford, Mike
> -Original Message- > From: Nathan Rixham [mailto:nrix...@gmail.com] > Sent: 29 July 2010 06:36 > in no particular order: > > What other languages and web techs do you currently use other than > PHP? > - if you include html or css please include version, if js then > preferred libs, and

RE: [PHP] Static Class Member References

2010-07-14 Thread Ford, Mike
> -Original Message- > From: Daniel Kolbo [mailto:kolb0...@umn.edu] > Sent: 11 July 2010 23:19 > > Hello PHPers, > > I'm having some trouble understanding some PHP behaviour. The > following > example script exhibits the behaviour which I cannot understand. I'm pretty sure that this is

RE: [PHP] Array form processing

2010-06-30 Thread Ford, Mike
> -Original Message- > From: Ron Piggott [mailto:ron.pigg...@actsministries.org] > Sent: 29 June 2010 22:22 > > Am I on the right track? I don't know what to do with the second > "FOREACH" Sort of. > > > foreach($_REQUEST as $key => $val) { > $$key = $val; >echo $key . "

RE: [PHP] in_array - what the...

2010-06-25 Thread Ford, Mike
> -Original Message- > From: Gary . [mailto:php-gene...@garydjones.name] > Sent: 25 June 2010 09:14 > To: PHP > Subject: Re: [PHP] in_array - what the... > > "Ford, Mike" writes: > >> -Original Message- > >>

RE: [PHP] in_array - what the...

2010-06-25 Thread Ford, Mike
> -Original Message- > From: Gary . [mailto:php-gene...@garydjones.name] > Sent: 25 June 2010 08:18 > To: PHP > Subject: [PHP] in_array - what the... > > If I have an array that looks like > array(1) { > ["mac_address"]=> > string(2) "td" > } > > and I call > if (in_array($n

RE: Re[2]: [PHP] One more time about regexes

2010-05-27 Thread Ford, Mike
> -Original Message- > From: Andre Polykanine [mailto:an...@oire.org] > Sent: 27 May 2010 09:14 > To: Adam Richardson > Cc: php-general@lists.php.net > Subject: Re[2]: [PHP] One more time about regexes > > Hello Adam, > > You did understand me exactly and perfectly). > Ordering arrays i

RE: [PHP] batteling with mod_fcgi in virtualmin virtual host

2010-05-26 Thread Ford, Mike
> -Original Message- > From: gregory.mac...@gmail.com [mailto:gregory.mac...@gmail.com] On > Behalf Of Gregory Machin > Sent: 26 May 2010 09:10 > To: php-general@lists.php.net > > I'm experiencing the following [] > apart from changing logging levels how should I resolve these > issu

RE: [PHP] regexp questions

2010-05-12 Thread Ford, Mike
> -Original Message- > From: Spud. Ivan. [mailto:spudm...@hotmail.com] > Sent: 11 May 2010 15:56 > To: php-general@lists.php.net > Subject: RE: [PHP] regexp questions > > > > hehe, but I can't find anything related to regexp. I've found > something at http://php.net/preg_match > Change

RE: [PHP] regexp questions

2010-05-11 Thread Ford, Mike
> -Original Message- > From: Spud. Ivan. [mailto:spudm...@hotmail.com] > Sent: 11 May 2010 01:25 > To: php-general@lists.php.net > Subject: RE: [PHP] regexp questions > > > Is there any place where to read the changelog or something? Um, you mean, like, http://php.net/changelog ?? ;)

RE: [PHP] $_FILE array being truncated

2010-03-17 Thread Ford, Mike
> -Original Message- > From: Kim Madsen [mailto:php@emax.dk] > Sent: 16 March 2010 18:54 > when the field is changed (onChange()) or out of focus (is there > such a > function? onUnFocus()? :-)). onBlur() (Keeping the A as short as the Q is OT!) Cheers! Mike -- Mike Ford, Electr

RE: [PHP] Re: PHP in HTML code

2010-03-16 Thread Ford, Mike
> -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: 16 March 2010 11:16 > > On Tue, 2010-03-16 at 11:16 +0000, Ford, Mike wrote: > > > > > Proof: http://marc.info/?l=php-internals&m=126832992915664&w=2 > &g

RE: [PHP] Re: PHP in HTML code

2010-03-16 Thread Ford, Mike
> -Original Message- > From: Bob McConnell [mailto:r...@cbord.com] > Sent: 15 March 2010 18:13 > > From: Jochem Maas > > > Op 3/13/10 3:49 PM, Jorge Gomes schreef: > >> First of all, i recommend the use of normal php tags ( ?>) > because > >> the short tags are atm marked as* **DEPRECATED

RE: [PHP] RE: Delayed page display

2010-03-05 Thread Ford, Mike
> -Original Message- > From: rob...@visualize.info [mailto:rob...@visualize.info] > Sent: 05 March 2010 00:00 > > Additional info: > > php.ini has output_buffering=4096. Calling flush() or > ob_implicit_flush() > within the script doesn't seem to help. However setting > php_value

RE: [PHP] Fun with Streams

2010-02-22 Thread Ford, Mike
> -Original Message- > From: Rene Veerman [mailto:rene7...@gmail.com] > Sent: 22 February 2010 09:09 > > >http://www.bettina- > attack.de/jonny/view.php/projects/php_writeexcel/ > >And, hey, when the hell will the PHP developers implement a foreach > loop which assigns the array values b

RE: [PHP] Pointers For Newbies, Reminders For Oldies

2010-01-28 Thread Ford, Mike
> -Original Message- > From: Nathan Rixham [mailto:nrix...@gmail.com] > Sent: 28 January 2010 13:43 > > Ford, Mike wrote: > >> -Original Message- > >> From: Rene Veerman [mailto:rene7...@gmail.com] > >> Sent: 27 January 2010 22:46 > &

RE: [PHP] Pointers For Newbies, Reminders For Oldies

2010-01-28 Thread Ford, Mike
> -Original Message- > From: Rene Veerman [mailto:rene7...@gmail.com] > Sent: 27 January 2010 22:46 > > And if your script needs to pass large (> 5Mb) arrays around to > functions, be sure to use passing-by-reference; failing to do so can > double your memory requirements, > possibly hitti

RE: [PHP] If the first four characters are "0000", then do {}

2010-01-27 Thread Ford, Mike
> -Original Message- > From: Daevid Vincent [mailto:dae...@daevid.com] > Sent: 26 January 2010 03:52 > > if (substr($mydata->restored,0,4) == "") { } > > Or in your very specific case you could do the harder way and note > that > strings work like simple arrays too in a way, so $mydat

RE: [PHP] Passing HTML array index to JS?

2009-12-08 Thread Ford, Mike
> -Original Message- > From: Skip Evans [mailto:s...@bigskypenguin.com] > Sent: 07 December 2009 23:03 > To: php-general@lists.php.net > Subject: [PHP] Passing HTML array index to JS? > > Hey all, > > I have an HTML field like this > > style="text-align: right;" onblur="calculateBidUn

RE: [PHP] Re: logic operands problem

2009-12-07 Thread Ford, Mike
Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: m.f...@leedsmet.ac.uk Tel: +44 113 812 4730 From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: 07 December 2009 12:26 To: Ford, Mike Cc: php-general@lists.php.net Subject: RE: [PHP] Re: logic operands problem

RE: [PHP] Re: logic operands problem

2009-12-07 Thread Ford, Mike
> -Original Message- > From: Merlin Morgenstern [mailto:merli...@fastmail.fm] > Sent: 07 December 2009 11:52 > To: "Sándor Tamás (HostWare Kft.)" > Cc: Merlin Morgenstern; php-general@lists.php.net > Subject: Re: [PHP] Re: logic operands problem > > > > Sándor Tamás (HostWare Kft.) wrote

RE: [PHP] Does PHP block requests?

2009-11-20 Thread Ford, Mike
> -Original Message- > From: Peter Ford [mailto:p...@justcroft.com] > Sent: 20 November 2009 16:40 > You're right about trying to use the same session - that was the > plan to get the > progress state passed across from one call to the other. > Closing the session on the generator script

RE: [PHP] Change styling depending on var value

2009-11-20 Thread Ford, Mike
> -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: 20 November 2009 21:16 > To: Phil Matt > Cc: php-general@lists.php.net > Subject: Re: [PHP] Change styling depending on var value > > On Fri, 2009-11-20 at 16:17 -0500, Phil Matt wrote: > > > Ashley Sh

RE: [PHP] Does PHP block requests?

2009-11-20 Thread Ford, Mike
> -Original Message- > From: Peter Ford [mailto:p...@justcroft.com] > Sent: 20 November 2009 15:18 > To: php-general@lists.php.net > Subject: [PHP] Does PHP block requests? > > I have a tricky problem. > > I'm trying to make a progress feedback mechanism to keep users > informed about a >

RE: [PHP] Using $$

2009-11-19 Thread Ford, Mike
> -Original Message- > From: Arno Kuhl [mailto:ak...@telkomsa.net] > Sent: 19 November 2009 12:23 > > I was looking at some old code that I'm convinced once worked but > now using > php5 it doesn't seem to work anymore. > > $input = "_REQUEST"; > if (is_array($$input)) { > // do somet

RE: [PHP] Noob question: Making search results clickable.

2009-11-19 Thread Ford, Mike
> -Original Message- > From: Nisse Engström [mailto:news.nospam.0ixbt...@luden.se] > Sent: 19 November 2009 14:54 > To: php-general@lists.php.net > Subject: Re: [PHP] Noob question: Making search results clickable. > > On Wed, 18 Nov 2009 10:31:59 -0500, Paul M Foster wrote: > > > Replace

RE: [PHP] mysql user session handler

2009-09-09 Thread Ford, Mike
> -Original Message- > From: Tom Worster [mailto:f...@thefsb.org] > Sent: 09 September 2009 02:29 > > thanks, Devendra, that's pretty much the same as my handler. (though > i can't > figure Rich Smith's $sess_save_path global. do you know what is > for?) I think if you look at the comment

RE: [PHP] Date +30 comparison

2009-09-02 Thread Ford, Mike
> -Original Message- > From: tedd [mailto:tedd.sperl...@gmail.com] > Sent: 01 September 2009 21:52 > > At 2:47 PM -0400 9/1/09, Andrew Ballard wrote: > >On Tue, Sep 1, 2009 at 1:27 PM, tedd > wrote: > >> First get the date to seconds, like so: > >> > >> $today_date = '8/26/2009'; > >> >

RE: [PHP] IRC and English

2009-09-02 Thread Ford, Mike
> -Original Message- > From: Peter Ford [mailto:p...@justcroft.com] > Sent: 02 September 2009 09:40 > > Words that are two lengthy: "of", "an", "to", "it" (etc.) > Words that are too lengthy: "antidisestablishmentarianism", > "internationalisation" and that other one that begins with > "

RE: [PHP] DOMNode children iteration (was Re: array() returns something weird)

2009-08-26 Thread Ford, Mike
> -Original Message- > From: Szczepan Hołyszewski [mailto:webmas...@strefarytmu.pl] > Sent: 26 August 2009 08:48 > > Martin Scotta wrote: > > > Fatal error: Call to a member function getAttribute() on a non- > object in > > testme.php on line *121* > > Yes, this is _how_ the unmodified s

RE: [PHP] running str_replace, it misbehaves!

2009-08-17 Thread Ford, Mike
> -Original Message- > From: Allen McCabe [mailto:allenmcc...@gmail.com] > Sent: 16 August 2009 22:07 [...] > Here is an example of my code: > > [code] > > //ENCRYPT FUNCTIONS > function format_string($string,$functions) > { $funcs = explode(",",$functions); > foreach ($funcs as $

RE: [PHP] session variables - help

2009-08-14 Thread Ford, Mike
> -Original Message- > From: Allen McCabe [mailto:allenmcc...@gmail.com] > Sent: 14 August 2009 06:58 > > Here is some more complete code: > > [code = order_process.php] > > session_start(); > // POST ALL $_POST VALUES, CREATE AS VARIABLES IN SESSION > foreach($_POST as $k=>$v) { > $_S

RE: [PHP] session variables - help

2009-08-14 Thread Ford, Mike
> -Original Message- > From: Ford, Mike [mailto:m.f...@leedsmet.ac.uk] > Sent: 14 August 2009 11:45 > > Now, here is the update_order.php code in entirety: > > > > [code] > > > > > session_start(); > > foreach ($_SESSION as $var => $v

RE: [PHP] session variables - help

2009-08-14 Thread Ford, Mike
> -Original Message- > From: Allen McCabe [mailto:allenmcc...@gmail.com] > Sent: 14 August 2009 06:58 > My ai with using unset($var) in update_order.php is to set the > SESSION > variable for an item to ' ' (empty) so that it would not show up on > the > order summary (because my writeRe

RE: [PHP] ereg_replace to preg_replace translation

2009-08-11 Thread Ford, Mike
> -Original Message- > From: m a r k u s [mailto:queribus2...@hotmail.com] > Sent: 11 August 2009 15:34 > > I see that from PHP 5.3.0 ereg_replace() function is deprecated and > throws a warning. > I would like to use the preg_replace() function as an alternative of > ereg_replace() functi

RE: [PHP] Re: how to say "inverse your value" (to a boolean)?

2009-08-11 Thread Ford, Mike
> -Original Message- > From: Ralph Deffke [mailto:ralph_def...@yahoo.de] > Sent: 11 August 2009 01:45 > > u... > try > echo ""; > for( $i=0 ; $i<10; $i++){ > echo "something " . (($a = $a^1) ? "red\n" : "green\n"); > } The ^ operator is one that has an assigning version, so the abov

RE: [PHP] how to say "inverse your value" (to a boolean)?

2009-08-11 Thread Ford, Mike
> -Original Message- > From: Daevid Vincent [mailto:dae...@daevid.com] > Sent: 11 August 2009 02:19 > > Then YOU have more aggressive error_reporting than the default > setting > turned on. You might consider turning it down a notch. NOTICEs are > basically > useless and bloat your code IM

RE: [PHP] Radio buttons problem

2009-08-10 Thread Ford, Mike
> -Original Message- > From: leledumbo [mailto:leledumbo_c...@yahoo.co.id] > Sent: 10 August 2009 11:11 > To: php-general@lists.php.net > Subject: RE: [PHP] Radio buttons problem > > > > Why do you? There's no reason you *have* to have consecutive > indexes -- > just iterate over the re

RE: [PHP] Server change affecting ability to send downloaded files???

2009-08-10 Thread Ford, Mike
> -Original Message- > From: Brian Dunning [mailto:br...@briandunning.com] > Sent: 08 August 2009 01:04 > To: PHP General List > Subject: Re: [PHP] Server change affecting ability to send > downloaded files??? > > Very interesting. Excellent debugging advice. It's giving me a 500 > error

RE: [PHP] Radio buttons problem

2009-08-07 Thread Ford, Mike
> -Original Message- > From: leledumbo [mailto:leledumbo_c...@yahoo.co.id] > Sent: 07 August 2009 05:43 > > > This should work: > > > > > > > > > > > > Yes, that works. But should I manually maintain the number in the > bracket? > Is there anyway so that it can be automatically mainta

RE: [PHP] Trying to create a comment function

2009-08-07 Thread Ford, Mike
> -Original Message- > From: Allen McCabe [mailto:allenmcc...@gmail.com] > Sent: 06 August 2009 20:20 [] > It was working wonderfully, until I wanted to display "test of > $newComment" > as a comment. > > [code] > > comment("test of $newComment"); > > [/code] > > This rendered a

RE: [PHP] Re: Dan Brown

2009-08-03 Thread Ford, Mike
> So Haileigh Grace Brown, born at 02:45 EDT Monday morning, 27 > July, 2009, weighed in at 6lbs 4oz and was 17.5 inches long. Oh, wow, congrats! My best wishes to Haileigh and her parents! I: (a) approve the choice of middle name, since that's what we called our daughter ;) (b) sympathis

RE: [PHP] how to pass variable argument list in a childconstructor to parent constructor, ideas wanted

2009-08-03 Thread Ford, Mike
> -Original Message- > From: Ralph Deffke [mailto:ralph_def...@yahoo.de] > Sent: 03 August 2009 02:41 > > problem: > > __ construct( $something ... variable argument list ){ > parent::__construct( ??? ); > } > > I tried with func_get_args, but the problem is that it gives an > indexe

RE: [PHP] preg_match too greedy

2009-07-31 Thread Ford, Mike
> -Original Message- > From: b [mailto:p...@logi.ca] > Sent: 30 July 2009 03:17 > > > > > >>> echo (preg_match($pattern, $test) != false) > > > > The " != false " here is redundant. > > Understood. But what you think is redundancy is, to me, clarity in > programming. I happen to think th

RE: [PHP] Re: Broken IF behavior? (Changing the branch changes the evaluation)

2009-07-29 Thread Ford, Mike
> -Original Message- > From: Matt Neimeyer [mailto:m...@neimeyer.org] > Sent: 29 July 2009 16:47 > > >> $Ret = mysql_fetch_array($result); if(!$Ret) { } else { return > $Ret; } > > I'm assuming that you are calling my_fetch_array() in a loop of > some > > sort and so at some point there ar

RE: [PHP] Ridiculous ..won't print or echo ...

2009-07-29 Thread Ford, Mike
> -Original Message- > From: Miller, Terion [mailto:tmil...@springfi.gannett.com] > Sent: 29 July 2009 16:36 > > Ok in my output to Quark I need to have $P printed to the page like > this: > > <@$p>2118 S. Campbell Ave > > So in my php which is going to be grabbing this info and formatti

RE: [PHP] First of my Quark/php generated Questions

2009-07-28 Thread Ford, Mike
> -Original Message- > From: Miller, Terion [mailto:tmil...@springfi.gannett.com] > Sent: 28 July 2009 17:06 > > Okay I have to echo onto my reverse pub page this chunk of code that > is for > generating the page in Quark, it has to echo as is...but I'm getting > errors--I've tried in brac

RE: [PHP] Mediawiki's url confusion

2009-07-23 Thread Ford, Mike
> -Original Message- > From: Paul M Foster [mailto:pa...@quillandmouse.com] > Sent: 23 July 2009 06:13 > > On Thu, Jul 23, 2009 at 11:57:51AM +0800, ?? wrote: > > > But I cannot help myself with the url pattern : > > /somepath_to_mediawiki/index.php/pagetitle. > > > > How can this kin

RE: [PHP] Structure of PHP files

2009-07-23 Thread Ford, Mike
> -Original Message- > From: Dengxule [mailto:dengx...@gmail.com] > Sent: 23 July 2009 10:53 > > > Hoping for the coming of the concept of PACKAGE. Seems that > NAMESPACE will > be introduced in PHP6. Already present in 5.3, actually. Cheers! Mike -- Mike Ford, Electronic Informatio

RE: [PHP] Replace in a string with regex

2009-07-22 Thread Ford, Mike
> -Original Message- > From: rszeus [mailto:rsz...@gmail.com] > Sent: 22 July 2009 19:23 > To: 'Jim Lucas' > Cc: 'Kyle Smith'; 'Eddie Drapkin'; a...@ashleysheridan.co.uk; php- > gene...@lists.php.net > Subject: RE: [PHP] Replace in a string with regex > > No, sory, my bad typing. It's not

RE: [PHP] removing an array from a compound array

2009-07-02 Thread Ford, Mike
> -Original Message- > From: Andres Gonzalez [mailto:and...@packetstorm.com] > Sent: 02 July 2009 00:46 > To: php-general@lists.php.net > Subject: [PHP] removing an array from a compound array > > I have a compound array, that is, an array of an array of an array, > etc, > that is about 5

RE: [PHP] Re: Push an Array, Comma separated.

2009-07-01 Thread Ford, Mike
> -Original Message- > From: Louie Miranda [mailto:lmira...@gmail.com] > Sent: 01 July 2009 04:19 > To: php-general@lists.php.net > Subject: Re: [PHP] Re: Push an Array, Comma separated. > > This is what I did. And it worked. > > $saveFiles = array(); > $arrSize=sizeof($saveFiles); >

RE: [PHP] isset question

2009-06-22 Thread Ford, Mike
On 19 June 2009 19:53, Ashley Sheridan advised: > On Fri, 2009-06-19 at 12:36 +0100, Ford, Mike wrote: >> On 18 June 2009 20:25, LAMP advised: >> >>> using !empty() instead isset() will work if you don't care for PHP >>> Notice: Undefined variable... If you

RE: [PHP] isset question

2009-06-19 Thread Ford, Mike
On 18 June 2009 20:25, LAMP advised: > using !empty() instead isset() will work if you don't care for PHP > Notice: Undefined variable... If you want to avoid PHP Notice > you have > to use both: > > $msg.= (isset($_POST['mort']) and !empty($_POST['mort'])) ? "The > mortgage amount is $mort\n"

RE: [PHP] Re: sloppiness & stupidity

2009-06-18 Thread Ford, Mike
On 17 June 2009 23:56, PJ advised: > Nisse Engström wrote: >> On Wed, 17 Jun 2009 10:18:09 +0100, "Ford, Mike" wrote: >> >> >>> This is very true -- but XHTML requires *all* attributes to have a >>> value, so an XHTML conformant page will use

RE: [PHP] Multi-Sort -- how to do this?

2009-06-18 Thread Ford, Mike
On 17 June 2009 22:12, tedd advised: > Hi gang: > > Here's the problem. Let's say you have a collection of > arrays, such as: > > $a = array(); > $b = array(); > $c = array(); > $d = array(); > > And then you populate the arrays like so: > > while(...) > { > $a[] = ... > $b[] = ...

RE: [PHP] populate form input option dropdown box from existing data

2009-06-18 Thread Ford, Mike
On 17 June 2009 14:30, PJ advised: > For the moment, I am trying to resolve the problem of > extracting a value > from a string returned by a query. I thought that in_array() would do > it, but the tests I have run on it are 100% negative. The only thing I > have not used in the tests is third pa

RE: [PHP] Re: sloppiness & stupidity

2009-06-18 Thread Ford, Mike
On 17 June 2009 22:05, Nisse Engström advised: > On Wed, 17 Jun 2009 10:18:09 +0100, "Ford, Mike" wrote: > >> This is very true -- but XHTML requires *all* attributes to have a >> value, so an XHTML conformant page will use > name="selector"> (o

RE: [PHP] populate form input option dropdown box from existing data

2009-06-18 Thread Ford, Mike
On 17 June 2009 15:01, PJ advised: > It does, indeed. This confirms my inexperienced conclusion that > in_array() does not work on associative arrays per se; it works on > simple arrays and I just don't have the experience to think of > extracting only the id fields. Let's squash this misconcepti

RE: [PHP] Re: sloppiness & stupidity

2009-06-17 Thread Ford, Mike
On 17 June 2009 02:11, Shawn McKenzie advised: > PJ wrote: >> I'm sorry, guys, but I am really getting po'd. >> The irresponsible sloppiness and stupidity is just getting to me. >> In my quest for a way to populate a multiple option select box I have >> run across so many errors that it's beyond b

RE: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread Ford, Mike
On 16 June 2009 20:48, PJ advised: > Now, I was happy to learn that it is simpler to populate the > insert new > books page dynamically from the db. Much shorter & neater. > It looks to me like the best solution for the edit page is > close to what > Yuri suggests. > Since the edit page is very si

RE: [PHP] how to extract fields from associative array into different variables

2009-06-16 Thread Ford, Mike
On 16 June 2009 13:58, PJ advised: > Ford, Mike wrote: >> On 15 June 2009 18:07, PJ advised: >> >> >>> Is there an easier or simpler way to do this? >>> code: >>> >>> $sql = "SELECT first_name, last_name, book_author.ordinal >>

  1   2   3   4   5   6   7   8   9   10   >