Hello
At the moment I have installed a php5 on window platform and have a openssl installed with php package. When I use a command phpinfo() to see the details on my server, the page loaded doesn't include the ssl or tls protocol under the "Registered Stream Socket Transports". Does anyone know how to setup php so it can include those protocol. I have to use that protocol to send email from Gmail to clients email account.
Please help.. Thank you for all genius developer
Configure php on window to include ssl or tls
Moderator: General Moderators
runhttp://de2.php.net/wrappers.http wrote:Note: HTTPS is supported starting from PHP 4.3.0, if you have compiled in support for OpenSSL.
Code: Select all
<?php echo 'ini: ', get_cfg_var('cfg_file_path'); ?>Save the file, restart apache and try again.; extension=php_openssl.dll
volka wrote:runhttp://de2.php.net/wrappers.http wrote:Note: HTTPS is supported starting from PHP 4.3.0, if you have compiled in support for OpenSSL.It shows you which php.ini is used. Open that file in a text editor and remove the semi-colon fromCode: Select all
<?php echo 'ini: ', get_cfg_var('cfg_file_path'); ?>Save the file, restart apache and try again.; extension=php_openssl.dll
Thanks for your reply
The first code gives me : C:\Program Files\PHP\php.ini , that is the file i have used to remove the semi-colon from the extension php_openssl.dll.
I compiled the ini fille with this command: php --with-openssl., but nothing happen.
/////////////////////////////////////////////////////////////////////
PHP Version 5.2.3
System Windows NT JOHN 5.1 build 2600
Build Date May 31 2007 09:36:39
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File C:\Program Files\PHP\php.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety enabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*
//////////////////////////////////////////////////////////////////////////////
That is the printout from phpinfo function. Why is the Configuration File Path set to C:/Windows not the one say loaded Configuration File.
[/quote]