Re: [PHP] Re: Parsing a phrase

2010-12-12 Thread Rick Dwyer
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

Re: [PHP] Re: Parsing a phrase

2010-12-12 Thread Rick Dwyer
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

[PHP] Re: Parsing a phrase

2010-12-12 Thread Nathan Rixham
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:

Re: [PHP] Re: Parsing of forms

2009-05-20 Thread Daniele Grillenzoni
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

Re: [PHP] Re: Parsing of forms

2009-05-20 Thread Andrew Ballard
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

Re: [PHP] Re: Parsing of forms

2009-05-20 Thread Raymond Irving
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

Re: [PHP] Re: Parsing of forms

2009-05-20 Thread Tom Worster
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

RE: [PHP] Re: Parsing of forms

2009-05-20 Thread Ford, Mike
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

Re: [PHP] Re: Parsing of forms

2009-05-20 Thread Nathan Rixham
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

Re: [PHP] Re: Parsing of forms

2009-05-20 Thread Daniele Grillenzoni
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

Re: [PHP] Re: Parsing of forms

2009-05-19 Thread Nathan Rixham
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

Re: [PHP] Re: Parsing of forms

2009-05-19 Thread Daniele Grillenzoni
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

Re: [PHP] Re: Parsing of forms

2009-05-19 Thread Andrew Ballard
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

RE: [PHP] Re: Parsing of forms

2009-05-19 Thread Ford, Mike
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

[PHP] Re: Parsing of forms

2009-05-19 Thread Daniele Grillenzoni
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

[PHP] Re: Parsing of forms

2009-05-18 Thread Peter Ford
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

Re: [PHP] Re: Parsing XML

2008-11-28 Thread Ashley Sheridan
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: >

Re: [PHP] Re: Parsing XML

2008-11-28 Thread Nathan Rixham
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

Re: [PHP] Re: Parsing XML

2008-11-27 Thread Ashley Sheridan
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.

Re: [PHP] Re: Parsing XML

2008-11-27 Thread Maciek Sokolewicz
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

Re: [PHP] Re: Parsing XML

2008-11-27 Thread Ashley Sheridan
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: [PHP] Re: Parsing XML

2008-11-27 Thread Ashley Sheridan
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

[PHP] Re: Parsing XML

2008-11-27 Thread Nathan Rixham
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

[PHP] Re: Parsing XML

2008-11-27 Thread Nathan Rixham
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

[PHP] Re: Parsing mail file

2007-02-01 Thread tom
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

[PHP] Re: Parsing AJAX post data -- The Way

2007-01-25 Thread Colin Guthrie
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

[PHP] Re: Parsing an XML return from a POST

2007-01-08 Thread Fahad Pervaiz
===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

[PHP] Re: parsing out quoted text

2006-06-11 Thread Stian Berger
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

[PHP] Re: parsing/replacing for special MS Word characters

2006-05-24 Thread Al
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

Re: [PHP] Re: Parsing variables within string variables

2006-04-08 Thread David Clough
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

Re: [PHP] Re: Parsing variables within string variables

2006-04-07 Thread Paul Novitski
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

[PHP] Re: Parsing variables within string variables

2006-04-07 Thread David Clough
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

[PHP] Re: Parsing PHP variables in XML document

2006-02-27 Thread Ivan Nedialkov
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

[PHP] Re: Parsing PHP variables in XML document

2006-02-27 Thread Ivan Nedialkov
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

[PHP] Re: Parsing PHP variables in XML document

2006-02-26 Thread Bogdan Ribic
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

[PHP] Re: Parsing PHP variables in XML document

2006-02-26 Thread Ivan Nedialkov
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

Re: [PHP] Re: Parsing PHP variables in XML document

2006-02-26 Thread chris smith
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

[PHP] Re: Parsing PHP variables in XML document

2006-02-26 Thread Bogdan Ribic
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

[PHP] Re: Parsing PHP variables in XML document

2006-02-26 Thread Bogdan Ribic
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

Re: [PHP] Re: Parsing HTML

2006-02-16 Thread Richard Lynch
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

RE: [PHP] Re: Parsing HTML

