View Single Post
Old 06-03-2008, 05:44 PM   #4 (permalink)
SpYkE112
The Contributor
 
Join Date: May 2008
Location: Denmark
Posts: 70
Thanks: 3
SpYkE112 is on a distinguished road
Default

why do you use the function before it is declared?
And if that is a complete copy / paste then you need a closing bracket "}" for the function..

But as Wildhoney says, that is the way i would prefer it to be done, but be aware that is you use some sort of external input in the script, like a $_GET or $_POST, it could evolve into some sort of security breach, but as it is now it is okay :)

And by the way, you don't have to declare variables twice? I refer to these:
PHP Code:
...
    
$dir_name $cur_dir;
...
    
$filename $cur_file
... 
SpYkE112 is offline  
Reply With Quote