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 #173030 is a reply to message #173029] Fri, 18 March 2011 06:56 Go to previous message
Chuck Anderson is currently offline  Chuck Anderson
Messages: 63
Registered: September 2010
Karma:
Member
Chuck Anderson wrote:
> Jerry Stuckle wrote:
>> On 3/17/2011 5:34 PM, Charlie wrote:
>>> 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?
>>>>
>>>> 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.
>>>
>>> They are both in both places with the same # of bytes and date/time:
>>> 1069126 at 1/17/08-4:57P and 200774 at 1/17/08-4:59P.
>>>
>>> Does that mean it's the same file - the fact that it's there? (I
>>> didn't try it.)
>>>
>>> (I may want my children back.)
>>>
>>> Charlie
>>>
>>>> Look at this thread from
>>>> 2008:http://groups.google.com/group/comp.lang.php/browse_thread/thread/2b2. ..
>>>>
>>>>
>>
>> Probably the same file, but they don't have to necessarily be in your
>> Apache directory - it all depends on how your system is set up.
>>
>> Where they DO need to be is in a directory listed in your PATH
>> environment variable. I normally add a directory at the beginning of
>> the PATH for anything I want to add on my own - like these files.
>>
>
>

[Mannn .... I'm never going to get used to this laptop and touch pad ...
grrrr. Sent this by accident before I was done].

I thought the same thing - but I had already tried copying them into my
system32 folder (which is in my PATH variable) with no luck. I tried
all kinds of things and then one day I found the thread I referenced
above. As soon as I copied the ones that came with Php into the
apache/bin folder I had ftps and https as registered streams.

(Perhaps I had fumbled somehow in previous attempts, because Jerry's
comment should be correct. Just be sure that they are the ones that
came with the Php version you are using.)

Unfortunately, if both versions of your files have the same number of
bytes and the same date they probably are already the same files.

It sure wouldn't hurt to try, though. I wish that was the fix for you.
It was very frustrating for me when I was dealing with this problem and
nothing I tried would fix it.




--
*****************************
Chuck Anderson • Boulder, CO
http://cycletourist.com
Turn Off, Tune Out, Drop In
*****************************
[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: Sat Nov 23 02:11:08 GMT 2024

Total time taken to generate the page: 0.04199 seconds