FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » FILE_GET_CONTENTS with SSL on XAMPP
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: FILE_GET_CONTENTS with SSL on XAMPP [message #173019 is a reply to message #173017] Thu, 17 March 2011 20:16 Go to previous messageGo to previous message
Charlie is currently offline  Charlie
Messages: 17
Registered: December 2010
Karma:
Junior Member
On Mar 17, 2:42 pm, Chuck Anderson <cycletour...@invalid.invalid>
wrote:
> Charlie wrote:
>> Hello All,
>
>> I am trying to use file_get_contents($url) under XAMPP to get the HTML
>> where $url starts with "https://ssl.companynameand it says failed
>> to open stream .  It works when $url starts with http://
>> www.domain.com.  I read to remove the # in line #LoadModule
>> ssl_module modules/mod_ssl.so in file httpd.conf but it is already
>> removed.  Here are all references to ssl in this file:
>
>> LoadModule ssl_module modules/mod_ssl.so
>> . . .
>> #<IfModule ssl_module>
>> #    LoadModule log_sql_ssl_module modules/mod_log_sql_ssl.so
>> . . .
>> # Secure (SSL/TLS) connections
>> Include conf/extra/httpd-ssl.conf
>> #
>> # Note: The following must must be present to support
>> #       starting without SSL on platforms with no /dev/random
>> equivalent
>> #       but a statically compiled-in mod_ssl.
>> #
>> <IfModule ssl_module>
>> SSLRandomSeed startup builtin
>> SSLRandomSeed connect builtin
>> </IfModule>
>
>> I know PHP programming but I don t know anything about SSL.
>
>> Thanks,
>
>> Charlie
>
> When you view phpinfo, what are the Registered PHP Streams (in the first
> block of data)?  Is https there?

Registered PHP Streams php, file, data, http, ftp, compress.zlib,
zip
No https anywhere on the page.
I hereby will you my youngest two.

> If not, you may have the same problem that I had for a long time when I
> first started using Php5.  I finally found this solution.  Copy
> libeay32.dll and ssleay32.dll from the Php folder to your apache/bin
> folder and restart Apache.

Stay tuned.

Charlie

> Look at this thread from 2008:http://groups.google.com/group/comp.lang.php/browse_thread/thread/2b2. ..
>
> --
> *****************************
>  Chuck Anderson Boulder, CO
> http://cycletourist.com
>  Turn Off, Tune Out, Drop In
> *****************************- Hide quoted text -
>
> - Show quoted text -
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Correcting user comments in the PHP manual
Next Topic: Php Modal
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 12:19:47 GMT 2024

Total time taken to generate the page: 0.04019 seconds