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
Rick Dwyer wrote:
Hello all.
I have a page where the user can enter a search phrase and upon
submitting, the search phrase is queried in MySQL.
However, I need to modify is so each word in the phrase is searched
for... not just the exact phrase.
So, "big blue hat" will return results like:
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 18/05/2009 10.42, Peter Ford wrote:
Daniele Grillenzoni wrote:
I noticed that php's way to fill $_GET and $_POST is particularly
inefficient when it comes to handling multiple inputs with the same name.
This basically mean that every in order to function
properly needs to have a name ending
Daniele Grillenzoni wrote:
> I noticed that php's way to fill $_GET and $_POST is particularly
> inefficient when it comes to handling multiple inputs with the same name.
>
> This basically mean that every in order to function
> properly needs to have a name ending in '[]'.
>
> Wouldn't it be ea
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
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 XML documents were easy
to parse with regular expressions, as I only needed
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 XML documents were easy
to parse with regular expressions, as I only needed
Easy!!
Pierre Pintaric :
Hello there,
I'm sure this question was ask 1,000 times, but I didn't find any
archive about this, that's why I need help...
Here is my problem:
I receive mail file from my MTA (ie QMail), that works fine. Now, I
would to find a class or a function that parse the mai
Stut wrote:
> 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 form
>> elements as array elements automatically. But with the AJAX way, th
===ORIGINAL===
Hi List
I am working owards completing a rather urgent project for one of our
clients.
There is a requirement to send a request to a server and I now have that
working
using cURL, thanks to help from this list. I now have the responses coming
back
as an XML response. What I need to
On Fri, 09 Jun 2006 14:53:09 +0200, sam <[EMAIL PROTECTED]> wrote:
$str='bass "electric organ" bagpipes';
$parser($str);
$query="SELECT * FROM table WHERE tb_instr = "bass"
> AND tb_instr = "electric organ" //< AND tb_instr = "bagpipes";
Anybody know where I can just copy code that
I Dan McCullough wrote:
I have a friend who I wrote some very simple publishing software,
basically he takes his writtings and puts them online. Well his
writtings are in Word and so he has alot of special characters that he
inputs, some unknowingly, into the database. Are there any classes or
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
Thanks for all these responses, but unless I'm missing something none of
them work for what I need. Quotes are irrelevant: with the string "Hello
$foo" in $bar
echo "$bar"
echo $bar
both produce
Hello $foo
and
echo '$bar'
produces
$bar
I can't use any of the answers l
I comed up with this
$name,"attrs"=>$attrs);
array_push($stack,$tag);
}
// end_element_handler ( resource parser, string name )
function endElement($parser, $name)
{
global $stack;
$stack[count($stack)-2]['children'][] = $stack[count($stack)-1];
array_pop($stack);
}
// handler ( re
So I have found this code in http://bg.php.net/manual/en/ref.xmlrpc.php
and it evaluates PHP but when I try to use the PIHandler separately. It
doesnt work. So I ask if someone could help me to make parser1 return an
array just like parser2.
PARSER1
$name";
if (count($attribs)) {
fore
Ivan,
Did you try entering the code with debugger, or at least printing out
what output buffer was holding, ie $content var in my example? Can you
post exact code? Also, is short_tags turned on or off in php.ini? If it
is on, php will get confused on first line of your xml file, it will
think
Well isn't there a way instead of using only variables, to use sth like
I tried it but it doesnt work
The parser returns blank!
On Sun, 2006-02-26 at 12:02 +0100, Bogdan Ribic wrote:
> Hmmm, come to think of it, it would only work if short_open_tags ini
> directive is turned OFF, which in most
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
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 :(
Bogdan Ribic wrote:
Hi Ivan,
You might be able to use output buffering in conjunction with
including your xml file. Something like:
ob_start();
include $xml_fil
Hi Ivan,
You might be able to use output buffering in conjunction with
including your xml file. Something like:
ob_start();
include $xml_file;
$content = ob_end_flush();
and then parse the $content string. If you are doing this from within
a function and you want access to global variabl
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.
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 extract some news-items from the www.CNN.com web
page (If you visit C
If all you want is to "parse" HTML code, then you could treat it as
XML, of course, that would assume that the sites are all well XHTML
formed. Other than that, I can only thing on PCRE.
Boby wrote:
I need to extract news items from several news sites.
In order to do that, I need to parse t
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
zzapper wrote:
On Wed, September 7, 2005 7:39 am, Shafiq Rehman wrote:
Hello,
I want to parse the .doc files with PHP. Anybody have some idea regarding
this problem.
Your help regarding this matter is really appreciated
Also consider antiword
And also:
wvWare: http://wvware.sourceforge
On Wed, 7 Sep 2005 09:18:03 +0100 (BST), wrote:
>
>On Wed, September 7, 2005 7:39 am, Shafiq Rehman wrote:
>> Hello,
>>
>> I want to parse the .doc files with PHP. Anybody have some idea regarding
>> this problem.
>>
>> Your help regarding this matter is really appreciated
>>
>> Regards
>> --
>>
The problem is I haven't seen any examples of this in php.
The best I have come up with is the following. I know the code is pants,
but it works. I am sure people out there can think of a better way of
doing it-
$ua = $logInfo[useragent];
if ( ereg("Firefox/[0-9]{1,2}[\.]{0,
-- 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
T.J. Mahaffey wrote:
First time post, please be gentle.
I'd like to be able to extract search strings from referer urls that come from
search engines. (via php,
of course) For example, http://www.google.com/search?q=foo+bar&ie=UTF-8&oe=UTF-8
Now, I realize one might employ grep to pull out this in
[EMAIL PROTECTED] wrote:
My host recently upgraded PHP. I had a script, download.php, that would
work like this
http://www.myhost.com/download.php/30/file.torrent
the download.php script would take the 30, look up the real filename in the
database, and readfile() it back. this was a great setup b
Jerry Swanson wrote:
I have huge html file. I want to parse the data and get everything between
and
What function is good for this purpose?
TH
preg_match() is a good choice.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
Not sure what you want exactly, but here's a way using regexps to
retrieve the strings seperatly:
$string = 'CampusBob (Williams)~\toms more
crap)~\blah blah blah)~\';
preg_match('#([^|]*)[|]+([^|]*)~[\]+([^\]*)~[\]+([^\]*)~[\]+#Ui',
$string, $res);
$campus = $re
Dan McCullough wrote:
Hey everyone
Having a bit of trouble with something.
I have a string which has known patterns.
$string"CampusBob (Williams)~\toms more crap)~\blah blah blah)~\";
What I am looking for is
Location which is Campus
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
[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/1999/xhtml"; xml:lang="en-US"
Merlin wrote:
Hi there,
I think I am parsing xml documents the wrong way.
There must be a better way to access the results laterone like objects.
For example I would like to search in a free form for a city name
inside an xml document and php should return the country name
and continent.
This is
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
Wait until you have installed PHP5, then use the simplexml library.
You have not showed us any code, how are we to tell you if you are doing it
the right or wrong way?
"Merlin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi there,
>
> I think I am parsing xml documents the wrong
First of all, if you have the option to upgrade you might want to check
out PHP5. SimpleXML really makes it easy to parse xml files. If PHP4
is your platform of choice, check out PEAR's XML_Parser package.
The entities can't be handle with xml_set_default_handler because some
entities are ins
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*
Jimbo wrote:
Thanks Justin I was aware of that method but wanted to avoid it if possible,
however another person explained to me that eval() can be used to force PHP
to evaluate (i.e. parse) the variables, just thought I'd let you know for
your future reference.
James
--
-
Thanks Justin I was aware of that method but wanted to avoid it if possible,
however another person explained to me that eval() can be used to force PHP
to evaluate (i.e. parse) the variables, just thought I'd let you know for
your future reference.
James
--
--
Jimbo wrote:
I query and use mysql_fetch_array to get the data into an associative array.
I then build a string and output it like this:
echo "blah blah ".$row["thecolumn"]." blah blah";
What you need to understand is that the string parsing for variables
only happens when the string is actually
If it's anything like the Microsoft XML DOM object, you can use an XPath
query to select the portion of the XML file that you want.
"Ryan Thompson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I'm stumped. I think it's just the logic I can't figure out. I have a file
formatted for D
Collegesucks.Com Mike wrote:
Quick question...
I parse domains in my scripts like this to get the .domain.com out of www.domain.com. However, if someone visits my site with just domain.com in the url, I get .com back as the parsed domain. How can I make it so I aways get the .domain.com no matter
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
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...
--
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
"Jason D. Williard" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PR
Hi Nikhil,
There are a number of choices already out there. In phpDocumentor
(http://www.phpdoc.org) is a parser that is based on the tokenizer.
Also available in PEAR CVS is the PHP_Parser, which is a generated
parser based on PHP's own zend_language_parser.y
(http://cvs.php.net/cvs.php/pear
i think it should be
line 43 : $person_data[$counter]["description"] .= $data;
wish you luck !
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
function get_file_list($dirName=".") {
$list = array();
$handle = opendir($dirName);
while (false !== ($file = readdir($handle))) {
/* Omit the '.' and the '..' directories. */
if ((".."== $file) || ("."== $file)) continue;
array_push($list, $file);
}
closedir($handle);
return $list;
}
you can use the implode() function:
for ($z=0;$z wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi All :)
>
> I have a form that is being passed to a mail function when submitted. It
is
> working OK, except that I am having trouble with values from arrays such
as
> checkbox lists.
[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
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.
"Henry" <[EMAIL PROTECTED]> wrote in message
news:20021028103849.2175.qm
I'm not attempting to solve this puzzle, but, regarding the output from
print_r(), try this for nicely formatted output:
echo "";
print_r($myarray);
echo "";
Looks much better.
Monty
> From: [EMAIL PROTECTED] (Peter Harkins)
> Newsgroups: php.general
> Date: Sat, 26 Oct 2002 02:37:51 -0700
> T
no. :)
-Kevin
- Original Message -
From: "Lee Doolan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 23, 2002 1:40 PM
Subject: [PHP] Re: parsing
> >>>>> "Dave" == Dave At Sinewaves Net <[EMAIL PROTECTED]> writes:
>
>
> "Dave" == Dave At Sinewaves Net <[EMAIL PROTECTED]> writes:
Dave> Okay, I want to know if anybody has a clue which is more
Dave> efficient, processorwise/parsingwise:
Dave> this: -- echo
Dave> "".$somevar."".$somevardesc."";
Dave> or this: -- echo
Dave> "{$
try
echo "$somevar$somevardesc";
which is probably better than the other two but don't quote me on that!
You can just include the variables because you have used " rather than ' (I
think it works for echo as well as print)
"Dave At Sinewaves.Net" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTE
>Can this be done with apache 1.3 ?
>I want to have the output of my CGI-script to be parsed with PHP, or
>rather, have the php within the parsed, of course, since the
>script outputs alot more than just php-code.
>
>Is it possible?
I don't think so.
Apache 1.x was designed to "hand off" the
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
[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
will
work...
$start = 34;
$interval = 15;
$max = 303;
// hop across orig. array 15 columns at a time
for($offset = $start;
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
You should normalise your data - have a field in the second csv that links
to the first csv and then you can have as many rows as you want associated
with the record in the first file.
Mikey
"Scott" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a csv
You could use mysql import / outfile:
http://www.mysql.com/doc/S/E/SELECT.html
See the section " * The SELECT ... INTO OUTFILE".
Hope that helps.
-J
On Sat, 18 May 2002 20:41:39 +1200, Justin French wrote:
> Hi,
>
> I have a client with an Excel file of products / prices / etc. For
> argume
Lee Doolan wrote:
>
> I have written form screen which has as one of it's elements a
> box in which a user can input some text --like a simple
> bio-- which will appear on another screen. I'd like to edit check
> this text. It would be a good idea to make sure that it has, among other
> things,
1 - 100 of 113 matches
Mail list logo