Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XAMPP And file_get_contents("https://...")

Tags:

php

xampp

I've tried running the next code on xampp :

$url2="https://....";
$content=file_get_contents($url2);

and that's the error I've got :

Warning: file_get_contents() [function.file-get-contents]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in C:\xampp\htdocs\whoTalk\sys\user.php on line 38

What do I have to do in order to be able to get contents of a url which a https:// wrapper?

Thanks in advance


1 Answers

In your php.ini search for the following:

extension=php_openssl.dll

If it is there and commented, uncomment it. If it is not there, add it :-)

like image 183
Rawkode Avatar answered Mar 07 '26 05:03

Rawkode



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!