> -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.
> 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
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
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
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
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
>$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
#x27;]',
>'$_SERVER
>['HTTP_USER_AGENT']'); ";
Try using $_COOKIE[tececo_stats] instead...without the single quotes (for the other
vars, too).
You don't need all of those backticks in your query, either...
---John Holmes...
- Original Message ---
Both the below are in the same dir.
The meta.array_create.php file works fine
elsewhere
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 line 7
What doe
9 matches
Mail list logo