HELP: Attempting to list directory using FTPS account

Hey, all! I have to find a way to list the contents of a remote FTPS account and I’m having a few issues. I have openssl enabled on my windows box and am doing the following, but I can’t for the life of me, figure out why I’m getting the following warnings:

$context = stream_context_create(array('FTP' => array('overwrite' => true), 'SSL' => array('verify_peer' => true)));

$dir = 'ftps://{user}:{pass}@{host}{port}{folder}';

if($dh = opendir($dir, $context))
	while(($file = readdir($dh)) !== false)
		echo "filename: $file : filetype: " . filetype($dir . $file) . "\

I’m getting the following warnings:

  1. [function.opendir]: SSL/TLS already set-up for this stream.
  2. [function.opendir]: failed to open dir: Unable to activate SSL mode<br /> FTP server reports 150 Here comes the directory listing.

I have it working for FTP and SFTP, but now our client wants to use FTPES as it’s faster than SFTP and more secure than FTP. Could any of you provide some guidance on this?