php-general Digest 19 Feb 2011 03:09:11 -0000 Issue 7189

2011-02-18 Thread php-general-digest-help
php-general Digest 19 Feb 2011 03:09:11 - Issue 7189 Topics (messages 311424 through 311439): Re: Howdy (new in here) 311424 by: Robert Cummings 311438 by: D. Dante Lorenso Connection Handling - unreliable at best? 311425 by: James Green New to list and to PHP

[PHP] assistance

2011-02-18 Thread Michael Simiyu
am using jcart but would like to customize the gateway.php file to use another payment gateway instead of paypalany help from the community ?

[PHP] Re: [SOLVED] [PHP] how to dynamically generate list of arguments to pass to array_diff

2011-02-18 Thread Mari Masuda
On Feb 18, 2011, at 12:03 PM, Simon J Welsh wrote: On 19/02/2011, at 8:07 AM, Mari Masuda wrote: My question is is there a way to call the built-in array_diff with a dynamically generated list of arguments? I was thinking maybe there would be a way to do this with variable variables or

Re: [PHP] New to list and to PHP

2011-02-18 Thread Adam Richardson
On Fri, Feb 18, 2011 at 2:03 PM, Pete Woodhead pete.woodhea...@gmail.comwrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and

[PHP] Regex pattern for preg_match_all

2011-02-18 Thread Tommy Pham
Hi folks, This is not directly relating to PHP but it's Friday so I'm gonna give it a shot :). Would someone please help me figure out why my regex pattern doesn't work. Below is the code and sample data: $html = HTML li class=small tab a class=y-mast-link images

Re: [PHP] Regex pattern for preg_match_all

2011-02-18 Thread Simon J Welsh
As far as I can tell, your problem lies in [^href]*. That will match any characters other than h, r, e or f, not anything other than the string href. Consider replacing it with [^]*?. The ? makes it non-greedy so it will stop as soon as it can (when it matches the first href) rather than as

Re: [PHP] Regex pattern for preg_match_all

2011-02-18 Thread Peter Lind
On 18 February 2011 22:36, Tommy Pham tommy...@gmail.com wrote: Hi folks, This is not directly relating to PHP but it's Friday so I'm gonna give it a shot :).  Would someone please help me figure out why my regex pattern doesn't work.  Below is the code and sample data: $html = HTML li

Re: [PHP] Regex pattern for preg_match_all

2011-02-18 Thread Tommy Pham
@Simon, Thanks for explaining about the [^href]. I need to read up more about greediness. I thought I understood it but guess not. @Peter, I tried your pattern but it didn't capture all of my new test cases. Also, it captures the single/double quotes in addition to the fragments inside the

Re: [PHP] Howdy (new in here)

2011-02-18 Thread D. Dante Lorenso
On 2/18/11 8:39 AM, Kirk Bailey wrote: Oh hey, that's a good point. All the stuff i saw so far indented 2 spaces. WHY? Can I just indent a TAB if my editor permits this? indenting 4 spaces (2 nests) is easy, but suppose I hit one extra space- not enough difference to be really noticeable. Let's

[PHP] 9970318527584

2011-02-18 Thread John Taylor-Johnston
9970318527584 Could this number refer to a date()? In late 2009? How could I calculate it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 9970318527584

2011-02-18 Thread Robert Cummings
On 11-02-18 10:08 PM, John Taylor-Johnston wrote: 9970318527584 Could this number refer to a date()? In late 2009? How could I calculate it? Doesn't look like it... echo date( 'Y-m-d H:i:s', 9970318527584 ).\n; Not even a JavaScript millisecond timestamp: echo date( 'Y-m-d H:i:s',