[PHP] Re: Unexpected behaviour from define()

2010-06-24 Thread James Long
On Thu, Jun 24, 2010 at 02:41:51PM -0700, James Long wrote: > Perhaps I am missing something basic here. > > Why does the LOG_WARNING constant take on a value of 4, when > it is defined with a value of 1? > > Thank you! > > Jim Answering my own question here LOG_WARNING is already defined

Re: [PHP] Re: unexpected array_diff output

2004-04-30 Thread Torsten Roehr
"Frederic Noyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On 30 avr. 04, at 11:31, Torsten Roehr wrote: > > > "Frederic Noyer" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > >> > >> On 30 avr. 04, at 11:00, Torsten Roehr wrote: > > >>> > >>> I think th

Re: [PHP] Re: unexpected array_diff output

2004-04-30 Thread Frederic Noyer
On 30 avr. 04, at 11:31, Torsten Roehr wrote: "Frederic Noyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On 30 avr. 04, at 11:00, Torsten Roehr wrote: I think this is correct because the 3 key/value pairs from the first array are NOT in the second one. I think the combination of

Re: [PHP] Re: unexpected array_diff output

2004-04-30 Thread Torsten Roehr
"Frederic Noyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On 30 avr. 04, at 11:00, Torsten Roehr wrote: > >> > > > > I think this is correct because the 3 key/value pairs from the first > > array > > are NOT in the second one. I think the combination of key and value are > >

Re: [PHP] Re: unexpected array_diff output

2004-04-30 Thread Frederic Noyer
On 30 avr. 04, at 11:00, Torsten Roehr wrote: I think this is correct because the 3 key/value pairs from the first array are NOT in the second one. I think the combination of key and value are relevant for array_diff(). As I have understand only the array_diff_assoc function does that. see php.ne

Re: [PHP] Re: unexpected array_diff output

2004-04-30 Thread Frederic Noyer
On 30 avr. 04, at 11:00, Torsten Roehr wrote: "Frederic Noyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello there ! I am trying to fill and then compare two arrays: one filled by a foreach construct, and the second by a while construct. I check both with a print_r to be sure t

[PHP] Re: unexpected array_diff output

2004-04-30 Thread Torsten Roehr
"Frederic Noyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello there ! > I am trying to fill and then compare two arrays: one filled by a > foreach construct, and the second by a while construct. > I check both with a print_r to be sure that both are correctly filled > (which

[PHP] Re: Unexpected ";"

2004-02-19 Thread Paul Furman
Thanks folks, it was the missing paren on the if statement. if (...{...} if (...){...} I'm using PSPad as an editor with syntax highlighting and it works pretty well but I don't always . Paul Furman wrote: I don't see what's wrong with this if statement: while ... and ... { if (($pic_num + 1)

[PHP] Re: unexpected return from $_POST['foo']

2003-06-27 Thread Kyle W. Cartmell
When I var_export, I get the following information... array ( 'wakka' => 'blueberry_muffinswakka=blueberry_muffins', ). There is no further useful information in the HTML code at all. It's pretty empty in there. I've been studying my configuration, but to no avail at this point. I'm not sure whe

[PHP] Re: unexpected return from $_POST['foo']

2003-06-27 Thread sven
strange. look into the sourcecode of your output-page, whether there is more information (html-tags, i.e.). and try var_export($_POST); instead of you echo to see what information come with post. maybe it's your server/php config. your code works for me. ciao SVEN "Kyle W. Cartmell" <[EMAIL PRO

Re: [PHP] Re: unexpected T_SL

2002-09-02 Thread Voisine
I tried everything and I still have this error. I have this error with php 4.2.2 on Windows 98 I also have the same problem with Apache, RedHat php 4.2.1. WellI'm going to skip this lesson. Thanks for all the help! Regards! Steel wrote: > Hi Erwin, > > Monday, September 2, 2002, 11:28:0

Re: [PHP] Re: unexpected T_SL

2002-09-02 Thread Chris Hewitt
> > >>Voisine wrote: >>Hi, >> >>What is wrong witht his code? Parse error: parse error, unexpected >>T_SL in c:\program files\easyphp\www\tutorial\eod.php on line 2 >> >>>$str = <<>Example of string >>spanning multiple lines >>using heredoc syntax. >>EOD; >>?> >> Assuming your line 2 is the one wi

RE: [PHP] Re: unexpected T_SL

2002-09-02 Thread Todd Pasley
:10 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: unexpected T_SL > > > Your lucky :) because I'm using the same version and I have this > parse error. > > Erwin wrote: > > > Voisine wrote: > > > Hi, > > > > > > What is wrong witht h

[PHP] Re: unexpected T_SL

2002-09-02 Thread Voisine
Your lucky :) because I'm using the same version and I have this parse error. Erwin wrote: > Voisine wrote: > > Hi, > > > > What is wrong witht his code? Parse error: parse error, unexpected > > T_SL in c:\program files\easyphp\www\tutorial\eod.php on line 2 > > > > > $str = << > Example of str

Re: [PHP] Re: unexpected T_SL

2002-09-02 Thread Steel
Hi Erwin, Monday, September 2, 2002, 11:28:09 AM, I've got: E> Voisine wrote: >> Hi, >> >> What is wrong witht his code? Parse error: parse error, unexpected >> T_SL in c:\program files\easyphp\www\tutorial\eod.php on line 2 >> >> > $str = <<> Example of string >> spanning multiple lines >> usin

[PHP] Re: unexpected T_SL

2002-09-02 Thread Erwin
Voisine wrote: > Hi, > > What is wrong witht his code? Parse error: parse error, unexpected > T_SL in c:\program files\easyphp\www\tutorial\eod.php on line 2 > > $str = << Example of string > spanning multiple lines > using heredoc syntax. > EOD; > ?> To be honest, there is nothing wrong. It wor

[PHP] Re: unexpected T_IF

2002-05-25 Thread Michael Virnstein
you can look here: http://www.php.net/manual/en/tokens.php to see what T_IF means. 31: $FulflNme = $DOCUMENT_ROOT . $flNme you forgot the ; at the end of the line. Michael "Zac Hillier" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 002a01c203cf$4f1d7780$667ba8c0@ws">news:002a01c203cf$4f1d7780$