RE: [PHP-WIN] Cannot using session variables with fopen()

From: Date: Thu, 27 Sep 2001 13:25:09 +0000
Subject: RE: [PHP-WIN] Cannot using session variables with fopen()
Groups: php.windows 
Request: Send a blank email to php-windows+get-9577@lists.php.net to get a copy of this message
> Hi, > if i use fopen or similars commands to open a file i've see > that the session > variables included in it are not valorized. > Using fopen i've defined the absolute http path to the file, > and the file is > correctly parsed by the PHP interpreter, the only > problem is that the session variables remain set to null. > > Can someone help me? > > Thanks a lot, > > Alessio. Are you trying to execute php code that you read in with fopen() ? You should use include() or require() for this. Please read the manual on these functions at http://www.php.net/manual/en/function.include.php http://www.php.net/manual/en/function.require.php Hope this helps /Martin

« previous php.windows (#9577) next »