Re: [PHP] Simple RegEx question

2007-12-24 Thread Casey
On Dec 24, 2007, at 7:59 PM, Casey <[EMAIL PROTECTED]> wrote: On Dec 24, 2007, at 7:34 PM, M5 <[EMAIL PROTECTED]> wrote: I'm learning regular expressions, and trying to figure out what's possible and what's not. Any ideas of how to create a preg_match expression to parse following three lin

Re: [PHP] Simple RegEx question

2007-12-24 Thread Casey
On Dec 24, 2007, at 7:34 PM, M5 <[EMAIL PROTECTED]> wrote: I'm learning regular expressions, and trying to figure out what's possible and what's not. Any ideas of how to create a preg_match expression to parse following three lines: Calgary, AB T2A6C1 Toronto, ON T4M 0B0 Saint John, N

[PHP] Simple RegEx question

2007-12-24 Thread M5
I'm learning regular expressions, and trying to figure out what's possible and what's not. Any ideas of how to create a preg_match expression to parse following three lines: Calgary, AB T2A6C1 Toronto, ON T4M 0B0 Saint John, NBE2L 4L1 ...such that it splits each line into City, Pro

Re: [PHP] loadHTML()

2007-12-24 Thread M5
OK, I already knew that making it valid doesn't change the result. But the question remains, how to parse the HTML as it arrives (which I have no control over anyway), besides doing a str_replace on and inserting a token, which I later replace (which I shouldn't have to, right?) ...Rene

Re: [PHP] loadHTML()

2007-12-24 Thread Casey
Actually, never mind. It does not have to be valid to work. On Dec 24, 2007, at 6:15 PM, Casey <[EMAIL PROTECTED]> wrote: That's because it's not proper XHTML: "" should be "". On Dec 24, 2007, at 6:03 PM, M5 <[EMAIL PROTECTED]> wrote: Just getting into DOMDocument()... I'm loading an HTM

Re: [PHP] loadHTML()

2007-12-24 Thread Casey
That's because it's not proper XHTML: "" should be "". On Dec 24, 2007, at 6:03 PM, M5 <[EMAIL PROTECTED]> wrote: Just getting into DOMDocument()... I'm loading an HTML page and trying to extract certain bits of text. Just one problem: loadHTML() seems to ignore orphan tags like ''. For ex

[PHP] loadHTML()

2007-12-24 Thread M5
Just getting into DOMDocument()... I'm loading an HTML page and trying to extract certain bits of text. Just one problem: loadHTML() seems to ignore orphan tags like ''. For example, in the following HTML: Some text is here. New line. Another new line. Some text is here. New line. An

Re: [PHP] building PHP5.2.5 on Mac OS X Leopard (anyone know how to build a just an extension)

2007-12-24 Thread Jochem Maas
the following url explains how to build a single extension for an existing php installation .. it's not really Mac specific and may help someone on another system stuck with the same problem: http://lists.apple.com/archives/macos-x-server/2007/Nov/msg00315.html Jochem Maas schreef: > hi guys, >

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-24 Thread Robert Cummings
On Mon, 2007-12-24 at 12:13 -0500, tedd wrote: > At 4:18 PM +0200 12/19/07, Sancar Saran wrote: > > > that said, avoid globals like the plague - sometimes you may come up with > >> a situation where using a global is really necessary - such situations > >> should be the exception rather than the

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-24 Thread Sancar Saran
Hello Tedd, Here my opinoins First of all, I ask this question to is there any technical dead end for using $GLOBALS directly. It seems not. And I believe other arguments was closely connected to coding style. I'm self learner, I learn evrything about computers, programming (that means PHP)

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-24 Thread tedd
At 4:18 PM +0200 12/19/07, Sancar Saran wrote: > that said, avoid globals like the plague - sometimes you may come up with a situation where using a global is really necessary - such situations should be the exception rather than the rule, often if your thinking of using a global there is an

[PHP] Re: Asynchronous socket connection timing issue.

2007-12-24 Thread Nicolas Le Gland
> My code is at http://rafb.net/p/DEwN8J71.html > with results at http://rafb.net/p/cnB4dC80.html As this temporary hosting expired after 24h, here are both code and log : http://nicolas.legland.free.fr/attachment/2007/12/24/stream.zip -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] Terrible performance Apache 2.2.6, PHP 5.2, apache module mode

2007-12-24 Thread Siamak Sarmady
Hello, I have a very terrible performance after changing to last versions of Apache and PHP on windows XP (and mysql 4.1). I did a search on the internet and it seems many people have this problem. Changing to Apache 2.0 and PHP 5.1 seems to solves the performance problem. Anyone has heard

[PHP] Terrible performance Apache 2.2.6, PHP 5.2, apache module mode

2007-12-24 Thread wmac
Hello, I have a very terrible performance after changing to last versions of Apache and PHP on windows XP (and mysql 4.1). I did a search on the internet and it seems many people have this problem. Changing to Apache 2.0 and PHP 5.1 seems to solves the performance problem. for example this one: