M.W.S.
01-19-2008, 08:39 PM
Hello
I'm building a news script and I got problem:
I have code similar to this:
index.php
blablabla
<?php
require('includes/settings.php');
news();
blablablabla
?>
in settings.php I put some variables and include 2 files...
and variables aren't set inside the function, for example, i have in news() such piece of code:
echo $base;
it won't output what it should do and when I check it with isset(), it says, that var isn't set, but when I put echo $base outside the function, it works with no problem.
help! :(
I'm building a news script and I got problem:
I have code similar to this:
index.php
blablabla
<?php
require('includes/settings.php');
news();
blablablabla
?>
in settings.php I put some variables and include 2 files...
and variables aren't set inside the function, for example, i have in news() such piece of code:
echo $base;
it won't output what it should do and when I check it with isset(), it says, that var isn't set, but when I put echo $base outside the function, it works with no problem.
help! :(