php-windows Digest 15 Jan 2001 18:55:03 -0000 Issue 398 Topics (messages 5015 through 5027): Re: String Replacement 5015 by: Toby Butzon 5016 by: Flint Doungchak 5017 by: Toby Butzon 5019 by: Chris Adams 5023 by: adam 5024 by: Cynic 5025 by: Daniel Beulshausen 5026 by: Cynic PHP-Win in shared hosting 5018 by: David Harrison 5027 by: Richard >From $25 to Half a Million, As Seen on TV 5020 by: successfulmillionaire.yahoo.com Re: Simple question that I can't find the answer to 5021 by: Tom Re: DOM 5022 by: Tom Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
Seems to me that you've got what you want... If I'm reading you right, you want to keep plural words plural and singular words singular... so boys would become girls and boy would become girl. Well... if you just replace boy with girl you get that result... So I'm not seeing the problem... enlighten me? ;) --Toby ----- Original Message ----- From: "Flint Doungchak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 14, 2001 10:24 PM Subject: [PHP-WIN] String Replacement > Hello all, > > Hope you all had a nice weekend. Simple question, I think. > > I would like to find all occurance of: > > boy or boys > > and replace it with: > > girl or girls > > respectively. > > My problem is that using the str_replace function like this: > > str_replace("boy","girl","$string"); > > turns boys into girls. > > I guess I want an exact match or some fuzzy intelligent thing. Did I explain > myself well. This isn't so easy to write down. > > Thanks in advance. Take care. > > -Flint > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
OK, Let's try this to clarify... I hope. str_replace("boy","girl","$string"); In my case, PHP finds the 'boy' in boys and replaces it with 'girl' giving me 'girls' which is not what I want. Boy, I hope that makes sense. -Flint -----Original Message----- From: Toby Butzon [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 14, 2001 7:29 PM To: Flint Doungchak; [EMAIL PROTECTED] Subject: Re: [PHP-WIN] String Replacement Seems to me that you've got what you want... If I'm reading you right, you want to keep plural words plural and singular words singular... so boys would become girls and boy would become girl. Well... if you just replace boy with girl you get that result... So I'm not seeing the problem... enlighten me? ;) --Toby ----- Original Message ----- From: "Flint Doungchak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 14, 2001 10:24 PM Subject: [PHP-WIN] String Replacement > Hello all, > > Hope you all had a nice weekend. Simple question, I think. > > I would like to find all occurance of: > > boy or boys > > and replace it with: > > girl or girls > > respectively. > > My problem is that using the str_replace function like this: > > str_replace("boy","girl","$string"); > > turns boys into girls. > > I guess I want an exact match or some fuzzy intelligent thing. Did I explain > myself well. This isn't so easy to write down. > > Thanks in advance. Take care. > > -Flint > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
lol... Ok, so you want to replace ONLY the word "boy" with the word "girl"... you don't want to touch "boys". Perhaps str_replace("boy ", "girl ", $myStr) would do the trick? --Toby ----- Original Message ----- From: "Flint Doungchak" <[EMAIL PROTECTED]> To: "'Toby Butzon'" <[EMAIL PROTECTED]>; "Flint Doungchak" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, January 14, 2001 10:35 PM Subject: RE: [PHP-WIN] String Replacement > OK, > > Let's try this to clarify... I hope. > > str_replace("boy","girl","$string"); > > In my case, PHP finds the 'boy' in boys and replaces it with 'girl' giving > me 'girls' which is not what I want. > > Boy, I hope that makes sense. > > -Flint > > -----Original Message----- > From: Toby Butzon [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 14, 2001 7:29 PM > To: Flint Doungchak; [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] String Replacement > > > Seems to me that you've got what you want... > > If I'm reading you right, you want to keep plural words plural and singular > words singular... so boys would become girls and boy would become girl. > Well... if you just replace boy with girl you get that result... > > So I'm not seeing the problem... enlighten me? ;) > > --Toby > > ----- Original Message ----- > From: "Flint Doungchak" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, January 14, 2001 10:24 PM > Subject: [PHP-WIN] String Replacement > > > > Hello all, > > > > Hope you all had a nice weekend. Simple question, I think. > > > > I would like to find all occurance of: > > > > boy or boys > > > > and replace it with: > > > > girl or girls > > > > respectively. > > > > My problem is that using the str_replace function like this: > > > > str_replace("boy","girl","$string"); > > > > turns boys into girls. > > > > I guess I want an exact match or some fuzzy intelligent thing. Did I > explain > > myself well. This isn't so easy to write down. > > > > Thanks in advance. Take care. > > > > -Flint > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
On 14 Jan 2001 19:40:28 -0800, Toby Butzon <[EMAIL PROTECTED]> wrote: >Ok, so you want to replace ONLY the word "boy" with the word "girl"... you >don't want to touch "boys". > >Perhaps str_replace("boy ", "girl ", $myStr) would do the trick? Better yet, preg_replace("/\bboy\b/i", "girl", $myStr) or ereg_replace("[[:space:][:punct:]]boy[[:space:][:punct:]]", "girl", $myStr). Those would also match things like "boy,", "boy:" or "boy)".
Toby Butzon <[EMAIL PROTECTED]> said: > lol... > > Ok, so you want to replace ONLY the word "boy" with the word "girl"... you > don't want to touch "boys". > > Perhaps str_replace("boy ", "girl ", $myStr) would do the trick? > No, I thought of that - if the word is up against a fullstop or comma (or something else), that won't work. A regular expression will need to be used, and since I'm no good at them I can't make a suggestion. Sorry. :) adam
this one is really easy: $ret = preg_replace( '/(?!boy)s/' , 'girl' , $text ) ; At 12:34 15.1. 2001, adam wrote the following: -------------------------------------------------------------- >Toby Butzon <[EMAIL PROTECTED]> said: > >> lol... >> >> Ok, so you want to replace ONLY the word "boy" with the word "girl"... you >> don't want to touch "boys". >> >> Perhaps str_replace("boy ", "girl ", $myStr) would do the trick? >> >No, I thought of that - if the word is up against a fullstop or comma (or >something else), that won't work. A regular expression will need to be used, >and since I'm no good at them I can't make a suggestion. Sorry. :) > >adam > > >-- >PHP Windows Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] ------end of quote------ ____________________________________________________________ Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. [EMAIL PROTECTED]
At 14:57 15.01.2001 +0100, Cynic wrote: >this one is really easy: > >$ret = preg_replace( '/(?!boy)s/' , 'girl' , $text ) ; <?php $string = "boys, boy, fort boyard"; $string = preg_replace("/boy(?!\w)/", "girl", $string); print $string; ?> should be correct. daniel >At 12:34 15.1. 2001, adam wrote the following: >-------------------------------------------------------------- > >Toby Butzon <[EMAIL PROTECTED]> said: > > > >> lol... > >> > >> Ok, so you want to replace ONLY the word "boy" with the word "girl"... you > >> don't want to touch "boys". > >> > >> Perhaps str_replace("boy ", "girl ", $myStr) would do the trick? > >> > >No, I thought of that - if the word is up against a fullstop or comma (or > >something else), that won't work. A regular expression will need to be > used, > >and since I'm no good at them I can't make a suggestion. Sorry. :) > > > >adam > > > > > >-- > >PHP Windows Mailing List (http://www.php.net/) > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > >To contact the list administrators, e-mail: [EMAIL PROTECTED] >------end of quote------ > > > >____________________________________________________________ >Cynic: > >A member of a group of ancient Greek philosophers who taught >that virtue constitutes happiness and that self control is >the essential part of virtue. > >[EMAIL PROTECTED] > > > >-- >PHP Windows Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] /*-- daniel beulshausen - [EMAIL PROTECTED] using php on windows? http://www.php4win.de
yep, sorry. At 15:15 15.1. 2001, Daniel Beulshausen wrote the following: -------------------------------------------------------------- >At 14:57 15.01.2001 +0100, Cynic wrote: >>this one is really easy: >> >>$ret = preg_replace( '/(?!boy)s/' , 'girl' , $text ) ; > ><?php > $string = "boys, boy, fort boyard"; > $string = preg_replace("/boy(?!\w)/", "girl", $string); > print $string; >?> > >should be correct. > >daniel > > >>At 12:34 15.1. 2001, adam wrote the following: >>-------------------------------------------------------------- >>>Toby Butzon <[EMAIL PROTECTED]> said: >>> >>>> lol... >>>> >>>> Ok, so you want to replace ONLY the word "boy" with the word "girl"... you >>>> don't want to touch "boys". >>>> >>>> Perhaps str_replace("boy ", "girl ", $myStr) would do the trick? >>>> >>>No, I thought of that - if the word is up against a fullstop or comma (or >>>something else), that won't work. A regular expression will need to be used, >>>and since I'm no good at them I can't make a suggestion. Sorry. :) >>> >>>adam >>> >>> >>>-- >>>PHP Windows Mailing List (http://www.php.net/) >>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>For additional commands, e-mail: [EMAIL PROTECTED] >>>To contact the list administrators, e-mail: [EMAIL PROTECTED] >>------end of quote------ >> >> >> >>____________________________________________________________ >>Cynic: >> >>A member of a group of ancient Greek philosophers who taught >>that virtue constitutes happiness and that self control is >>the essential part of virtue. >> >>[EMAIL PROTECTED] >> >> >> >>-- >>PHP Windows Mailing List (http://www.php.net/) >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >>To contact the list administrators, e-mail: [EMAIL PROTECTED] > > >/*-- >daniel beulshausen - [EMAIL PROTECTED] >using php on windows? http://www.php4win.de > ------end of quote------ ____________________________________________________________ Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. [EMAIL PROTECTED]
Hi, Does anyone have any experience or comments in running PHP under Windows systems (Windows NT 4 Server / Windows 2000 Server) in shared hosting situations (ie, multiple sites running off the same box)? If so, I'd be interesting in hearing any problems you might have encountered, or any suggestions you might have. Regards, -- David
I have PHP3 running under windows NT 4 with IIS 4. I currently have about 20 sites hosted on the box. I was only able to get PHP to run as CGI, as the ISAPI version kept crashing. Also, it doesn't accept most headers...like I can't do PHP authentication, which i would have liked. I believe you can with the ISAPI version though...am I right? Other than that it works very well and seems to be quite stable. Will you be using IIS? Rick ----- Original Message ----- From: "David Harrison" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 14, 2001 11:40 PM Subject: [PHP-WIN] PHP-Win in shared hosting > Hi, > > Does anyone have any experience or comments in running PHP under Windows > systems (Windows NT 4 Server / Windows 2000 Server) in shared hosting > situations (ie, multiple sites running off the same box)? > > If so, I'd be interesting in hearing any problems you might have > encountered, or any suggestions you might have. > > Regards, > > -- David > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
Dear Friends & Future Millionaire:=20 AS SEEN ON NATIONAL TV:=20 Making over half million dollars every 4 to 5 months from your home for=20 an investment of only $25 U.S. Dollars expense one time=20 THANK'S TO THE COMPUTER AGE AND THE INTERNET !=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =20 BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!!=20 Before you say ''Bull'', please read the following. This is the letter you=20 have been hearing about on the news lately. Due to the popularity of=20 this letter on the Internet, a national weekly news program recently devote= d=20 an entire show to the investigation of this program described below, to see= =20 if it really can make people money. The show also investigated whether or=20 not the program was legal.=20 Their findings proved once and for all that there are ''absolutely NO Laws=20 prohibiting the participation in the program and if people can -follow the=20 simple instructions, they are bound to make some mega bucks with only=20 $25 out of pocket cost''. DUE TO THE RECENT INCREASE OF=20 POPULARITY & RESPECT THIS PROGRAM HAS ATTAINED,=20 IT IS CURRENTLY WORKING BETTER THAN EVER.=20 This is what one had to say: ''Thanks to this profitable opportunity. I=20 was approached many times before but each time I passed on it. I am=20 so gladI finally joined just to see what one could expect in return for the= =20 minimal effort and money required. To my astonishment, I received total $=20 610,470.00 in 21 weeks, with money still coming in."=20 Pam Hedland, Fort Lee, New Jersey.=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=20 Here is another testimonial: "This program has been around for a long=20 time but I never believed in it. But one day when I received this again=20 in the mail I decided to gamble my $25 on it. I followed the simple=20 instructions and walaa ..... 3 weeks later the money started to come in.=20 First month I only made $240.00 but the next 2 months after that I made=20 a total of $290,000.00. So far, in the past 8 months by re-entering the=20 program, I have made over $710,000.00 and I am playing it again. The=20 key to success in this program is to follow the simple steps and NOT change= =20 anything.'' More testimonials later but first,=20 =3D=3D=3D=3D=3D PRINT THIS NOW FOR YOUR FUTUREREFERENCE =3D=3D=3D=3D=3D=3D=20 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$=20 If you would like to make at least $500,000 every 4 to 5 months easily and=20 comfortably, please read the following...THEN READ IT AGAIN and AGAIN!!!=20 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$=20 FOLLOW THE SIMPLE INSTRUCTION BELOW AND YOUR FINANCIAL=20 DREAMS WILL COME TRUE, GUARANTEED! INSTRUCTIONS:=20 =3D=3D=3D=3D=3DOrder all 5 reports shown on the list below =3D=3D=3D=3D=3D=20 For each report, send $5 CASH, THE NAME & NUMBER OF THE REPORT=20 YOU ARE ORDERING and YOUR E-MAIL ADDRESS to the person whose=20 name appears ON THAT LIST next to the report. MAKE SURE YOUR RETURN=20 ADDRESS IS ON YOUR ENVELOPE TOP LEFT CORNER in case of any mail=20 problems.=20 =3D=3D=3D When you place your order, make sure you order each of the 5 repo= rts.=20 You will need all 5 reports so that you can save them on your computer=20 and resell them. YOUR TOTAL COST $5 X 5=3D$25.00.=20 Within a few days you will receive, vie e-mail, each of the 5 reports from=20 these 5 different individuals. Save them on your computer so they will be=20 accessible for you to send to the 1,000's of people who will order them=20 from you. Also make a floppy of these reports and keep it on your desk in=20 case something happen to your computer.=20 IMPORTANT - DO NOT alter the names of the people who are listed next=20 to each report, or their sequence on the list, in any way other than what i= s=20 instructed below in step '' 1 through 6 '' or you will loose out on majorit= y=20 of your profits. Once you understand the way this works, you will also see=20 how it does not work if you change it. Remember, this method has been=20 tested, and if you alter, it will NOT work !!! People have tried to put the= ir=20 friends/relatives names on all five thinking they could get all the money. = But=20 it does not work this way. Believe us, we all have tried to be greedy and t= hen=20 nothing happened. So Do Not try to change anything other than what is=20 instructed. Because if you do, it will not work for you.=20 Remember, honesty reaps the reward!!!=20 1.... After you have ordered all 5 reports, take this advertisement and=20 REMOVE the name & address of the person in REPORT # 5. This person=20 has made it through the cycle and is no doubt counting their fortune.=20 2.... Move the name & address in REPORT # 4 down TO REPORT # 5.=20 3.... Move the name & address in REPORT # 3 down TO REPORT # 4.=20 4.... Move the name & address in REPORT # 2 down TO REPORT # 3.=20 5.... Move the name & address in REPORT # 1 down TO REPORT # 2=20 6.... Insert YOUR name & address in the REPORT # 1 Position. PLEASE MAKE=20 SURE you copy every name & address ACCURATELY!=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=20 **** Take this entire letter, with the modified list of names, and save it = on=20 your=20 computer. DO NOT MAKE ANY OTHER CHANGES.=20 Save this on a disk as well just in case if you loose any data. To assist y= ou=20 with=20 marketing your business on the internet, the 5 reports you purchase will pr= ovide=20 you with invaluable marketing information which includes how to send bulk=20 e-mails legally, where to find thousands of free classified ads and much mo= re.=20 There are 2 Primary methods to get this venture going:=20 METHOD # 1: BY SENDING BULK E-MAIL LEGALLY=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=20 Let's say that you decide to start small, just to see how it goes, and we w= ill=20 assume You and those involved send out only 5,000 e-mails each. Let's=20 also assume that the mailing receive only a 0.2% response (the response=20 could be much better but lets just say it is only 0.2%. Also many people=20 will send out hundreds of thousands e-mails instead of only 5,000 each).=20 Continuing with this example, you send out only 5,000 e-mails. With a 0.2%=20 response, that is only 10 orders for report # 1. Those 10 people responded=20 by sending out 5,000 e-mail each for a total of 50,000. Out of those 50,000= =20 e-mails only 0.2% responded with orders. That's=3D100 people responded and=20 ordered Report # 2.=20 Those 100 people mail out 5,000 e-mails each for a total of 500,000 e-mails= .=20 The 0.2% response to that is 1000 orders for Report # 3.=20 Those 1000 people send out 5,000 e-mails each for a total of 5 million e-ma= ils=20 sent out. The 0.2% response to that is 10,000 orders for Report # 4.=20 Those 10,000 people send out 5,000 e-mails each for a total of 50,000,000=20 (50 million) e-mails. The 0.2% response to that is 100,000 orders for Repor= t=20 # 5 THAT'S 100,000 ORDERS TIMES $5 EACH=3D$500,000.00 (half million).=20 Your total income in this example is: 1..... $50 + 2..... $500 + 3..... $5,= 000=20 + 4=20 .... $50,000 + 5..... $500,000 ........ Grand Total=3D$555,550.00=20 NUMBERS DO NOT LIE. GET A PENCIL & PAPER AND FIGUREOUT=20 THE WORST POSSIBLE RESPONSES AND NO MATTER HOW YOU=20 CALCULATE IT, YOU WILL STILL MAKE A LOT OF MONEY !=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=20 REMEMBER FRIEND, THIS IS ASSUMING ONLY 10 PEOPLE=20 ORDERING OUT OF 5,000 YOU MAILED TO.=20 Dare to think for a moment what would happen if everyone or half or even=20 one 4th of those people mailed 100,000e-mails each or more? There are=20 over 150 million people on the Internet worldwide and counting. Believe me,= =20 many people will do just that, and more!=20 METHOD # 2 : BY PLACING FREE ADS ON THE INTERNET=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=20 Advertising on the net is very very inexpensive and there are hundreds=20 of FREE places to advertise. Placing a lot of free ads on the Internet will= =20 easily get a larger response. We strongly suggest you start with Method # 1= =20 and dd METHOD # 2 as you go along. For every $5 you receive, all you=20 must do is e-mail them the Report they ordered. That's it. Always provide=20 same day service on all orders.=20 This will guarantee that the e-mail they send out, with your name and=20 address on it, will be prompt because they can not advertise until they=20 receivethe report.=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D AVAILABLE REPORTS =3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 ORDER EACH REPORT BY ITS NUMBER & NAME ONLY. Notes:=20 Always send $5 cash (U.S. CURRENCY) for each Report. Checks NOT=20 accepted. Make sure the cash is concealed by wrapping it in at least 2 shee= ts=20 of paper. On one of those sheets of paper, Write the NUMBER & the NAME=20 of the Report you are ordering, YOUR E-MAIL ADDRESS and your name=20 and postal address.=20 PLACE YOUR ORDER FOR THESE REPORTS NOW :=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=20 REPORT # 1: The Insider's Guide to Advertising for Free on the Net Order Report #1 from: S. Chen 3433 Park Square, #1 Tampa, FL 33613 USA ________________________________________________________ REPORT # 2: The Insider's Guide to Sending Bulk e-mail on the Net Order Report # 2 from: J.R. 2107 Danforth Ave. Box # 166 Toronto, ON M4C 1K1 Canada=20 _________________________________________________________________ REPORT # 3: Secret to Multilevel marketing on the net Order Report # 3 from : Aaron Joseph P.O. BOX 21155 Columbia Heights, MN 55421 USA ____________________________________________________________=20 REPORT # 4: "How to Become a Millionaire Utilizing MLM & the Net"=20 Order Report # 4 from: C.J. Kalata P.O. Box 130157 Roseville, MN 55113-0002 USA ____________________________________________________________=20 REPORT #5: "How to Send Out 0ne Million e-mails for Free"=20 Order Report # 5 from:=20 R. B. Box. 21115,=20 Grande Prairie=20 Alberta, T8V-6W7 Canada ____________________________________________________________=20 $$$$$$$$$ YOUR SUCCESS GUIDELINES $$$$$$$$$$$=20 Follow these guidelines to guarantee your success:=20 =3D=3D=3D If you do not receive at least 10 orders for Report #1 within 2=20 weeks, continue sending e-mails until you do.=20 =3D=3D=3D After you have received 10 orders, 2 to 3 weeks after that you=20 should receive 100 orders or more for REPORT # 2. If you did not,=20 continue advertising or sending e-mails until you do.=20 =3D=3D=3D Once you have received 100 or more orders for Report # 2, YOU=20 CAN RELAX, because the system is already working for you, and the=20 cash will continue to roll in ! THIS IS IMPORTANT TO REMEMBER:=20 Every time your name is moved down on the list, you are placed in front=20 of a Different report.=20 You can KEEP TRACK of your PROGRESS by watching which report=20 people are ordering from you. IF YOU WANT TO GENERATE MORE=20 INCOME SEND ANOTHER BATCH OF E-MAILS AND START=20 THE WHOLE PROCESS AGAIN.=20 There is NO LIMIT to the income you can generate from this business !!!=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=20 FOLLOWING IS A NOTE FROM THE ORIGINATOR OF THIS=20 PROGRAM: You have just received information that can give you=20 financial freedom for the rest of your life, with NO RISK and JUST=20 A LITTLE BIT OF EFFORT. You can make more money in the next=20 few weeks and months than you have ever imagined. Follow the program=20 EXACTLY AS INSTRUCTED. Do Not change it in any way. It works=20 exceedingly well as it is now.=20 Remember to e-mail a copy of this exciting report after you have put=20 your name and address in Report #1 and moved others to #2 ...........# 5=20 as instructed above. One of the people you send this to may send out=20 100,000 or more e-mails and your name will be on every one of them.=20 Remember though, the more you send out the more potential customers=20 you will reach.=20 So my friend, I have given you the ideas, information, materials and=20 opportunity to become financially independent. IT IS UP TO YOU NOW !=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D MORE TESTIMONIALS =3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 "My name is Mitchell. My wife, Jody and I live in Chicago. I am an=20 accountant with a major U.S. Corporation and I make pretty good money.=20 When I received this program I grumbled to Jodyaboutreceiving ''junk=20 mail''. I made fun of the whole thing,spoutingmy knowledge of the populatio= n=20 and percentages involved. I ''knew'' it wouldn't work. Jody totally ignored= =20 my supposed intelligence and few days later she jumped in with both feet. I= =20 made merciless fun of her, and was ready to lay the old ''I told you so'' o= n=20 her when the thing didn't work. Well, the laugh was on me! Within 3 weeks=20 she had received 50 responses. Within the next 45 days she had received=20 total $ 147,200.00 ........... all cash! I was shocked. I have joined Jody=20 in her ''hobby''.=20 Mitchell Wolf M.D., Chicago, Illinois=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=20 ''Not being the gambling type, it took me several weeks to make up my=20 mind to participate in this plan. But conservative that I am, I decided tha= t=20 the initial investment was so little that there was just no way that I=20 wouldn't get enough orders to at least get my money back''. '' I was=20 surprised when I found my medium size post office box crammed with=20 orders. I made $319,210.00in the first 12 weeks. The nice thing about=20 this deal is that it does not matter where people live. There simply isn't = a=20 better investment with a faster return and so big."=20 Dan Sondstrom, Alberta, Canada=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=20 ''I had received this program before. I deleted it, but later I wondered=20 if I should have given it a try. Of course, I had no idea who to contact to= =20 get another copy, so I had to wait until I was e-mailed again by someone=20 else.........11 months passed then it luckily came again...... I did not=20 delete this one! I made more than $490,000 on my first try and all the=20 money came within 22 weeks."=20 Susan De Suza, New York, N.Y.=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=20 ''It really is a great opportunity to make relatively easy money with=20 little cost to you. I followed the simple instructions carefully and=20 within 10 days the money started to come in. My first month I made=20 $20,560.00 and by the end of third month my total cash count was=20 $362,840.00. Life is beautiful, Thanx to internet.".=20 Fred Dellaca, Westport, New Zealand=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=20 ORDER YOUR REPORTS TODAY AND GET STARTED ON=20 'YOUR' ROAD TO FINANCIAL FREEDOM !=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=20 If you have any questions of the legality of this program, contact the=20 Office of Associate Director for Marketing Practices, Federal Trade=20 Commission, Bureau of Consumer Protection, Washington, D.C.=20 _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Depends on why you want to lop it down to a single line? Is this to make your code tidier, or to improve execution time (the latter I doubt, as it won't take long to perform the code you describe!). The neat solution would obviously be a function (maybe even in javascript!) that takes the parameters date1 and date2 and does the following: - if $date1 > $date2 { $sql_date1 = $date1; $sql_date2 = $date2; } else { $sql_date1 = $date2; $sql_date2 = $date1; } "Asendorf, John" wrote: > Is there a single line of code to do the following? > > I'm trying to interchange two variables' contents... I can do it with the > following, but I was just wondering... I can't find it if there is... > > $a = "abc"; > $b = "def"; > > $temp = $b; > $b = $a; > $a = $temp; > > //now $a = "def" and $b = "abc" > > Thanks in advance, > > John > > --------------------- > Founder of > The 'What Kind of Idiot Uses PHP with IIS with Oracle on NT?' Consortium > > Members: John Asendorf, Thomas Kryger, Florian Clever, Ron Woods, Bod > > John Asendorf - [EMAIL PROTECTED] > Web Applications Developer > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > Licking County, Ohio, USA > 740-349-3631 > > Vah! Denuone Latine loquebar? Me ineptum. Interdum modo elabitur. > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
James If I'm reading your many posts right, then what you are trying to do is pull the share prices from the same site at (say) half hourly intervals, so that you can use them yourself / analyse them or whatever. In this case, I suspect that the format of the page you pull down will ALWAYS BE IDENTICAL, so you actually only have to work out a suitable parser to extract the data once. If I remember rightly from a couple of weeks back, you are using MySQL as the database? In this case, pull the html file down, save it on your server and examine how the html is constructed (it will almost certainly be an ASP / PHP while construct to build a table, all of whose rows will thus be identical apart from the data). Then you can use a command line (run from a PHP script if you like) MySQL LOAD DATA INFILE 'blah.html' INTO TABLE Share_Prices FIELDS TERMINATED BY '</td><td>'; type of construct. Note that you will want to strip out the beginning and end of the file first as well. This may sound like a bit of work, but you only have to do it once, as the file format will always be the same (barring the addition of new stocks). Tom James Duncan wrote: > I don't think this will work in my case because I don't control the layout > of the HTML page and hence can't add the hidden fields. I'm downloading the > HTML pages from a website. It would require as much work to insert the > hidden fields as trying to strip the HTML tags in an attempt to read the > data directly from the HTML page itself. There must be a way to access the > DOM directly from PHP? I notice in the manual there is a section regarding > XML DOM but not the DOM itself. > > Are the DOM values only available on the client? If that's the case then PHP > can't be used to read them because it's limited to the server side? > > Thanks > > James > > -----Original Message----- > From: Michael Stearne [mailto:[EMAIL PROTECTED]] > Sent: 13 January 2001 17:06 > To: James Duncan > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] DOM > > Could you do something like: > > myForm.myField.value=tablejames.firstChild.childNodes[1].childNodes[4].first > Child.firstChild.node Value; > > Set up a form of hidden fields. Extract the values from the DOM and then > have the user hit a Submit button to get to the next page. At that point > the values that were collected and put into the hidden form fields will be > submitted and you next page (the PHP page) could INSERT the values into the > database, > > Michael > > On Friday, January 12, 2001, at 07:30 PM, James Duncan wrote: > > > Hi folks, > > > > I'm still new to HTML, Javascript and PHP but learning (fast hopefully). > > I've just started accessing DOM elements. I have worked out how to update > > the contents of table cells directly using this method, etc. In Javascript > I > > would use code like: > > > > alert("Value is: " + > > > tablejames.firstChild.childNodes[1].childNodes[4].firstChild.firstChild.node > > Name); > > alert("Value is: " + > > > tablejames.firstChild.childNodes[1].childNodes[5].firstChild.firstChild.node > > Value); > > > > This Javascript shows the name and value of the child element. > > > > Now I want to use PHP to extract data (values) from HTML pages like I do > > with the above Javascript. Is this possible? Obviously with the Javascript > > the HTML page has already been rendered in the browser (i.e. all tree > > elements have been created). This makes extracting data a simple case of > > finding the "#text" elements and reading in the values. Can I do the same > > thing with PHP and an HTML file I've downloaded from the Internet? > Obviously > > this file is sitting on my server and hasn't been rendered in a browser... > > > > The whole point of this exercise is so that I can extract values from an > > HTML table and populate them into a database. Maybe it's easier to process > > the HTML file line by line and strip the unwanted HTML tags? However, with > > this approach I've got to hardcode each webpage... > > > > If this is a silly question then sorry but you only learn if you ask ;) > > > > Thanks > > > > James > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]