title: Changing from an HTTP post to an HTTPS post with PHP
body: <p>First off, I'm a complete novice as a web developer.  I have a PHP function that handles a post request for HTTP, and it works great.  I read a few places online that all I have to do to make that same function post to HTTPS is change the port I'm hitting from port 80 to port 443.  So instead of looking like this:</p>
  
  <pre><code>$fp = fsockopen($host, 80, $errno, $errstr, 30);
  </code></pre>
  
  <p>It would look like this:</p>
  
  <pre><code>$fp = fsockopen($host, 443, $errno, $errstr, 30);
  </code></pre>
  
  <p>Unfortunately, this change doesn't seem to be working.  So my questions are these:</p>
  
  <p>Is it true that all I have to change is the port number?</p>
  
  <p>If there is more to do, than what is it I still need to do?</p>
  
  <p>Please try to keep things in as simple terms as possible, since I am the first to admit I'm very new to this kind of stuff.</p>
  
  <p>Thanks a ton everyone.</p>