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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to