
November 1st, 2002, 07:09 AM
|
|
The calm b4 the storm
|
|
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404
Time spent in forums: < 1 sec
Reputation Power: 7
|
|
|
functions problem..
hey'all
I'm in a dilly of a pickle with this one!! Any help's much appreciated!
The screnario...
I have a page where I include my "functions.php" page. Functions.php contains all my... you guessed it.. functions..!!
one such eample would be:
PHP Code:
function do_rename($path,$filename)
{
get_vars();
//rename the file
echo $success;
}
now, $success is part of another function called "get_vars()". That looks like:
PHP Code:
function get_vars()
{
$success = "<table>";
$success .= "<tr>";
//etc etc
$success .= "</table>";
}
now... why when I display the first function, do_rename, does it not display the contents of $success... cos I have called the function (get_vars) so I thought that would work!
Any ideas??!!
Cheers!
|