2006-02-16 Thread Jay Blanchard
[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.

[PHP] Re: Parsing HTML

2006-02-16 Thread Boby
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

[PHP] Re: Parsing HTML

2006-02-16 Thread Rafael
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

Re: [PHP] Re: Parsing MS-WORD docs

2005-09-09 Thread Rory Browne
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

Re: [PHP] Re: Parsing MS-WORD docs

2005-09-08 Thread Shafiq Rehman
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

[PHP] Re: Parsing MS-WORD docs

2005-09-08 Thread Ben Ramsey
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

[PHP] Re: Parsing MS-WORD docs

2005-09-07 Thread zzapper
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 >> -- >>

[PHP] Re: parsing useragent string without get_browser

2005-08-25 Thread I. Gray
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,

Re: [PHP] Re: Parsing search strings from referer urls?

2005-01-26 Thread Jennifer Goodie
-- 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

[PHP] Re: Parsing search strings from referer urls?

2005-01-26 Thread Jason Barnett
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

[PHP] Re: parsing /'s in urls

2004-11-12 Thread Sebastian Mendel
[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

[PHP] Re: Parsing

2004-10-27 Thread Jason Barnett
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

Re: [PHP] Re: parsing a string

2004-10-20 Thread Dan McCullough
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

Re: [PHP] Re: parsing a string

2004-10-20 Thread Dan McCullough
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

[PHP] Re: parsing a string

2004-10-20 Thread M. Sokolewicz
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

[PHP] Re: parsing a string

2004-10-20 Thread Greg Beaver
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

Re: [PHP] Re: Parsing error when XML version is mentioned

2004-07-25 Thread Justin French
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

[PHP] Re: Parsing error when XML version is mentioned

2004-07-25 Thread Scrumpy
[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"

[PHP] Re: parsing xml the right way

2004-04-02 Thread Justin Patrin
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

Re: [PHP] Re: parsing xml the right way

2004-04-02 Thread trlists
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

[PHP] Re: parsing xml the right way

2004-04-02 Thread Aidan Lister
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

[PHP] Re: parsing entities

2004-03-30 Thread Jason Barnett
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

Re: [PHP] Re: parsing variables inside a variable?

2004-01-30 Thread John W. Holmes
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*

[PHP] Re: parsing variables inside a variable?

2004-01-30 Thread Justin Patrin
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 -- -

[PHP] Re: parsing variables inside a variable?

2004-01-30 Thread jimbo
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 -- --

[PHP] Re: parsing variables inside a variable?

2004-01-29 Thread Justin Patrin
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

[PHP] Re: Parsing specific portions of XML files

2003-10-28 Thread Ian Williams
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

[PHP] Re: parsing domains

2003-08-28 Thread Kae Verens
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

Re: [PHP] Re: Parsing a local file

2003-07-29 Thread DvDmanDT
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

Re: [PHP] Re: Parsing a local file

2003-07-29 Thread Curt Zirzow
* 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

[PHP] Re: Parsing a local file

2003-07-29 Thread DvDmanDT
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

[PHP] Re: Parsing PHP

2003-07-26 Thread Greg Beaver
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

[PHP] Re: Parsing XML CDATA errors?

2003-03-31 Thread Lock Ct.
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

[PHP] Re: Parsing a directory for specific files

2003-01-10 Thread Tommy Jensehaugen
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; }

[PHP] Re: Parsing an array from a posted form

2002-11-20 Thread Nick Eby
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.

RE: [PHP] Re: Parsing HTML

2002-10-28 Thread Jay Blanchard
[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

RE: [PHP] Re: Parsing HTML

2002-10-28 Thread Jay Blanchard
[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

Re: [PHP] Re: Parsing HTML

2002-10-28 Thread John Nichel
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 .

Re: [PHP] Re: Parsing HTML

2002-10-28 Thread Henry
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

RE: [PHP] Re: Parsing HTML

2002-10-28 Thread Jon Haworth
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

Re: [PHP] Re: Parsing HTML

2002-10-28 Thread Henry
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

Re: [PHP] Re: Parsing HTML

2002-10-28 Thread Henry
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

RE: [PHP] Re: Parsing HTML

2002-10-28 Thread Jay Blanchard
[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

Re: [PHP] Re: Parsing HTML

2002-10-28 Thread John Nichel
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

Re: [PHP] Re: Parsing HTML

2002-10-28 Thread Henry
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

RE: [PHP] Re: Parsing HTML

2002-10-28 Thread Jay Blanchard
[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

[PHP] Re: Parsing HTML

2002-10-28 Thread Henry
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

[PHP] Re: parsing conundrum

2002-10-26 Thread Monty
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

Re: [PHP] Re: parsing

2002-07-23 Thread Kevin Stone
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: > >

[PHP] Re: parsing

2002-07-23 Thread Lee Doolan
> "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> "{$

[PHP] Re: parsing

2002-07-23 Thread Peter
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

[PHP] Re: Parsing CGI for PHP?

2002-07-09 Thread Richard Lynch
>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

RE: [PHP] Re: Parsing file's (SOLVED)

2002-06-02 Thread Scott
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.

RE: [PHP] Re: Parsing file's

2002-06-02 Thread Scott
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

RE: [PHP] Re: Parsing file's

2002-05-31 Thread Scott
[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;

Re: [PHP] Re: Parsing file's

2002-05-31 Thread Mark Heintz PHP Mailing Lists
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

Re: [PHP] Re: Parsing file's

2002-05-31 Thread Scott
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

[PHP] Re: Parsing file's

2002-05-31 Thread Michael Davey
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

[PHP] Re: parsing CSV, updating MySQL table

2002-05-18 Thread Jason Morehouse
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

[PHP] Re: parsing HTML text

2002-05-07 Thread Austin Marshall
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   2   >