-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
?
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
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
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
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,
$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
$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
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
8 matches
Mail list logo