Index.php :
Code: Select all
<?php
include("http://www.website.com/cookie.php");
?>Code: Select all
<?php
if (isset($_COOKIE["background"]))
$background = $_COOKIE['background'];
else
$background = " bgcolor='#FFFFFF'";
?>Moderator: General Moderators
Code: Select all
<?php
include("http://www.website.com/cookie.php");
?>Code: Select all
<?php
if (isset($_COOKIE["background"]))
$background = $_COOKIE['background'];
else
$background = " bgcolor='#FFFFFF'";
?>Cheershttp://us2.php.net/manual/en/function.include.php wrote:If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), you can specify the file to be included using a URL (via HTTP or other supported wrapper - see List of Supported Protocols/Wrappers for a list of protocols) instead of a local pathname.