Have you followed all of the instructions in the PHP manual ([man]openssl[/man])? Especially note the bit about PHP being in your system's PATH environment variable.
Also, did you uncomment the extension line for php_openssl.dll in your php.ini file? If so, where is your php.ini file and does phpinfo() show the correct path?