My problem is that it will not echo on one page named 'header.php' in the directory from the main root '[root]/hf/'.
Here is the code for the document:
<?php
if ($_REQUEST['change'] == "true") {
$uend = $_POST['uend'];
setcookie("uend",$uend,time()+(60*86400),"/","sirlemons.exofire.net");
header("Location: http://sirlemons.exofire.net/");
}
elseif ($_REQUEST['reset'] == "true") {
setcookie("uend","",time()-(60*86400),"/","sirlemons.exofire.net");
header("Location: http://sirlemons.exofire.net/");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>::.Sir Lemons' CP Cheats.::</title>
<meta http-equiv="Content-Type" content="text/html; charset='utf-8'">
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://sirlemons.exofire.net/styles/style.php");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
echo "\n";
?>
</head>
<body>
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://sirlemons.exofire.net/hf/header.php");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
echo "\n";
?>
<div id="content">
<div class="center">
<h1>Admin Panel for Play CP Huge: Custom</h1>
<p>Your Current Play CP Huge URL is: <a href="http://sirlemons.exofire.net/cpcustom/<?php echo $_COOKIE['uend']; ?>">http://sirlemons.exofire.net/cpcustom/<?php echo $_COOKIE['uend']; ?></a></p>
<form action="./admin.php?change=true" method="POST">
Change your Play CP Huge URL: http://sirlemons.exofire.net/cpcustom/
<input name="uend" maxlength="2048" size="60" value="<?php if(isset($_COOKIE['uend'])) echo $_COOKIE['uend']; else echo '?custom=true&bgurl=&txtcolor=&fontstl='; ?>">
<input type="submit" value="Change Now!">
<br>
<input type="button" value="Reset to Defaults" onclick="window.location='admin.php?reset=true'">
</form>
</div>
</div>
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://sirlemons.exofire.net/hf/footer.php");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
echo "\n";
?>
</body>
</html>
Now, As you can see, I am using cURL to embed styling, the header and a footer. The First place i try to echo the cookie is in the header(this info may help).
EDIT: Also I used the print_r statement on the page I gave you the source for and the header. On the header, it echoes nothing except "array()" and on the page which I gave the source for, it echoes exactly what should be echoed inside that and a cookie from my PHPbb forum. Any Suggestions?
Can anyone Help me?
Thanks in Advance!
P.S. If you need any other document's code I can give you it!