D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
blackhat.pw
:
/
kunden
/
usr
/
lib
/
php8.4
/
test
/
HTTP_Request2
/
_network
/
Filename :
setcookie.php
back
Copy
<?php /** * Helper files for HTTP_Request2 unit tests. Should be accessible via HTTP. * * PHP version 5 * * LICENSE * * This source file is subject to BSD 3-Clause License that is bundled * with this package in the file LICENSE and available at the URL * https://raw.github.com/pear/HTTP_Request2/trunk/docs/LICENSE * * @category HTTP * @package HTTP_Request2 * @author Alexey Borzov <avb@php.net> * @copyright 2008-2022 Alexey Borzov <avb@php.net> * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License * @link http://pear.php.net/package/HTTP_Request2 */ $name = empty($_GET['name'])? 'foo': $_GET['name']; $value = empty($_GET['value'])? 'bar': $_GET['value']; setcookie($name, $value); echo "Cookie set!"; ?>