title: how to enable extension (openssl,...) without access to php.ini?
body: <p>I'm using codeigniter for sending mail but i have problems with my shared host, because I can't access php.ini so i have these errors:</p>
  
  <pre><code>A PHP Error was encountered
  Severity: Warning
  Message: fsockopen(): unable to connect to ssl://smtp.googlemail.com:465
  (Connection timed out)
  Message: fwrite() expects parameter 1 to be resource, boolean given
  Message: fgets() expects parameter 1 to be resource, boolean given
  </code></pre>
  
  <p>I used .htaccess too with this content:</p>
  
  <pre><code>php_extension openssl.so
  </code></pre>
  
  <p>But I got this error:</p>
  
  <blockquote>
    <p>Internal Server Error</p>
    
    <p>The server encountered an internal error or misconfiguration and was unable
        to complete your request.
        More information about this error may be available in the server error log.
        Additionally, a 500 Internal Server Error error was encountered while trying 
        to use an ErrorDocument to handle the request.</p>
  </blockquote>
  
  <p>I've also read so many topics about this problem but none of them solved mine. 
  Now , I don't know what i should do!</p>
  
  <p><strong>Update :</strong>
  I found something in my host , I've been more confused! I wrote this:</p>
  
  <pre><code>if (extension_loaded('openssl')) 
  {
      echo "enabled";     
  }
  die();
  </code></pre>
  
  <p>So why do I receive these errors:</p>
  
  <pre><code>A PHP Error was encountered
  Severity: Warning
  Message: fsockopen(): unable to connect to ssl://smtp.googlemail.com:465
  (Connection timed out)
  Message: fwrite() expects parameter 1 to be resource, boolean given
  Message: fgets() expects parameter 1 to be resource, boolean given
  </code></pre>