Sample code for 30+ languages & platforms
PHP

Socket/SSL/TLS Examples for Chilkat2 PHP