Re: [PHP] HTML errors

2011-01-11 Thread Jim Lucas
On 1/11/2011 7:35 PM, David McGlone wrote: Hi Everyone, I'm having a problem validating some links I have in a foreach. Here is my code: http://www.w3.org/TR/html4/loose.dtd";> my PHP code: $categorys = array('home', 'services', 'gallery', 'about_us', 'contact_us', 'testimonials'); foreach($ca

Re: [PHP] HTML errors

2011-01-11 Thread Daniel Brown
On Tue, Jan 11, 2011 at 22:35, David McGlone wrote: > Hi Everyone, I'm having a problem validating some links I have in a foreach. > Here is my code: >   "http://www.w3.org/TR/html4/loose.dtd";> > > my PHP code: > $categorys = array('home', 'services', 'gallery', 'about_us', 'contact_us', > 'testi

[PHP] Re: HTML errors

2011-01-11 Thread David Robley
David McGlone wrote: > Hi Everyone, I'm having a problem validating some links I have in a > foreach. Here is my code: > "http://www.w3.org/TR/html4/loose.dtd";> > > my PHP code: > $categorys = array('home', 'services', 'gallery', 'about_us', > 'contact_us', 'testimonials'); > foreach($category

Re: [PHP] HTML errors

2011-01-11 Thread Chen Dong
Hi David: Quote your attribute value in "..." On Wed, Jan 12, 2011 at 2:35 PM, David McGlone wrote: > Hi Everyone, I'm having a problem validating some links I have in a > foreach. > Here is my code: > "http://www.w3.org/TR/html4/loose.dtd";> > > my PHP code: > $categorys = array('home', 'ser

[PHP] HTML errors

2011-01-11 Thread David McGlone
Hi Everyone, I'm having a problem validating some links I have in a foreach. Here is my code: http://www.w3.org/TR/html4/loose.dtd";> my PHP code: $categorys = array('home', 'services', 'gallery', 'about_us', 'contact_us', 'testimonials'); foreach($categorys as $category){ $replace = str_replace

Re: [PHP] Stripping carriage returns

2011-01-11 Thread Jim Lucas
On 1/11/2011 11:13 AM, Richard S. Crawford wrote: > I'm retrieving CLOB data from an Oracle database, and cleaning up the HTML > in it. I'm using the following commands: > > $content = > strip_tags($description->fields['CONTENT'],''); > $content = preg_replace("//","",$content); > > The s

Re: [PHP] Re: Craigslist Jobs

2011-01-11 Thread Mujtaba Arshad
join oDesk. They have a lot of programming jobs on there, it is also pretty secure. On Tue, Jan 11, 2011 at 12:57 PM, Matty Sarro wrote: > Quote:"Yes, you will get burned a few times, and have both good and > bad experiences when you least expect them - the main thing is just to > remember the c

[PHP] Server Response

2011-01-11 Thread Al
Newsgroup server response is terrible and has a strange behavior. Response for first posting or two is fast, then it acts like it doesn't want to give me any additional postings. You fixed it about about 2 or 3 weeks ago; but issue has returned, Al.. -- PHP General Mailing List (

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Ashley Sheridan
On Tue, 2011-01-11 at 14:44 -0500, Steve Staples wrote: > On Tue, 2011-01-11 at 19:00 +, Ashley Sheridan wrote: > > On Tue, 2011-01-11 at 17:07 +0100, Michelle Konzack wrote: > > > > > Hello Ashley Sheridan, > > > > > > Am 2011-01-08 17:09:27, hacktest Du folgendes herunter: > > > > Also, ea

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Steve Staples
On Tue, 2011-01-11 at 19:00 +, Ashley Sheridan wrote: > On Tue, 2011-01-11 at 17:07 +0100, Michelle Konzack wrote: > > > Hello Ashley Sheridan, > > > > Am 2011-01-08 17:09:27, hacktest Du folgendes herunter: > > > Also, each label is checked to ensure it doesn't run over 63 characters, > > >

Re: [PHP] Stripping carriage returns

2011-01-11 Thread Mari Masuda
On Jan 11, 2011, at 11:34 AM, Richard S. Crawford wrote: > Strangely, when I use \n, or nl2br(), or PHP_EOL, or anything like that, it > strips out not just line breaks, but most of the rest of the text as well. I > suspect an encoding issue at this point. > > Daniel, you were right when you sai

Re: [PHP] Stripping carriage returns

2011-01-11 Thread Richard S. Crawford
Strangely, when I use \n, or nl2br(), or PHP_EOL, or anything like that, it strips out not just line breaks, but most of the rest of the text as well. I suspect an encoding issue at this point. Daniel, you were right when you said that neither of my str_replace lines had repl.acement values; that

