RE: [PHP] Quotes in Heredoc

2011-02-28 Thread tedd
At 8:23 AM -0500 2/28/11, Bob McConnell wrote: From: Ashim Kapoor From Ashley Sheridan The quotes you mention are in the HTML, nothing to do with PHP. HTML will work without the quotes in most cases (unless there's a space in the value for the attribute) but the quotes are required in X

RE: [PHP] Quotes in Heredoc

2011-02-28 Thread Bob McConnell
From: Ashim Kapoor > From Ashley Sheridan >> The quotes you mention are in the HTML, nothing to do with PHP. HTML will >> work without the quotes in most cases (unless there's a space in the value >> for the attribute) but the quotes are required in XHTML and will cause >> unexpected results. > >

Re: [PHP] Quotes in Heredoc

2011-02-26 Thread Ashim Kapoor
Yes, in HTML the quotes are optional, but they are required in XHTML documents: > http://www.w3.org/TR/xhtml1/diffs.html#h-4.4 > Ok Thank you, Ashim

Re: [PHP] Quotes in Heredoc

2011-02-26 Thread Ashley Sheridan
On Sat, 2011-02-26 at 16:27 +0530, Ashim Kapoor wrote: > The quotes you mention are in the HTML, nothing to do with PHP. HTML will > work without the quotes in most cases (unless there's a space in the value > for the attribute) but the quotes are required in XHTML and will cause > unexpected resu

Re: [PHP] Quotes in Heredoc

2011-02-26 Thread Ashim Kapoor
The quotes you mention are in the HTML, nothing to do with PHP. HTML will work without the quotes in most cases (unless there's a space in the value for the attribute) but the quotes are required in XHTML and will cause unexpected results. Can you elaborate on the XHTML part? Do you mean they are

Re: [PHP] Quotes in Heredoc

2011-02-26 Thread Ashley Sheridan
On Sat, 2011-02-26 at 14:41 +0530, Ashim Kapoor wrote: > Dear All, > > I am learning PHP by reading a book. My query pertains to the following > lines : - > > $form_str = <<< EOFORMSTR > WIDTH=621> > > SRC=../images/spacer.gif> > > > . > > My query is that is it true that we don't need

[PHP] Quotes in Heredoc

2011-02-26 Thread Ashim Kapoor
Dear All, I am learning PHP by reading a book. My query pertains to the following lines : - $form_str = <<< EOFORMSTR . My query is that is it true that we don't need to do ie. we don't need to quote the value of the options in Heredoc. Is that correct? Many thanks, Ashim.

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Richard Quadling
On 6 August 2010 16:18, Bill Guion wrote: > At 8:31 AM -0400 08/06/10, tedd wrote: > >> Cheers, >> >> tedd >> >> PS: Considering that this is Friday. I have a grammar question for the >> group. I said above: >> >> "neither CSS, PHP, or any web language exist in a vacuum." >> >> Is the word "neithe

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Bill Guion
At 8:31 AM -0400 08/06/10, tedd wrote: Cheers, tedd PS: Considering that this is Friday. I have a grammar question for the group. I said above: "neither CSS, PHP, or any web language exist in a vacuum." Is the word "neither" appropriate in this sentence? Normally, two items can be compare

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
At 9:09 AM -0400 8/6/10, Andrew Ballard wrote: On Fri, Aug 6, 2010 at 8:31 AM, tedd wrote: While it may not be obvious, the statement: > is flawed (IMO). The "best" way to handle this is to define a class (or id) for the table in a css file and then set the border (i.e., styling) to

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Andrew Ballard
On Fri, Aug 6, 2010 at 8:31 AM, tedd wrote: > While it may not be obvious, the statement: > > > > is flawed (IMO). > > The "best" way to handle this is to define a class (or id) for the table in > a css file and then set the border (i.e., styling) to whatever you want. For > example, your HTML wo

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Richard Quadling
On 6 August 2010 13:31, tedd wrote: >I have a grammar question for the > group. I said above: > > "neither CSS, PHP, or any web language exist in a vacuum." > > Is the word "neither" appropriate in this sentence? > > Normally, two items can be compared by "neither"  or "nor", but what about > more

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Floyd Resler
On Aug 6, 2010, at 8:08 AM, tedd wrote: > At 10:10 PM -0400 8/5/10, Rick Dwyer wrote: >> 2nd question, in the 3 [2] lines below: >> >> $checkstat = "select field from table where fieldid = $field_id"; >> $result1 = @mysql_query($checkstat,$connection) or die("Couldn't execute >> query"); >> >>

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
At 9:05 PM -0700 8/5/10, Michael Shadle wrote: Leave the single quotes for parameters, indexes, code, not attributes - $.02 Agreed. "Render unto Caesar (HTML) the things that are Caesar's and unto God (PHP -- Lord forgive me) the things that are God's." In other words, when writing code in

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
At 11:00 PM -0400 8/5/10, Paul M Foster wrote: On Thu, Aug 05, 2010 at 10:10:26PM -0400, Rick Dwyer wrote: > echo " And elsewhere on the page it follows: > echo ' Not acceptable and sloppy. Be consistent in your coding style. In general, HTML attributes should be surrounded by do

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
At 10:10 PM -0400 8/5/10, Rick Dwyer wrote: 2nd question, in the 3 [2] lines below: $checkstat = "select field from table where fieldid = $field_id"; $result1 = @mysql_query($checkstat,$connection) or die("Couldn't execute query"); If I were to recode in the latter style, should they not look

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Richard Quadling
On 6 August 2010 07:34, Peter Lind wrote: > On 6 August 2010 04:10, Rick Dwyer wrote: >> Hi List. >> I've mentioned before that I am both just beginning to learn PHP AND I have >> inherited a number of pages that I'm trying to clean up the w3c validation >> on. >> >> Something that confuses me

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Peter Lind
On 6 August 2010 04:10, Rick Dwyer wrote: > Hi List. > I've mentioned before that I am both just beginning to learn PHP AND I have > inherited a number of pages that I'm trying to clean up the w3c validation on. > > Something that confuses me is how the code on the page is written where in > one

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Michael Shadle
On Thu, Aug 5, 2010 at 8:51 PM, Adam Richardson wrote: > Tim Bray, who knows a little bit about XML dialects (tongue in cheek), > appears to default to the single quote as his delimiter of choice: > http://www.tbray.org/ongoing/ Side note, looks like his stuff is auto-generated by something, so

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Michael Shadle
On Thu, Aug 5, 2010 at 8:51 PM, Adam Richardson wrote: > I would suggest that saying is "the wrong way" is a > rather strong assessment.  Whether you're talking about SGML (the > grandparent), XML (the parent), or XHTML, the use of a single quote is > perfectly valid, and has served a purpose si

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Adam Richardson
On Thu, Aug 5, 2010 at 10:53 PM, Rick Dwyer wrote: > > On Aug 5, 2010, at 10:43 PM, Michael Shadle wrote: > > > > > For HTML, -always- use double quotes. > > > > is the right way. > > is the wrong way. > > > > I'd go into more explanation but there simply doesn't need to be one. > I would sugg

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Paul M Foster
On Thu, Aug 05, 2010 at 10:10:26PM -0400, Rick Dwyer wrote: > Hi List. > I've mentioned before that I am both just beginning to learn PHP AND I have > inherited a number of pages that I'm trying to clean up the w3c validation on. > > Something that confuses me is how the code on the page is writ

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Rick Dwyer
On Aug 5, 2010, at 10:43 PM, Michael Shadle wrote: > On Thu, Aug 5, 2010 at 7:10 PM, Rick Dwyer wrote: >> Hi List. >> I've mentioned before that I am both just beginning to learn PHP AND I have >> inherited a number of pages that I'm trying to clean up the w3c validation >> on. >> >> Somethin

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Michael Shadle
On Thu, Aug 5, 2010 at 7:10 PM, Rick Dwyer wrote: > Hi List. > I've mentioned before that I am both just beginning to learn PHP AND I have > inherited a number of pages that I'm trying to clean up the w3c validation on. > > Something that confuses me is how the code on the page is written where i

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Josh Kehn
On Aug 5, 2010, at 10:10 PM, Rick Dwyer wrote: > Hi List. > I've mentioned before that I am both just beginning to learn PHP AND I have > inherited a number of pages that I'm trying to clean up the w3c validation on. > > Something that confuses me is how the code on the page is written where in

[PHP] Quotes vs. Single Quote

2010-08-05 Thread Rick Dwyer
Hi List. I've mentioned before that I am both just beginning to learn PHP AND I have inherited a number of pages that I'm trying to clean up the w3c validation on. Something that confuses me is how the code on the page is written where in one instance, it follows this: echo " And elsewhere

Re: [PHP] Quotes in querys

2009-01-15 Thread Thodoris
It is over head, but it caches the execution plan for multiple runs of the script. So different users with different data will use the same cached query on the database. Saving processing time. It also prevents SQL injection on the fly because you are indicating what data type each place

Re: [PHP] Quotes in querys

2009-01-14 Thread Chris
It is over head, but it caches the execution plan for multiple runs of the script. So different users with different data will use the same cached query on the database. Saving processing time. It also prevents SQL injection on the fly because you are indicating what data type each place holde

Re: [PHP] Quotes in querys

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 15:24 -0500, Frank Stanovcak wrote: > "Ashley Sheridan" wrote in message > news:1231962521.3613.13.ca...@localhost.localdomain... > > On Wed, 2009-01-14 at 11:17 -0500, MikeP wrote: > >> Hello, > >> I am trying to get the following to work: > >> "Select Netid from Users wher

Re: [PHP] Quotes in querys

2009-01-14 Thread Frank Stanovcak
"Ashley Sheridan" wrote in message news:1231962521.3613.13.ca...@localhost.localdomain... > On Wed, 2009-01-14 at 11:17 -0500, MikeP wrote: >> Hello, >> I am trying to get the following to work: >> "Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'" >> Netid is a string type. >> No

Re: Fwd: [PHP] Quotes in querys

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 10:11 -0800, Kyle Terry wrote: > On Wed, Jan 14, 2009 at 10:07 AM, Kyle Terry wrote: > > > > > > > On Wed, Jan 14, 2009 at 9:11 AM, wrote: > > > >> > >> > Doesn't anybody use prepared statements these days? It even helps MySQL > >> > AND Oracle cache an execution plan... >

Re: [PHP] Quotes in querys

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 11:17 -0500, MikeP wrote: > Hello, > I am trying to get the following to work: > "Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'" > Netid is a string type. > No matter where of if I put the quotes, I still get array[phpCAS] not the > value. > If there is anyt

Fwd: [PHP] Quotes in querys

2009-01-14 Thread Kyle Terry
On Wed, Jan 14, 2009 at 10:07 AM, Kyle Terry wrote: > > > On Wed, Jan 14, 2009 at 9:11 AM, wrote: > >> >> > Doesn't anybody use prepared statements these days? It even helps MySQL >> > AND Oracle cache an execution plan... >> >> Forgive me if I'm wrong, but: >> >> Caching an execution plan for a

Re: [PHP] Quotes in querys

2009-01-14 Thread Kyle Terry
On Wed, Jan 14, 2009 at 9:11 AM, wrote: > > > Doesn't anybody use prepared statements these days? It even helps MySQL > > AND Oracle cache an execution plan... > > Forgive me if I'm wrong, but: > > Caching an execution plan for a prepared statement that is run only once in > the script is just ov

Re: [PHP] Quotes in querys

2009-01-14 Thread ceo
> Doesn't anybody use prepared statements these days? It even helps MySQL > AND Oracle cache an execution plan... Forgive me if I'm wrong, but: Caching an execution plan for a prepared statement that is run only once in the script is just overhead, no? Or can it actually re-use the same

Re: [PHP] Quotes in querys

2009-01-14 Thread Kyle Terry
On Wed, Jan 14, 2009 at 8:41 AM, MikeP wrote: > Thanks, Thats the kind of help I was looking for. > Mike > wrote in message > news:20090114162142.65944.qm...@o2.hostbaby.com... > > > > You can only interpolate ONE level of array or object indirection in a > > string. > > > > WORKS: > > "... $foo

Re: [PHP] Quotes in querys

2009-01-14 Thread MikeP
Thanks, Thats the kind of help I was looking for. Mike wrote in message news:20090114162142.65944.qm...@o2.hostbaby.com... > > You can only interpolate ONE level of array or object indirection in a > string. > > WORKS: > "... $foo[x] ..." > "... $foo->x ..." > > FAILS: > "... $foo[x][y] ..." > "

Re: [PHP] Quotes in querys

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 11:34 AM, MikeP wrote: > > ""Eric Butera"" wrote in message > news:6a8639eb0901140825h1d603d01i3ffcce919dca6...@mail.gmail.com... >> On Wed, Jan 14, 2009 at 11:17 AM, MikeP wrote: >>> Hello, >>> I am trying to get the following to work: >>> "Select Netid from Users where

Re: [PHP] Quotes in querys

2009-01-14 Thread MikeP
""Eric Butera"" wrote in message news:6a8639eb0901140825h1d603d01i3ffcce919dca6...@mail.gmail.com... > On Wed, Jan 14, 2009 at 11:17 AM, MikeP wrote: >> Hello, >> I am trying to get the following to work: >> "Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'" >> Netid is a string

Re: [PHP] Quotes in querys

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 11:17 AM, MikeP wrote: > Hello, > I am trying to get the following to work: > "Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'" > Netid is a string type. > No matter where of if I put the quotes, I still get array[phpCAS] not the > value. > If there is anyth

Re: [PHP] Quotes in querys

2009-01-14 Thread ceo
You can only interpolate ONE level of array or object indirection in a string. WORKS: "... $foo[x] ..." "... $foo->x ..." FAILS: "... $foo[x][y] ..." "... $foo->x->y ..." //almost for sure it fails, never tried... You can use curly braces in side a string to evaluate something: WOR

Re: [PHP] Quotes in querys

2009-01-14 Thread Robert Stankiewicz
I am trying to get the following to work: "Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'" Netid is a string type. No matter where of if I put the quotes, I still get array[phpCAS] not the value. Maybe try this : $q = 'Select Netid from Users where Netid = "' . $_SESSION[p

RES: [PHP] Quotes in querys

2009-01-14 Thread Jônatas Zechim
Try session_start(); $sql = "SELECT Netid FROM User WHERE Netid='".$_SESSION['phpCAS']['user']."'"; -Mensagem original- De: MikeP [mailto:mpel...@princeton.edu] Enviada em: quarta-feira, 14 de janeiro de 2009 14:17 Para: php-general@li

[PHP] Quotes in querys

2009-01-14 Thread MikeP
Hello, I am trying to get the following to work: "Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'" Netid is a string type. No matter where of if I put the quotes, I still get array[phpCAS] not the value. If there is anything I still have trouble with after all these years its quot

Re: [PHP] Quotes?

2006-09-08 Thread Michelle Konzack
Am 2006-09-05 23:12:43, schrieb Gustav Wiberg: > I want to save this to a string... > >

Re: [PHP] Quotes?

2006-09-05 Thread J R
On 9/6/06, Gustav Wiberg <[EMAIL PROTECTED]> wrote: I want to save this to a string... var uri = 'http://impse.tradedoubler.com/imp/img/16352388/1122503?' + new String (Math.random()).substring (2, 11); docume

Re: [PHP] Quotes?

2006-09-05 Thread Dave Goodchild
Or use a heredoc? -- http://www.web-buddha.co.uk http://www.projectkarma.co.uk

Re: [PHP] Quotes?

2006-09-05 Thread Martin Marques
On Tue, 5 Sep 2006, Gustav Wiberg wrote: I want to save this to a string... var uri = 'http://impse.tradedoubler.com/imp/img/16352388/1122503?' + new String (Math.random()).substring (2, 11

[PHP] Quotes?

I want to save this to a string... var uri = 'http://impse.tradedoubler.com/imp/img/16352388/1122503?' + new String (Math.random()).substring (2, 11); document.write('hr

Re: [PHP] Quotes """ in form textarea fields

Andrew Kreps wrote: I'd like to add that you can also use the following syntax for textarea fields: which may also get you past the quoting problem. You mean you can use: unless you prefer depreciated code and cross site scripting vulnerabilities... http://www.w3.org/TR/html4/interact/forms.htm

Re: [PHP] Quotes """ in form textarea fields

On Fri, 08 Oct 2004 06:22:22 -0700, Sam Smith <[EMAIL PROTECTED]> wrote: > Then from FROM2.php we Submit BACK to FROM1.php and enter it back into the > textarea field with: > which may also get you past the quoting problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Quotes """ in form textarea fields

> A user enters in a textarea field of FORM1.php: > Bob is "high" > > Submitted to FROM2.php we get: > > Bob is \"high\" > Tha't's normal beacuse you have magic_quotes_gpc_on > In a hidden field in FROM2.php we store the value: > Then from FROM2.php we Submit BACK to FROM1.php and enter it b

Re: [PHP] Quotes """ in form textarea fields

Sam Smith wrote: I swear I googled for an hour first. A user enters in a textarea field of FORM1.php: Bob is "high" Submitted to FROM2.php we get: Bob is \"high\" In a hidden field in FROM2.php we store the value: So it looks: (hope this is what you meant) You forgot ending quote, but that does no

Re: [PHP] Quotes """ in form textarea fields

On Fri, 2004-10-08 at 06:22 -0700, Sam Smith wrote: > I swear I googled for an hour first. > > > A user enters in a textarea field of FORM1.php: > Bob is "high" > > Submitted to FROM2.php we get: > > Bob is \"high\" > > In a hidden field in FROM2.php we store the value: > Then from FROM2.php

[PHP] Quotes """ in form textarea fields

I swear I googled for an hour first. A user enters in a textarea field of FORM1.php: Bob is "high" Submitted to FROM2.php we get: Bob is \"high\" In a hidden field in FROM2.php we store the value: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] quotes in text.

> Ok then, I want to know how to do it the right way but just using > $_POST['text'], as stated before, in my query still cuts off the text at > the quote. > > While passing this field between pages I don't do anything to it but when > I want to show it to the user I would use stripslashes($_POST[

Re: [PHP] quotes in text.

On Fri, 16 Jul 2004, John W. Holmes wrote: > Ed Curtis wrote: > > On Fri, 16 Jul 2004, Justin Patrin wrote: > >>This is why he said: "Since you seem to have magic_quotes_gpc enabled, > >>you can put the value directly into your query." > >> > >>You shouldn't use htmlentities when putting it into

Re: [PHP] quotes in text.

Ed Curtis wrote: On Fri, 16 Jul 2004, Justin Patrin wrote: This is why he said: "Since you seem to have magic_quotes_gpc enabled, you can put the value directly into your query." You shouldn't use htmlentities when putting it into the DB. Use it when displaying the text. I tried it both ways and i

Re: [PHP] quotes in text.

On Fri, 16 Jul 2004, Justin Patrin wrote: > This is why he said: "Since you seem to have magic_quotes_gpc enabled, > you can put the value directly into your query." > > You shouldn't use htmlentities when putting it into the DB. Use it > when displaying the text. I tried it both ways and it on

Re: [PHP] quotes in text.

On Fri, 16 Jul 2004 11:58:55 -0500 (EST), Ed Curtis <[EMAIL PROTECTED]> wrote: > > > > On Fri, 16 Jul 2004, John W. Holmes wrote: > > > Let's say you have $_POST['text'] from the user. > > > > To display the value back to the user with magic_quotes_enabled, you'd > > do this: > > > > echo htmle

Re: [PHP] quotes in text.

On Fri, 16 Jul 2004, John W. Holmes wrote: > Let's say you have $_POST['text'] from the user. > > To display the value back to the user with magic_quotes_enabled, you'd > do this: > > echo htmlentities(stripslashes($_POST['text'])); > > To put the value into a hidden form element, you'd do this

Re: [PHP] quotes in text.

Ed Curtis wrote: I'm having some difficulty with quotation marks, both single and double, input via a textarea in a form. Here's and example of text. Trying out the "Special Character" thing. Page 1 is the form. Page 2 is the data shown back to the user. original POST data is not touched. NO strips

[PHP] quotes in text.

I'm having some difficulty with quotation marks, both single and double, input via a textarea in a form. Here's and example of text. Trying out the "Special Character" thing. Page 1 is the form. Page 2 is the data shown back to the user. original POST data is not touched. NO stripslashes origi

Re: [PHP] quotes in php.ini

On Tue, 28 Oct 2003 22:28:12 -0800 Evan Nemerson <[EMAIL PROTECTED]> wrote: > On Wednesday 29 October 2003 12:30 am, - Edwin - wrote: > > On Tue, 28 Oct 2003 22:05:56 -0800 > > > > Evan Nemerson <[EMAIL PROTECTED]> wrote: > > > On Tuesday 28 October 2003 11:59 pm, - Edwin - wrote: > > > > Hi, > >

Re: [PHP] quotes in php.ini

On Wed, 29 Oct 2003 03:29:13 -0500 Leif K-Brooks <[EMAIL PROTECTED]> wrote: > - Edwin - wrote: > > >Interesting. Where? > > > > > www.w3.org ? Sorry, *won't* find it there... In fact, a quick Google search gives you this: http://www.w3.org/TR/REC-html32 [quote] Attribute values can be quo

Re: [PHP] quotes in php.ini

* Thus wrote Leif K-Brooks ([EMAIL PROTECTED]): > Curt Zirzow wrote: > > >Try reversing the quotes: > >error_prepend_string = ""; > > > > > Not valid XHTML (not sure if it's even valid HTML). Sure it is, the quote character can be either ' or " and will validate perfectly fine at w3c. now the fo

Re: [PHP] quotes in php.ini

On Wednesday 29 October 2003 12:30 am, - Edwin - wrote: > On Tue, 28 Oct 2003 22:05:56 -0800 > > Evan Nemerson <[EMAIL PROTECTED]> wrote: > > On Tuesday 28 October 2003 11:59 pm, - Edwin - wrote: > > > Hi, > > > > > > On Wed, 29 Oct 2003 02:10:49 -0500 > > > > > > Leif K-Brooks <[EMAIL PROTECTED]>

Re: [PHP] quotes in php.ini

- Edwin - wrote: Interesting. Where? www.w3.org -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] quotes in php.ini

On Tue, 28 Oct 2003 22:05:56 -0800 Evan Nemerson <[EMAIL PROTECTED]> wrote: > On Tuesday 28 October 2003 11:59 pm, - Edwin - wrote: > > Hi, > > > > On Wed, 29 Oct 2003 02:10:49 -0500 > > > > Leif K-Brooks <[EMAIL PROTECTED]> wrote: > > > Curt Zirzow wrote: > > > >Try reversing the quotes: > > > >

Re: [PHP] quotes in php.ini

On Wed, 29 Oct 2003 03:22:54 -0500 Leif K-Brooks <[EMAIL PROTECTED]> wrote: > - Edwin - wrote: > > >Why not? > > > > > Because that's what the standard says. Interesting. Where? - E - __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.

Re: [PHP] quotes in php.ini

- Edwin - wrote: Why not? Because that's what the standard says. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] quotes in php.ini

On Tuesday 28 October 2003 11:59 pm, - Edwin - wrote: > Hi, > > On Wed, 29 Oct 2003 02:10:49 -0500 > > Leif K-Brooks <[EMAIL PROTECTED]> wrote: > > Curt Zirzow wrote: > > >Try reversing the quotes: > > > error_prepend_string = ""; > > > > Not valid XHTML (not sure if it's even valid HTML). > > Why

Re: [PHP] quotes in php.ini

Hi, On Wed, 29 Oct 2003 02:10:49 -0500 Leif K-Brooks <[EMAIL PROTECTED]> wrote: > Curt Zirzow wrote: > > >Try reversing the quotes: > > error_prepend_string = ""; > > > > > Not valid XHTML (not sure if it's even valid HTML). Why not? - E - __ D

Re: [PHP] quotes in php.ini

On Tuesday 28 October 2003 10:46 pm, [EMAIL PROTECTED] wrote: > Evan Nemerson wrote: > >Is anyone aware of a way to get double quotes in the php.ini file? For > >instance, I'd like to be able to set error_prepend_string to " >color=\"#ff\">" (which doesn't work). > > > >The only work-around I c

Re: [PHP] quotes in php.ini

On Tuesday 28 October 2003 11:10 pm, Leif K-Brooks wrote: > Curt Zirzow wrote: > >Try reversing the quotes: > > error_prepend_string = ""; > > Not valid XHTML (not sure if it's even valid HTML). Yup. I've got the highlight_file thing from earlier working with ini entries, and I'm wondering how pe

Re: [PHP] quotes in php.ini

Curt Zirzow wrote: Try reversing the quotes: error_prepend_string = ""; Not valid XHTML (not sure if it's even valid HTML). -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Ma

Re: [PHP] quotes in php.ini

* Thus wrote Evan Nemerson ([EMAIL PROTECTED]): > On Tuesday 28 October 2003 11:29 pm, Rolf Brusletto wrote: > > Evan Nemerson wrote: > > >Is anyone aware of a way to get double quotes in the php.ini file? For > > >instance, I'd like to be able to set error_prepend_string to " > >color=\"#ff\">

Re: [PHP] quotes in php.ini

On Tuesday 28 October 2003 11:29 pm, Rolf Brusletto wrote: > Evan Nemerson wrote: > >Is anyone aware of a way to get double quotes in the php.ini file? For > >instance, I'd like to be able to set error_prepend_string to " >color=\"#ff\">" (which doesn't work). > > > >The only work-around I can

Re: [PHP] quotes in php.ini

Evan Nemerson wrote: >Is anyone aware of a way to get double quotes in the php.ini file? For >instance, I'd like to be able to set error_prepend_string to "color=\"#ff\">" (which doesn't work). > >The only work-around I can think of is doing ini_set()'s in an >auto_prepend_file, and that's n

Re: [PHP] quotes in php.ini

Evan Nemerson wrote: Is anyone aware of a way to get double quotes in the php.ini file? For instance, I'd like to be able to set error_prepend_string to "" (which doesn't work). The only work-around I can think of is doing ini_set()'s in an auto_prepend_file, and that's not acceptable for my pu

[PHP] quotes in php.ini

Is anyone aware of a way to get double quotes in the php.ini file? For instance, I'd like to be able to set error_prepend_string to "" (which doesn't work). The only work-around I can think of is doing ini_set()'s in an auto_prepend_file, and that's not acceptable for my purposes. -- Evan Ne

Re: [PHP] Quotes in regular expressions

That may be why! It's the htmlspecialchars() that is the issue.. The signle quote get convert into this, not sure if this apply to your situation though. --snip-- Reference : Special Characters in HTML left single quote ‘ ' right single quote ’ ' --snip-- "Thaddeus J. Quintin

Re: [PHP] Quotes in regular expressions

The biggest part of my problem was that I had already called "htmlspecialchars" on the string, so there was no quotes to match! Duh. Even after I fixed that it was still turning into a hassle, so I just made two checks, one for single quotes, and, failing that, one for double quotes. not the

Re: [PHP] Quotes in regular expressions

Try parsing it as a string where the double quote would become a string. See if that help. (Parse the whole characters into strings then find the double quote.) "Thaddeus J. Quintin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > -- SNIP -- > > If single-quoting (better, if you do

Re: [PHP] Quotes in regular expressions

-- SNIP -- > If single-quoting (better, if you don't variable interpolation) you don't even need to escape the backslashes, so: > > $pattern = '/\bsrc=([\'|"])[^\1]*[\1]/im'; -- SNIP -- nope, not quite... Here's what I've got- $pattern='/\bsrc=([\'|"])([^\1])*[\1]/im'; the string that's comi

RE: [PHP] Quotes in regular expressions

On 21 August 2003 17:03, Thaddeus J. Quintin wrote: > Lets say I'm trying to extract some data from an HTML > document. I want > to get the values of the 'src' attributes of various tags. > > For example- > http://www.yahoo.com";> > > here's the pattern I've been trying- > > /\bsrc=(['|"])[^\\

[PHP] Quotes in regular expressions

Lets say I'm trying to extract some data from an HTML document. I want to get the values of the 'src' attributes of various tags. For example- http://www.yahoo.com";> here's the pattern I've been trying- /\bsrc=(['|"])[^\\1]*[\\1]/im Basically, match the 'src=' followed by some type of quote,

RE: [PHP] quotes

> -Original Message- > From: Lso . [mailto:[EMAIL PROTECTED] > Sent: 25 June 2003 18:32 > > ok i see why i didnt work but i dont know why. > > can anyone tell me why this works: > > > > but this doesn't: > > echo ""; Because by default htmlentities will convert double quotes but n

Re: [PHP] quotes

LOL my mistake jason I should have paid more attention - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 25, 2003 12:26 PM Subject: Re: [PHP] quotes > On Thursday 26 June 2003 01:33, Chris Sherwood wrot

Re: [PHP] quotes

On Thursday 26 June 2003 01:33, Chris Sherwood wrote: > I dont know what you were thinking but this is in a php list > > when you render html with php and you want double quotes in the html you > MUST escape them > > otherwise you dont use double quotes Sorry, it was the context of the thing: >

[PHP] quotes again finally got it right

ok thanks for putting up with me. it works just fine if i use \" instead of single quotes in the html that the php is generating. thanks again. i think i finaly got it. Lucas Owens www.lucasowens.com www.technoiraudio.com _ The n

Re: [PHP] quotes

--- "Lso ." <[EMAIL PROTECTED]> wrote: > ok i see why i didnt work but i dont know why. > > can anyone tell me why this works: > > > > but this doesn't: > > echo ""; It works for me, at least it does what I think you mean it to do. I'm not a big fan of single-quoted attributes in HTML, but it

Re: [PHP] quotes

IL PROTECTED]> Sent: Wednesday, June 25, 2003 9:58 AM Subject: Re: [PHP] quotes > On Thursday 26 June 2003 00:02, Chris Sherwood wrote: > > well thats seems unlikely as I do it all the time.. > > > > how ever I am not going to argue p's and q's ... > > if i

[PHP] quotes

ok i see why i didnt work but i dont know why. can anyone tell me why this works: but this doesn't: echo ""; Lucas Owens www.lucasowens.com www.technoiraudio.com _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. htt

Re: [PHP] quotes

im stupid. it works. so sorry. htmlentities did the trick. i had a chunk of code lingering from a former attempt at fixing it that screwed it all up. thanks again everyone. Lucas _ The new MSN 8: advanced junk mail protection

Re: [PHP] quotes

When you view the html source is all of the text including the quotes there? >>> "Lso ." <[EMAIL PROTECTED]> 06/25/03 12:06PM >>> go ahead an try it. the quote is quite clearly in the database, but when i try to put it back in a form field everything is cut off after the quote. and i tried stri

Re: [PHP] quotes

here ya go: function dbconnect(){ $dbh=mysql_connect ("**", "**", "**") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("**"); } $dbname = "***"; $urlname = "parteditlists.php"; function drawtable2($id, $company, $division, $contact, $

Re: [PHP] quotes

. there is too much stuff running on this serever to take that risk. Lucas Owens www.lucasowens.com www.technoiraudio.com From: Jason Wong <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] quotes Date: Thu, 26 Jun 2003 00:58:40 +0800 On Thursday 26 Jun

Re: [PHP] quotes

On Thursday 26 June 2003 00:52, Lso . wrote: > it doesnt work, i just tried it. the text is still cut off after the quote > > >Just try htmlentities()! A textarea is for multiple lines of text! Show some code please. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software

Re: [PHP] quotes

gt" <[EMAIL PROTECTED]> > To: "Chris Sherwood" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, June 25, 2003 9:04 AM > Subject: Re: [PHP] quotes > > > Umm, in his first email, he specifically said all the quotes > > were already es

  1   2   >