note 91900 added to function.include
| From: | ironsky at yahoo dot com | Date: | Wed, 01 Jul 2009 05:39:32 +0000 |
| Subject: | note 91900 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157743@lists.php.net to get a copy of this message | ||
when i make function like
<?
function cacheConfig()
{
GLOBAL $DB,$PATH_CACHE;
$file_path = $PATH_CACHE.DS.'DB_Cache_Config.php';
if(!file_exists($file_path))
{
$file_data = "<?php \n\n // Cache Config Settings \n\n";
$INFO = $DB->Query("SELECT * FROM #_config");
while($CONFIG = $DB->FetchArray($INFO))
{
$varName = explode(".",$CONFIG['varName']);
$file_data .= "\$Config['$varName[0]']['$varName[1]'] =
\"$CONFIG[Value]\"; \n";
}
$file_data .= " \n\n ?>";
SaveIt($file_data,$file_path);
}
include($file_path);
}
?>
i execute function in "index.php"
and then i call var from "DB_Cache_Config.php"
it say that the var didn't exists
what i should do to make it right
----
Server IP: 208.69.120.35
Probable Submitter: 74.63.75.154
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- https://master.php.net/note/edit/91900
Del: integrated -- https://master.php.net/note/delete/91900/integrated
Del: useless -- https://master.php.net/note/delete/91900/useless
Del: bad code -- https://master.php.net/note/delete/91900/bad+code
Del: spam -- https://master.php.net/note/delete/91900/spam
Del: non-english -- https://master.php.net/note/delete/91900/non-english
Del: in docs -- https://master.php.net/note/delete/91900/in+docs
Del: other reasons-- https://master.php.net/note/delete/91900
Reject -- https://master.php.net/note/reject/91900
Search -- https://master.php.net/manage/user-notes.php