i have an example that looks like this:
index.php
$variable = "something for the beggining";
// now i include file (but i cannot use the INCLUDE function)...
implode ('', file ('FILE.php));
FILE.php
// that doesn't work!!!
echo $variable;
is there any way to use the variable created in index.php in FILE.php without setting a cookie, creating session or moving it into FILE.php via address (FILE.php?variable=$variable)???
it would be also much better if i could use INCLUDE function, the only thing is, i need that file to return a string, not in the way include() function does.
any ideas? please help...
-thank you all