http_get_var and isset() not working with script generated includes.

From: Date: Thu, 14 Nov 2002 20:55:54 +0000
Subject: http_get_var and isset() not working with script generated includes.
Groups: php.general 
Request: Send a blank email to php-general+get-124975@lists.php.net to get a copy of this message
I wrote a bug report but dereck@php.net bogusified my report without the least bit of information. My script uses multiple includes and the file names all have the same syntax. So instead of writing each individual include, I created an array which contains all the filenames function LoadSections($sections) { foreach ($sections as $key => $value) { include "mod.section." . $value . ".php"; } } instead of writing include file_x; include file_y; and so on All the files load well except that I cannot access HTTP_GET_VARS and the isset() function always return false (when they are inside the included files). NB My includes work fine when loaded individually

« previous php.general (#124975) next »