public function findTempSafeInstallPath($sInstallPath)
	{
		try
		{
			$sTemp = $this->appendTempExtension($sInstallPath);

			while(file_exists($sTemp))
			{
				$sTemp = $this->appendTempExtension($sTemp);
			}
		}
		catch(Exception $e)
		{
			throw new Exception("No available temp file found for: $sInstallPath", 0, $e);
		}

		return $sTemp;
	}
public function findTempSafeInstallPath($sInstallPath)
	{
		try
		{
			$sTemp = $this->appendTempExtension($sInstallPath);

			while(file_exists($sTemp))
			{
				$sTemp = $this->appendTempExtension($sTemp);
			}
		}
		catch(Exception $e)
		{
			throw new Exception("No available temp file found for: $sInstallPath", 0, $e);
		}

		return $sTemp;
	}
public function findTempSafeInstallPath ( $ sInstallPath ) { try { $ sTemp = $ this -> appendTempExtension ( $ sInstallPath ) ; while ( file_exists ( $ sTemp ) ) { $ sTemp = $ this -> appendTempExtension ( $ sTemp ) ; } } catch ( Exception $ e ) { throw new Exception ( "No available temp file found for: $sInstallPath" , 0 , $ e ) ; } return $ sTemp ; }
Find an unused temporary safe install path

@param string $sInstallPath The path where we really want to install this file
@return string A temp filename in the same directory as $sInstallPath
Find an unused temporary safe install path