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.php on

Re: [PHP] Error(Newbie)

2002-06-23 Thread webmaster
? 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 Subject: Re: [PHP] Error(Newbie) $query = INSERT INTO `stats

Re: [PHP] Error(Newbie)

2002-06-23 Thread 1LT John W. Holmes
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 Subject: Re: [PHP] Error(Newbie) $query

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

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 enabled,

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 the

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 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