php does not have native support for opening up a secure connection... you must use some external souce to do that for you
the [man]curl[/man]_ functions give you from php the ability to use the cUrl library which does the ssl for you, that is the easiest way i can think of to do ssl