English 中文(简体)
延长期限的库克群岛
原标题:Cookies with extensions
  • 时间:2011-11-11 09:01:49
  •  标签:
  • php
  • cookies

我看到了由网页提供的“特性”的 co。 我试图尽可能多地使用_GET[ url]美元,以建立我的厨师,然后把它列入下页,作为条件,在它允许用户采取行动之前,对 co进行检查。 在匿名投票行动中,使用ok具和IP地址的Im确保只有一天投票的人获得选票。 计生公司每天通过一次跳板重新开工, co子在17小时后到期。 我没有任何问题把一个叫作延长的厨师,然而,经过许多小时的审判和错误之后,我不得不接受。 不管我试图做什么,它不会承认 co子是固定的。 如果没有延伸,所有东西都会奏效。 我曾尝试过十几个组合,但这里基本上看着我试图辩论的情况。

<?php

$cookie = "test.php";
setcookie("$cookie", "workdamnyou");

if (isset($_COOKIE[$cookie])) {
echo "is set";
}
else {
echo "not set";
}
?>

I ve Trial isset($_COOKIE[”$cookie]) and isset($COOKIE[$ cookie]) 尽管如此,我确实希望你能够操作PHP而不必每次将其上载到服务器。 -

最佳回答

我也认为解决办法是......。 PHP在可变名称中类似狗(http://www.php.net/manual/en/language.variables.basics.php)。 现在,由于登记册全球可供使用,可能会有一笔_COOKIE[“名称.ext”]美元。 姓名可改为无效。 因此,“变形名称中的斜体和空间改为强调。 例如,成为_REquestST[“a_b”]美元。 http://www.php.net/manual/en/English.variables.external.php。 是否对打工进行检查?

问题回答

setcookie doesn t change $_COOKIE immediately. It sets the headers to change the cookie in the browser, so the script won t see the test value until you refresh the page.

You CAN的运行是PHP,没有上载到服务器;最容易的选择是安装一个XAMP(LAMP/MAMP/WAMP,视您能否重新开发到LC/Mac/Windows)。

为什么会有一个<条码>.php,以 co名延伸? 应当:

$cookie =  test ;

See http://www.ietf.org/rfc/rfc2109.txt point 4.1:

两个州管理首长,即Seta-Cookie和库克群岛都有共同之处。

syntactic properties involving attribute-value pairs. The following grammar uses the notation, and tokens DIGIT (decimal digits) and token (informally, a sequence of non-special, non-white space characters) from the HTTP/1.1 specification [RFC 2068] to describe their syntax.

av-pairs = av-pair *(";" av-pair)

av-pair = tr[“=”数值];

attr = token

页: 1

字 = 字体

Attributes (names) (attr) are case-insensitive. White space is
permitted between tokens. Note that while the above syntax
description shows value as optional, most attrs require them.

NOTE: The syntax above allows whitespace between the attribute and the = sign.





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签