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
...Rene
On 24-Dec-07, at 7:19 PM, Casey wrote:
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, a
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
On 20-Dec-07, at 1:17 AM, Per Jessen wrote:
René Fournier wrote:
I'm really not sure what to try next. ps -aux shows MySQL as hogging
the CPU, not PHP or Terminal:
When this happens, do a 'SHOW PROCESSLIST' in mysql to see what it's
doing.
I have, and I can't see anything unusual. There a
Curiously, would you agree with this guy's comments concerning low-
level PHP socket functions vs stream_socket_server() ?
"If you want a high speed socket server, use the low-level sockets
instead (socket_create/bind/listen). The stream_socket_server version
appears to have internal fixed 8
Thanks Jim. Several good points here that I will look into. I've
already moved the include() bits into function calls. (That's simple
thing I should have corrected long ago.) The socket areas though I'm
less sure about how to adjust, since networking programming isn't
something I grok natur
n data was
available). Upgrading to 5.2.2 reset the max_memory to 8M (which I
didn't think it did, but there you go). Increasing it to 16MB solves
the issue.
Thanks again.
...Rene
On 10-Jul-07, at 3:09 PM, Jim Lucas wrote:
M5 wrote:
I've got a little PHP script that generates c
I've got a little PHP script that generates charts, that has been
working perfectly every day for the past couple years. Since
upgrading the Xserve's PHP from 5.1.6 to 5.2.2 (both Entropy), it has
stopped working. Specifically, it doesn't return any GIFs (charts).
Actually, it will output a
On 28-Feb-07, at 1:48 AM, Colin Guthrie wrote:
M5 wrote:
No, it's not a very good solution. Striptags will leave everything
within ,
On 27-Feb-07, at 1:44 PM, Richard Lynch wrote:
On Tue, February 27, 2007 11:47 am, M5 wrote:
I am trying to write a regex function to extract the readable
(visible, screen-rendered) portion of any web page. Specifically, I
only want the text between the tags, excluding any
I am trying to write a regex function to extract the readable
(visible, screen-rendered) portion of any web page. Specifically, I
only want the text between the tags, excluding any
Thanks for pointing out the PHP's deg2rad requirement. That was the
problem.
...Rene
On 7-Feb-07, at 7:30 PM, Gregory Beaver wrote:
M5 wrote:
I found a nice javascript function that takes two points of
latitude and
longitude and returns a midpoint. I'm now trying to rewrite in
I found a nice javascript function that takes two points of latitude
and longitude and returns a midpoint. I'm now trying to rewrite in
PHP, but having some problems. Here's the original javascript
function, taken from http://www.movable-type.co.uk/scripts/
LatLong.html :
LatLong.midPoint
On 25-Jan-07, at 4:46 PM, Richard Lynch wrote:
On Thu, January 25, 2007 12:41 am, M5 wrote:
Just wondering what smart people do for parsing data sent by the
Javascript XMLHTTP object--e.g., http.send("post",url,true)...
In a normal form submit, the $_POST global nicely allocates for
On 25-Jan-07, at 7:49 AM, Myron Turner wrote:
[EMAIL PROTECTED] / 2007-01-24 23:41:19 -0700:
Just wondering what smart people do for parsing data sent by the
Javascript XMLHTTP object--e.g., http.send("post",url,true)...
In a normal form submit, the $_POST global nicely allocates form
e
Just wondering what smart people do for parsing data sent by the
Javascript XMLHTTP object--e.g., http.send("post",url,true)...
In a normal form submit, the $_POST global nicely allocates form
elements as array elements automatically. But with the AJAX way, the
data get stuffed inside $HTTP
Just wondering what smart people do for parsing data sent by the
Javascript XMLHTTP object--e.g., http.send("post",url,true)...
In a normal form submit, the $_POST global nicely allocates form
elements as array elements automatically. But with the AJAX way, the
data get stuffed inside $HTTP
17 matches
Mail list logo