Re: [PHP] Stripping carriage returns

2011-01-11 Thread David Harkness
On Tue, Jan 11, 2011 at 11:13 AM, Richard S. Crawford wrote: > $content = preg_replace("/[".chr(10)."|".chr(13)."]/","",$content) > This should be $content = preg_replace('/[\r\n]/','',$content) First, you can embed \r and \n directly in the regular expression as-is (not converted to chr(1

Re: [PHP] Stripping carriage returns

2011-01-11 Thread Daniel Brown
On Tue, Jan 11, 2011 at 14:13, Richard S. Crawford wrote: > > $content = str_replace(chr(13),$content) > > and > > $content = str_replace(array('\n','\r','\r\n'),$content) Neither of these have replacement values, which might just be a typo. However, the larger issue is in the single (litera

[PHP] Re: Stripping carriage returns

2011-01-11 Thread Jo�o C�ndido de Souza Neto
What about trying str_replace(PHP_EOL, "", $content); -- João Cândido de Souza Neto ""Richard S. Crawford"" escreveu na mensagem news:aanlktimzfk+ku6dkvjmhekbsycuosn2tv+0txfsn9...@mail.gmail.com... I'm retrieving CLOB data from an Oracle database, and cleaning up the HTML in it. I'm using th

Re: [PHP] First PHP job

2011-01-11 Thread David Harkness
On Tue, Jan 11, 2011 at 9:55 AM, Robert Cummings wrote: > My horse now has a perforated stomach and colon. Can I send you the > veterinarian's bill? > Who knew they made carrot-flavored $needles? David

Re: [PHP] Stripping carriage returns

2011-01-11 Thread Ashley Sheridan
On Tue, 2011-01-11 at 11:13 -0800, Richard S. Crawford wrote: > I'm retrieving CLOB data from an Oracle database, and cleaning up the HTML > in it. I'm using the following commands: > > $content = > strip_tags($description->fields['CONTENT'],''); > $content = preg_replace("//","",$content

Re: [PHP] Command line PHP

2011-01-11 Thread David Harkness
On Tue, Jan 11, 2011 at 10:12 AM, tedd wrote: > My down time is playing XBOX Black Ops. It allows my mind to focus on > things that don't matter, much like a vacation, that's frees space > For me that's Left 4 Dead 2 as Captain Cujo. I think it's beneficial to cultivate skills in something that

[PHP] Stripping carriage returns

2011-01-11 Thread Richard S. Crawford
I'm retrieving CLOB data from an Oracle database, and cleaning up the HTML in it. I'm using the following commands: $content = strip_tags($description->fields['CONTENT'],''); $content = preg_replace("//","",$content); The second line is necessary because the tag frequently comes with cla

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Per Jessen
Michelle Konzack wrote: > Hello Ashley Sheridan, > > Am 2011-01-08 17:09:27, hacktest Du folgendes herunter: >> Also, each label is checked to ensure it doesn't run over 63 >> characters, and the whole thing isn't over 253 characters. Lastly, >> each label is checked to ensure it doesn't complete

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Ashley Sheridan
On Tue, 2011-01-11 at 17:07 +0100, Michelle Konzack wrote: > Hello Ashley Sheridan, > > Am 2011-01-08 17:09:27, hacktest Du folgendes herunter: > > Also, each label is checked to ensure it doesn't run over 63 characters, > > and the whole thing isn't over 253 characters. Lastly, each label is > >

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Per Jessen
tedd wrote: > At 11:54 AM +0100 1/11/11, Per Jessen wrote: >>tedd wrote: >> >>> At that time, I registered almost 30 names. >>> Fortunately, all of my names passed and I was >>> permitted to keep them. Unfortunately, all >>> browser manufactures (except Safari) negated some >>> of the work do

Re: [PHP] First PHP job

2011-01-11 Thread Robert Cummings
On 11-01-11 01:15 PM, tedd wrote: At 4:12 PM -0200 1/11/11, Jo“o C’ndido de Souza Neto wrote: It must be a big joke!!! No really, his horse has serious problems. It's not good to find needles that way. I've nicknamed him Porcuphiney. Cheers, Rob. Ps. for those with limited english co

Re: [PHP] First PHP job

2011-01-11 Thread tedd
At 4:12 PM -0200 1/11/11, Jo“o C’ndido de Souza Neto wrote: It must be a big joke!!! No really, his horse has serious problems. It's not good to find needles that way. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Command line PHP

2011-01-11 Thread Richard Quadling
On 11 January 2011 17:53, Robert Cummings wrote: > On 11-01-11 12:14 PM, Donovan Brooke wrote: >> >> tedd wrote: >>> >>> At 1:54 PM -0500 1/7/11, Joshua Kehn wrote: Why should someone stop learning ever? >>> >>> Because my head fills up. >>> >>> I have to wait until I forget something be

Re: [PHP] Command line PHP

2011-01-11 Thread tedd
At 11:14 AM -0600 1/11/11, Donovan Brooke wrote: tedd wrote: At 1:54 PM -0500 1/7/11, Joshua Kehn wrote: Why should someone stop learning ever? Because my head fills up. I have to wait until I forget something before I can learn something new. The up-side is that I'm learning something new

Re: [PHP] First PHP job

2011-01-11 Thread Jo�o C�ndido de Souza Neto
It must be a big joke!!! -- João Cândido de Souza Neto "Robert Cummings" escreveu na mensagem news:4d2c997d.3010...@interjinn.com... > On 11-01-11 12:15 PM, David Harkness wrote: >> On Tue, Jan 11, 2011 at 4:19 AM, Jay >> Blanchardwrote: >> >>> I am always looking for the $needle in the $ha

Re: [PHP] Re: Craigslist Jobs

2011-01-11 Thread Matty Sarro
Quote:"Yes, you will get burned a few times, and have both good and bad experiences when you least expect them - the main thing is just to remember the clients are people, with a problem to solve, you're there to solve that problem in a cost effective manner, and ultimately your work has two values

Re: [PHP] First PHP job

2011-01-11 Thread Robert Cummings
On 11-01-11 12:15 PM, David Harkness wrote: On Tue, Jan 11, 2011 at 4:19 AM, Jay Blanchardwrote: I am always looking for the $needle in the $haystack. Just sayin' I often find it faster to hire a bunch of horses to eat the $haystack, leaving the $needle behind and easy to find. My hor

Re: [PHP] Command line PHP

2011-01-11 Thread Robert Cummings
On 11-01-11 12:14 PM, Donovan Brooke wrote: tedd wrote: At 1:54 PM -0500 1/7/11, Joshua Kehn wrote: Why should someone stop learning ever? Because my head fills up. I have to wait until I forget something before I can learn something new. The up-side is that I'm learning something new almos

RE: [PHP] First PHP job

2011-01-11 Thread Jay Blanchard
[snip] I often find it faster to hire a bunch of horses to eat the $haystack, leaving the $needle behind and easy to find. [/snip] Even cheaper to just burn the hay. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Craigslist Jobs

2011-01-11 Thread Nathan Rixham
Ethan Rosenberg wrote: Dear List - I am a NEWBIE, so . How do I handle Craigslist postings? Is there anything special I should do? Any advice for other web sites? At this point I am talking about small jobs. 1] My payment. Should I ask for something up front? If so how much? depend

Re: [PHP] First PHP job

2011-01-11 Thread David Harkness
On Tue, Jan 11, 2011 at 4:19 AM, Jay Blanchard wrote: > I am always looking for the $needle in the $haystack. > > Just sayin' > I often find it faster to hire a bunch of horses to eat the $haystack, leaving the $needle behind and easy to find. David

Re: [PHP] Command line PHP

2011-01-11 Thread Donovan Brooke
tedd wrote: At 1:54 PM -0500 1/7/11, Joshua Kehn wrote: Why should someone stop learning ever? Because my head fills up. I have to wait until I forget something before I can learn something new. The up-side is that I'm learning something new almost every day now. Cheers, tedd lol.. I ju

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread tedd
At 11:54 AM +0100 1/11/11, Per Jessen wrote: tedd wrote: At that time, I registered almost 30 names. Fortunately, all of my names passed and I was permitted to keep them. Unfortunately, all browser manufactures (except Safari) negated some of the work done by the IDNS WG and as a result P

Re: [PHP] Command line PHP

2011-01-11 Thread Richard Quadling
On 11 January 2011 16:59, Robert Cummings wrote: > Doh, that sucks! Yep. The common solution I've seen is to have a separate thread running to read from the stream/buffer the content (and suffer the blocking) and the main thread to simply return the data from the the buffer or nothing if there is

[PHP] Re: Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Michelle Konzack
Hello Per Jessen, Am 2011-01-11 11:54:53, hacktest Du folgendes herunter: > Only for characters that are not part of a national alphabet, I believe? > > This one works fine: http://rugbrød.ch/ http://ätsch.de/ works too Thanks, Greetings and nice Day/Evening Michelle Konzack --

Re: [PHP] Command line PHP

2011-01-11 Thread Robert Cummings
On 11-01-11 11:55 AM, Richard Quadling wrote: On 11 January 2011 16:43, Robert Cummings wrote: On 11-01-11 11:27 AM, Richard Quadling wrote: As PHP on windows requires an [ENTER] key to be pressed to pass the typed string to the code (even for fgetc(STDIN) ), then this may not be what you wan

Re: [PHP] Command line PHP

2011-01-11 Thread Richard Quadling
On 11 January 2011 16:43, Robert Cummings wrote: > On 11-01-11 11:27 AM, Richard Quadling wrote: >> >> As PHP on windows requires an [ENTER] key to be pressed to pass the >> typed string to the code (even for fgetc(STDIN) ), then this may not >> be what you want. > > Have you tried setting the str

Re: [PHP] Command line PHP

2011-01-11 Thread Richard Quadling
On 11 January 2011 16:43, Robert Cummings wrote: > On 11-01-11 11:27 AM, Richard Quadling wrote: >> >> As PHP on windows requires an [ENTER] key to be pressed to pass the >> typed string to the code (even for fgetc(STDIN) ), then this may not >> be what you want. > > Have you tried setting the str

Re: [PHP] Command line PHP

2011-01-11 Thread Robert Cummings
On 11-01-11 11:27 AM, Richard Quadling wrote: As PHP on windows requires an [ENTER] key to be pressed to pass the typed string to the code (even for fgetc(STDIN) ), then this may not be what you want. Have you tried setting the stream to non-blocking to prevent the need for the return key? C

Re: [PHP] Command line PHP

2011-01-11 Thread Richard Quadling
On 7 January 2011 16:55, la...@garfieldtech.com wrote: > Hi folks.  I have a project coming up that will involve writing a > non-trivial command line PHP application.  Most of it will be nice and > abstracted and standalone and all of that jazz, but it will need to do > command line interation.  I

[PHP] Re: Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Michelle Konzack
Hello Tedd, Am 2011-01-10 11:39:16, hacktest Du folgendes herunter: > IOW, an email address of t...@ˆ.com is perfectly legal (and will > work), but no email application will allow it. Hahaha, how many MUA have you checked? My one does support ist. mutt: Installiert: 1.5.20-5~bpo50+1 Kandida

[PHP] Re: Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Michelle Konzack
Hello Per Jessen, Am 2011-01-09 12:15:04, hacktest Du folgendes herunter: > Tamara Temple wrote: > > I'm wondering what mods to make for this now that unicode chars are > > allowed in domain names > You're talking about IDNs ? The actual domain name is still US-ASCII, > only when you decode p

[PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Michelle Konzack
Hello Ashley Sheridan, Am 2011-01-08 17:09:27, hacktest Du folgendes herunter: > Also, each label is checked to ensure it doesn't run over 63 characters, > and the whole thing isn't over 253 characters. Lastly, each label is > checked to ensure it doesn't completely consist of digits. Do you know

Re: [PHP] Re: First PHP job

2011-01-11 Thread Peter Lind
On Jan 11, 2011 4:32 PM, "Gary" wrote: > > Steve Staples wrote: > > or the ($needle, $haystack) vs ($haystack, $needle)... i still get it > > screwed up... > > Given that, for example, array_search and strstr take those arguments in > different orders, that's not really surprising. > Something te

Re: [PHP] Craigslist Jobs

2011-01-11 Thread Matty Sarro
Like any other job, have a portfolio to show your skills. Most people who are posting on craigslist will be stunned by just about any work, but it helps in case you happen to get an educated contact who wants to see what you've done. Some references may also be helpful. 1) There's no right or wron

[PHP] Craigslist Jobs

2011-01-11 Thread Ethan Rosenberg
Dear List - I am a NEWBIE, so . How do I handle Craigslist postings? Is there anything special I should do? Any advice for other web sites? At this point I am talking about small jobs. 1] My payment. Should I ask for something up front? If so how much? 2] How do I protect myself so t

[PHP] Re: [BOGO?]RE: [PHP] First PHP job

2011-01-11 Thread Paul M Foster
On Tue, Jan 11, 2011 at 06:19:32AM -0600, Jay Blanchard wrote: > [snip] > > or the ($needle, $haystack) vs ($haystack, $needle)... i still get it > > screwed up... thankfully php.net/{function_name} is easy to use :P > > > > Oh hell yeah! I know there's a rule about it. I just don't know what it

RE: [PHP] First PHP job

2011-01-11 Thread Jay Blanchard
[snip] > or the ($needle, $haystack) vs ($haystack, $needle)... i still get it > screwed up... thankfully php.net/{function_name} is easy to use :P > Oh hell yeah! I know there's a rule about it. I just don't know what it is. [/snip] I am always looking for the $needle in the $haystack. Just s

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Per Jessen
tedd wrote: > At that time, I registered almost 30 names. > Fortunately, all of my names passed and I was > permitted to keep them. Unfortunately, all > browser manufactures (except Safari) negated some > of the work done by the IDNS WG and as a result > PUNYCODE is shown instead of the actual > c