|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-13 12:18 UTC] jani@php.net
[2008-03-14 20:32 UTC] jmatthies at townleyandassociates dot com
[2008-03-17 20:56 UTC] jani@php.net
[2008-03-25 01:00 UTC] php-bugs at lists dot php dot net
[2009-07-01 14:31 UTC] seklecki at noc dot cfi dot pgh dot pa dot us
[2012-10-19 08:38 UTC] rtoelhoej at mcg-systems dot dk
[2012-10-19 09:33 UTC] rtoelhoej at mcg-systems dot dk
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 18:00:01 2025 UTC |
Description: ------------ simple php file: <?echo file_get_contents('https://www.google.co.uk/ig?hl=en'); ?> works fine when loaded in apache 2.0.58. When i run it via the cli, I get: Warning: file_get_contents(): SSL: No such file or directory in <file> Warning: file_get_contents(): Failed to enable crypto in <file> If I change it to http://, it works in apache and the cli Configure Command => './configure' '--prefix=/opt/hpws/apache/php' '--enable-soap' '--with-libxml-dir=/usr/local' '--with-openssl=/usr/local' '--with-openssl-dir=/usr/local' '--enable-ipv6' '--with-apxs2=/opt/hpws/apache/bin/apxs' '--with -unixODBC=shared,/opt/unixODBC' php -m shows the openssl module loaded. php -i shows similar output to phpinfo() through apache in regards to openssl info. Reproduce code: --------------- <?echo file_get_contents('https://www.google.co.uk/ig?hl=en'); ?> Expected result: ---------------- load the web page in question Actual result: -------------- Warning: file_get_contents(): SSL: No such file or directory in /opt/hpws/apache /htdocs/t.php on line 2 Warning: file_get_contents(): Failed to enable crypto in /opt/hpws/apache/htdocs /t.php on line 2 Warning: file_get_contents(https://www.google.co.uk/ig?hl=en): failed to open stream: Invalid argument in /opt/hpws/apache/htdocs/t.php on line 2