In PHP if it says there is an unexpected T_<something> on a line the error is usually in the lines ABOVE that line, not ON the line so.

ok heres the code..

if ($info!="rwxrwxrwx")
		return false;
	else
		return true;

}//verify_folder_permissions

function clean_folder($folder,$total){

ok heres the code..

if ($info!="rwxrwxrwx")
		return false;
	else
		return true;

}//verify_folder_permissions

function clean_folder($folder,$total){

I Think this code is missing some brackets {}.
Try This

if ($info!="rwxrwxrwx"){
		return false;
	}else{
		return true;

}//verify_folder_permissions

function clean_folder($folder,$total){
This article has been dead for over six months. Start a new discussion instead.