function generateCharacter ( ) {

$possible = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" ;

$char = substr ( $possible , mt_rand ( 0 , strlen ( $possible ) - 1 ) , 1 ) ;

return $char ;

}

function generateGUID ( ) {

$GUID = $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> g

$GUID = $GUID . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . "-" ;

$GUID = $GUID . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . "-" ;

$GUID = $GUID . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . "-" ;

$GUID = $GUID . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $this -> generateCharacter ( ) . $

return $GUID ;