Hi,
I am trying to create a photo galery for my site.
However I am getting the following error and I really can't work out why. Can anyone see what I am missing?
Parse error: syntax error, unexpected T_VARIABLE in /home/users/uks53122/html/sportsmatesreunited.co.uk/gallery/class.photogallery.php on line 25
This is the section of code that seems to be creating the code. The line in red is line 25.
$this->variable
// Display all categories to choose from
$path = $this->_rt;
$d = @dir($path);
if(!$d){
// If we can't open the directory, let's tell the user
// something is wrong.
$this->throw_error('Fatal Error', 'The directory
[ <i><span style="color: #999;">'.$path.'</span></i> ]
could not be opened. Please check the path and try again.',
$php_errormsg, $this->dbg);
}
else{
while(FALSE !== ($f = $d->read())){
// While we are reading documents from within the directory
if($f != '.' && $f != '..'){
// If the currently read file is not "this directory" or "Up One Level"
if(is_dir($path.$f)){
// Since we're dealing with categories, we only want directories
// since the directory name will be categories
$this->lst[] = $f;
}
}
}
$this->gen_crumbs();
$this->gen_page();
}
Any help would be greatly appriciated.
Thanks
Neil