Global variables x includes
| From: | Fábio Berbert de Paulaᢩo Berbert de Paula | Date: | Sun, 25 Apr 2004 15:59:35 +0000 |
| Subject: | Global variables x includes | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-23541@lists.php.net to get a copy of this message | ||
Hi list,
I'm having trouble to migrate a Linux site to Windows. For
example, I have a include file that look like this:
CUT -----
// useronly.inc
if (!$_COOKIE['syslogin']) {
header("Location: /expired.php");
exit;
}
CUT -----
When a page includes this file, it means that the user
can navigate only if the syslogin cookie is set. I call
this page on this way:
<?
// some_test.php
include("useronly.inc");
...
?>
On Linux, it works, but on Windows (IIS + PHP4), the pages
included by "include" diretive does not undertand any
global array of variables. It can be $_COOKIE, $_SESSION,
$_SERVER and others.
What can I do to make my included files see global variables?
Thanks,
Fabio