title: PHP http_get vs fsockopen to HTTPS server?
body: <p>In PHP, what are the biggest considerations when choosing between using <strong>http_get</strong>("https://...") and a sockets loop with <strong>fsockopen</strong>("ssl://..."), <strong>fputs</strong>() and <strong>fread</strong>()? </p>
  
  <p>I’ve seen a couple of implementations lately that use the latter. Is that just old legacy code or is there some good reason for it?</p>
  
  <p>Thanks.</p>