RE: [PHP] Error(Newbie)

2002-06-24 Thread Ford, Mike [LSS]
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 22 June 2002 15:19 > when I try and view stat.php I get this error: > > Parse error: parse error, expecting `T_STRING' or > `T_VARIABLE' or `T_NUM_STRING' in C:\TecEco(Converting To > PHP)\includes\stat.

RE: [PHP] Error(Newbie)

2002-06-23 Thread John Holmes
> The only data returned by a browser in a "Cookie" header is the > name/value pairs. So, your example would not pose a threat of any sort. > The "Referer" and "User-Agent" are separate headers, but like all data > from the client, they should also not be trusted. > > If you have magic quotes ena

Re: [PHP] Error(Newbie)

2002-06-23 Thread Chris Shiflett
The only data returned by a browser in a "Cookie" header is the name/value pairs. So, your example would not pose a threat of any sort. The "Referer" and "User-Agent" are separate headers, but like all data from the client, they should also not be trusted. If you have magic quotes enabled, you

Re: [PHP] Error(Newbie)

2002-06-23 Thread 1LT John W. Holmes
now. > > ----- Original Message - > From: "1LT John W. Holmes" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Sunday, June 23, 2002 2:11 PM > Subject: Re: [PHP] Error(Newbie) > > > >$query = "INSERT INTO `sta

Re: [PHP] Error(Newbie)

2002-06-22 Thread webmaster
d I gather info from? Thanks, JJ Harrison [EMAIL PROTECTED] www.tececo.com BTW I have fixed the error now. - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, June 23, 2002 2:11 PM Subj

Re: [PHP] Error(Newbie)

2002-06-22 Thread Leif K-Brooks
Do NOT do it that way! That may work now, but it may not in the future! The correct way is to append. Like ".$_COOKIE['tececo_stats']." (include the quotes). Do it the same way for the others. 1LT John W. Holmes wrote > >Try using $_COOKIE[tececo_stats] instead...without the single quotes

Re: [PHP] Error(Newbie)

2002-06-22 Thread 1LT John W. Holmes
>$query = "INSERT INTO `stats` (`vid`, `id`, `vn`, `time`, `host`, `referrer`, >`browser`) VALUES ('', '$id', '$_COOKIE >['tececo_stats']', '$time', '$_SERVER['REMOTE_HOST']', '$_SERVER['HTTP_REFERER']', >'$_SERVER >['HTTP_USER_AGENT']'); "; I hope you are using addslashes on your $_COOKIE and

Re: [PHP] Error(Newbie)

2002-06-22 Thread 1LT John W. Holmes
>$query = "INSERT INTO `stats` (`vid`, `id`, `vn`, `time`, `host`, `referrer`, >`browser`) VALUES ('', '$id', '$_COOKIE >['tececo_stats']', '$time', '$_SERVER['REMOTE_HOST']', '$_SERVER['HTTP_REFERER']', >'$_SERVER >['HTTP_USER_AGENT']'); "; Try using $_COOKIE[tececo_stats] instead...without th