I have it working now using preg_replace.
--Rick
On Dec 12, 2010, at 3:50 PM, Rick Dwyer wrote:
Thanks Nathan.
The MySQL Match/Against will probably work well... but I would need
to somehow add a "+" to the beginning of each word in the phrase so
PHP will still be involved.
--Rick
O
Thanks Nathan.
The MySQL Match/Against will probably work well... but I would need to
somehow add a "+" to the beginning of each word in the phrase so PHP
will still be involved.
--Rick
On Dec 12, 2010, at 2:51 PM, Nathan Rixham wrote:
Rick Dwyer wrote:
Hello all.
I have a page where
On 20/05/2009 12.50, Ford, Mike wrote:
Humph! Yes, ok, I concede this point. I also bow to Daniele's need to
process forms designed by someone else with (not-PHP) in mind. Actually,
I can see the validity of both sides of the argument, and I teeter on
the fence as to whether the [] method is "ri
On Wed, May 20, 2009 at 6:50 AM, Ford, Mike wrote:
> On 19 May 2009 17:10, Andrew Ballard advised:
>> var toppings = document.sundae.toppings;
>> // To work with PHP, the above line would
>> have to be changed:
>> // var toppings =
>> document.sundae.e
Hello,
Here's another quick solution that shouldn't add much overhead:
// get input
$qry =
'toppings=sprinkles&toppings=nuts&toppings=fudge&toppings=caramel&toppings=strawberries';
//$qry = $_SERVER['QUERY_STRING'];
// parser input
$qry = str_replace('&toppings=','&toppings[]=',$qry);
parse_st
On 5/20/09 6:50 AM, "Ford, Mike" wrote:
> Humph! Yes, ok, I concede this point. I also bow to Daniele's need to
> process forms designed by someone else with (not-PHP) in mind. Actually,
> I can see the validity of both sides of the argument, and I teeter on
> the fence as to whether the [] meth
On 19 May 2009 17:10, Andrew Ballard advised:
> On Tue, May 19, 2009 at 10:11 AM, Ford, Mike
> wrote:
>> On 19 May 2009 14:37, Daniele Grillenzoni advised:
>>
>>>
>>> My complaint is this: a I can have a select multiple with a normal
name,
>>> which is allowed by every spec, but PHP requires me
Daniele Grillenzoni wrote:
On 20/05/2009 2.45, Nathan Rixham wrote:
Daniele Grillenzoni wrote:
On 19/05/2009 18.09, Andrew Ballard wrote:
On Tue, May 19, 2009 at 10:11 AM, Ford, Mike
wrote:
On 19 May 2009 14:37, Daniele Grillenzoni advised:
My complaint is this: a I can have a select multi
On 20/05/2009 2.45, Nathan Rixham wrote:
Daniele Grillenzoni wrote:
On 19/05/2009 18.09, Andrew Ballard wrote:
On Tue, May 19, 2009 at 10:11 AM, Ford, Mike
wrote:
On 19 May 2009 14:37, Daniele Grillenzoni advised:
My complaint is this: a I can have a select multiple with a
normal name,
whic
Daniele Grillenzoni wrote:
On 19/05/2009 18.09, Andrew Ballard wrote:
On Tue, May 19, 2009 at 10:11 AM, Ford, Mike
wrote:
On 19 May 2009 14:37, Daniele Grillenzoni advised:
My complaint is this: a I can have a select multiple with a
normal name,
which is allowed by every spec, but PHP requi
On 19/05/2009 18.09, Andrew Ballard wrote:
On Tue, May 19, 2009 at 10:11 AM, Ford, Mike wrote:
On 19 May 2009 14:37, Daniele Grillenzoni advised:
My complaint is this: a I can have a select multiple with a
normal name,
which is allowed by every spec, but PHP requires me to use []
in order
to
On Tue, May 19, 2009 at 10:11 AM, Ford, Mike wrote:
> On 19 May 2009 14:37, Daniele Grillenzoni advised:
>
>>
>> My complaint is this: a I can have a select multiple with a
>> normal name,
>> which is allowed by every spec, but PHP requires me to use []
>> in order
>> to properly retrieve the valu
On 19 May 2009 14:37, Daniele Grillenzoni advised:
>
> My complaint is this: a I can have a select multiple with a
> normal name,
> which is allowed by every spec, but PHP requires me to use []
> in order
> to properly retrieve the values.
I really don't understand the problem with this -- in fa
On Fri, 2008-11-28 at 13:48 +, Nathan Rixham wrote:
> 2008/11/27 Ashley Sheridan <[EMAIL PROTECTED]>
>
> On Thu, 2008-11-27 at 22:13 +, Ashley Sheridan wrote:
> > On Thu, 2008-11-27 at 20:56 +, Nathan Rixham wrote:
> > > Ashley Sheridan wrote:
>
2008/11/27 Ashley Sheridan <[EMAIL PROTECTED]>
> On Thu, 2008-11-27 at 22:13 +, Ashley Sheridan wrote:
> > On Thu, 2008-11-27 at 20:56 +, Nathan Rixham wrote:
> > > Ashley Sheridan wrote:
> > > > Hi All,
> > > >
> > > > I've run into a bit of a problem. I need to parse some fairly
> detail
On Fri, 2008-11-28 at 01:04 +0100, Maciek Sokolewicz wrote:
> Ashley Sheridan wrote:
> > On Thu, 2008-11-27 at 22:13 +, Ashley Sheridan wrote:
> >> On Thu, 2008-11-27 at 20:56 +, Nathan Rixham wrote:
> >>> Ashley Sheridan wrote:
> Hi All,
>
> I've run into a bit of a problem.
Ashley Sheridan wrote:
On Thu, 2008-11-27 at 22:13 +, Ashley Sheridan wrote:
On Thu, 2008-11-27 at 20:56 +, Nathan Rixham wrote:
Ashley Sheridan wrote:
Hi All,
I've run into a bit of a problem. I need to parse some fairly detailed
XML files from a remote website. I'm pulling in the re
On Thu, 2008-11-27 at 22:13 +, Ashley Sheridan wrote:
> On Thu, 2008-11-27 at 20:56 +, Nathan Rixham wrote:
> > Ashley Sheridan wrote:
> > > Hi All,
> > >
> > > I've run into a bit of a problem. I need to parse some fairly detailed
> > > XML files from a remote website. I'm pulling in the
On Thu, 2008-11-27 at 20:56 +, Nathan Rixham wrote:
> Ashley Sheridan wrote:
> > Hi All,
> >
> > I've run into a bit of a problem. I need to parse some fairly detailed
> > XML files from a remote website. I'm pulling in the remote XML using
> > curl, and that bit is working fine. The smaller X
Dear Paul,
this is exactly the solution I needed, and works as described! Many
thanks for thinking through this with me.
Yours,
David.
On 8 Apr 2006, at 00:05, Paul Novitski wrote:
At 02:41 PM 4/7/2006, David Clough wrote:
I have to parse the string 'Hello $foo' as it comes from
At 02:41 PM 4/7/2006, David Clough wrote:
I have to parse the string 'Hello $foo' as it comes from the
database: I don't get to construct it.
I did hold out more hope for the eval function, but it seems to me that
this is for PHP code in a database, not to evaluate variables.
David, please tr
On 2/26/06, Bogdan Ribic <[EMAIL PROTECTED]> wrote:
> Hmmm, come to think of it, it would only work if short_open_tags ini
> directive is turned OFF, which in most cases it won't be :(
You can turn it off with a htaccess file.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visi
On Thu, February 16, 2006 1:20 pm, Boby wrote:
> Jay Blanchard wrote:
>>> I need to extract news items from several news sites.
> >> ...
>>> Can anybody please give me some pointers?
>>
>> Can you be more specific here? This is awfully broad.
>
> I'll give an example:
>
> Let's say I want to extra
[snip]
Let's say I want to extract some news-items from the www.CNN.com web
page (If you visit CNN's page, you can see the 'MORE NEWS' block at the
right side).
I know how to extract the news-items (or any other data in the page)
using regular expressions, but I wonder if there are other ways.
If it simply for searching keywords and/or CV's, then wvWare will
probably do the job fine. I would suggest you retain the documents in
their original format however, so that the formatting and certain
elements that wvWare can't handle will remain when the CV is manually
viewed.
On 9/9/05, Shafi
Hello,
Thanx to all of you for excellent suggestions. I am using Linux as OS and I
want to parse the CVs and place in db for fulltext search. I think wvWare
will work a lot for my case.
Thanx again.
On 9/8/05, Ben Ramsey <[EMAIL PROTECTED]> wrote:
>
> zzapper wrote:
> >>On Wed, September 7, 2
-- Original message --
From: Jason Barnett <[EMAIL PROTECTED]>
> T.J. Mahaffey wrote:
> > First time post, please be gentle.
>
> You will probably find parse_url() to be useful:
> http://www.php.net/manual/en/function.parse-url.php
>
>
> $url =
> "http://usern
I tried the print_r on $res. The preg_match does the first set fine.
So I get:
Campus
Bob (Williams)
the second one starts
-
Address123 Main St
-
CityOxford
and so on
[EMAIL PROTECTED] wrote:
preg_match('#([^|]*)[|]+([^|]*)~[\\]+(([^\\]*)~[\\]+)+#Ui', $string, $res
I knew I shouldnt have abreviated the string.
here is the string sorry I kinda flubbed on the last string
"LocationCampus~\\n-\nNameBob
Williams~\\n-\nAddress123 Main St~\\n-\n..."
the ... is a very long list.
how does this change the
On 26/07/2004, at 7:29 AM, Scrumpy wrote:
[EMAIL PROTECTED] (Suresh Manoharan) wrote in
news:[EMAIL PROTECTED]:
I am getting parse error [Parse error: parse error, unexpected
T_STRING on line 1] when I use XML version info.
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/19
On 2 Apr 2004 Aidan Lister wrote:
> Wait until you have installed PHP5, then use the simplexml library.
I will shortly have the same questions about ways to parse XML, and I
can't use PHP 5 -- it's a production environment and the PTB are not
going to move to something that is that recently rel
From: "Justin Patrin" <[EMAIL PROTECTED]>
> >>What you need to understand is that the string parsing for variables
> >>only happens when the string is actually in your script. When you
> >>dynamically create a string (or get it from a DB) it's just a string of
> >>characters in memory and is *not*
lol, yeah, guess so... Although, when you talk about these things, do you
say you must download a file from the client? Or that you must open the
remote logfile in your script? Damn, this is getting screwy...
--
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
"Curt Zirzow" <[EMAIL PROT
* Thus wrote DvDmanDT ([EMAIL PROTECTED]):
> Also, it's a remote file you are trying to parse, not a local...
> local=server, remote=user... Like John linked, you must upload it... Can't
> do it other ways...
I suppose in this case with local and remote defined this way it
should be download inst
[snip]
What?!? You're not awake at 4:30 in the morning writing code?!? I
think the commitee will have to reconsider your geek club membership. :)
[/snip]
How do you think that I knew the original post came in at that time?
ROFLMAO. Go ahead revoke my Geek Club card, the discounts no longer
[snip]
I did a search ...
[/snip]
My apologies Henry, I had just received a piece of disturbing news along
with starting my Monday at 4:30 CST with some database server problems. You
just happened to get in the line of fire.
Start with the regular expression functions in PHP. Once you have an
und
What?!? You're not awake at 4:30 in the morning writing code?!? I
think the commitee will have to reconsider your geek club membership. :)
Jay Blanchard wrote:
[snip]
Thanks Jay, I am still a newbie and I will read the manual, thankyou for the
help.
Having an OK day in the UK .
I assure you that I am not trying to circumvent google's anything. I'm
trying to provide a HTML translation page tool for some of my visitors where
they will provide there own URL and a translation of some keywords will be
done for them. Thats all.
I never actually was going to flaunt googles term
Hi Henry,
> If it is so simple perhaps you might spend 5
> minutes generating the regular expression to
> use that will ignore the contents of tags save
> for the contents of quotes within meta tags and
> do the replace for an associative array of mappings.
http://google.com/search?q=regex+se
I did a search and I remebered that I have previously seen some of your
work. In particlar your guide to CMS in evolt.org. Which I think is
absolutely wonderful. Thankyou for your help and I hope that I haven't gone
to far with my disingenuous comment posting.
I hadn't appreciated the time differe
Dear Jay,
I have now had a look in the FM and whilst it does help if you know how to
use regular expressions I think that you are being a little disingenuous.
Having to parse the HTML is more complicated than is suggest in your reply.
If it is so simple perhaps you might spend 5 minutes generating
[snip]
Thanks Jay, I am still a newbie and I will read the manual, thankyou for the
help.
Having an OK day in the UK .
[/snip]
Henry your questions will get answered more quickly and accurately when you
provide
a. A clear explanation of the problem at hand
2. Proof that you have d
The tools for you to execute the regular expression are there for you in
the manual. The actual regular expression that you're looking for is
not a php issue. And I can't say that I'm totally convinced that you're
still not trying to circumvent google's TOS.
Henry wrote:
What; nobody has anyt
Thanks Jay, I am still a newbie and I will read the manual, thankyou for the
help.
Having an OK day in the UK .
Henry
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message
news:003f01c27e93$87bc1da0$8102a8c0@;000347D72515...
> [snip]
> What; nobody has anything to say about parsing
[snip]
What; nobody has anything to say about parsing HTML and doing search and
replaces!! Is there another news group that might be better suited? I do
want to do it PHP if I hadn't made that clear.
Somebody, anybody, please help.
[/snip]
What? No one wants to help someone who didn't search the
Lee, yes you're right. Using single quotes to denote a litteral string does
speed things up a bit. My bench sped up by about .08 seconds over 10,000
echos. That's about 5 pages worth of text. Is .08 seconds worth worrying
about? I'm gonna go out a limb here and say.. no. :)
-Kevin
- Or
en :)
Thanks again everyone.
-Scott
-Original Message-
From: Scott [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 02, 2002 4:57 PM
To: 'Mark Heintz PHP Mailing Lists'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: Parsing file's
Ok, this did not work, but I have a new idea.
Heintz PHP Mailing Lists [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 4:43 PM
To: Scott
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Parsing file's
You may have been heading in the right direction originally with
array_slice... This is off the top of my head, I don't guaruntee it
Mark-
Trying it now, I think I understand what you doing with the code below.
I'll let you know.
Thank you!
-Scott
-Original Message-
From: Mark Heintz PHP Mailing Lists [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 4:43 PM
To: Scott
Cc: [EMAIL PROTECTED]
Subject: Re:
You may have been heading in the right direction originally with
array_slice... This is off the top of my head, I don't guaruntee it will
work...
$start = 34;
$interval = 15;
$max = 303;
// hop across orig. array 15 columns at a time
for($offset = $start;
$offset < $max && isset($array[$offs
That's what I mean by starring at this too much :) I tried writting to a
seperate file, but is there a way to take an array and split it every so
many records within another loop?
Let's say the first row contains the first 18 columns which I already
parsed, I then want to grab the next 5 15
Or checkout the sql import facilities offered by your choice of database to 'convert'
the data from log to
db-tbl, then set up your analysis in PHP+SQL separately.
=dn
- Original Message -
From: "Martin Wickman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 11 January 2002 09:08
Subj
52 matches
Mail list logo