Re: Socket create with ssl server
| From: | Greg Bowser | Date: | Fri, 11 Apr 2008 02:05:39 +0000 |
| Subject: | Re: Socket create with ssl server | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272859@lists.php.net to get a copy of this message | ||
The sockets extension is a much "lower" level interface to sockets
than the fsockets/stream_ functions in PHP.
Unlike with the aforementioned, with the sockets extension, you can't
just expect to magically get an ssl connection by using "ssl://".
Your problem is that the sockets extension has no idea what you mean
by "ssl://"; and since "ssl://foo" is clearly not a valid domain name,
resolution fails.
Short Answer: use fsockets if you need SSL ;)