Quote:
Originally Posted by Triky
I get this errors:
Code:
Notice: Undefined index: HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591
Notice: Undefined index: HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591
Notice: Undefined index: HTTP_REFERER in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1618
Unable to add cookies, header already sent.
File: c:\programmi\easyphp1-8\www\webcity\includes\class_core.php
Line: 1591
I've my forum located at (in EasyPHP) www/webcity/. I have my page file in www, and this is its code:
Code:
<?php
$curdir = getcwd ();
chdir('webcity');
require_once('webcity/global.php');
chdir ($curdir);
?>
<html>
<head>
<title>Web City</title>
</head>
<body>
<?php
require_once('login_inc.php');
?>
</body>
</html>
|
ETA: never mind, don't think this is the issue:
chdir('webcity');
require_once('webcity/global.php');
should be something in the format of:
chdir('/home/webc/public_html/webcity');
require_once('/home/webc/public_html/webcity/global.php');
Code:
Notice: Undefined index: HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591
Notice: Undefined index: HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591
Notice: Undefined index: HTTP_REFERER in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1618
I had this problem before. After moving the code to the very top of any codeblock should solve it.