{"id":60,"date":"2011-10-29T10:16:57","date_gmt":"2011-10-29T08:16:57","guid":{"rendered":"http:\/\/en.nisi.ro\/blog\/?p=60"},"modified":"2017-03-06T20:07:28","modified_gmt":"2017-03-06T18:07:28","slug":"unable-find-wrapper-https","status":"publish","type":"post","link":"https:\/\/en.nisi.ro\/blog\/development\/php\/unable-find-wrapper-https\/","title":{"rendered":"Unable to find the wrapper &#8220;https&#8221;"},"content":{"rendered":"<p>Today I had to put a simple script on one of my hosting server where a &#8220;<strong><a href=\"http:\/\/developers.facebook.com\/docs\/guides\/web\/#login\" target=\"_blank\">Facebook Login<\/a><\/strong>&#8221; button was available for login. However when I had to run it I encountered the following error:<\/p>\n<p><em><strong>Warning:<\/strong> file_get_contents() [function.file-get-contents]: Unable to find the wrapper &#8220;https&#8221; &#8211; did you forget to enable it when you configured PHP?<\/em><\/p>\n<p>This was because the URL served to <strong><em>file_get_contents<\/em><\/strong> start with http:\/\/ &#8230;.<a rel=\"dofollow\" href=\"https:\/\/plnemovie.com\/es\/movies\/25465\/Rings-2017.html\" title=\"Watch movie online Rings (2017)\" style=\"font-size:1px\">Watch movie online Rings (2017)<\/a><\/p>\n<p>If you have the same problem there are 2 steps to resolve it:<\/p>\n<ol>\n<li>apache module ssl_module need to be avilble<\/li>\n<li>php extension php_openssl need to be activated too<\/li>\n<\/ol>\n<p>Server restart and you are good to go.<\/p>\n<p>To test from PHP is extension php_openssl is active just paste this code:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\r\nif (extension_loaded('php_openssl'))\r\n   echo('php_openssl ok');\r\nelse\r\n   echo('php_openssl off');\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Today I had to put a simple script on one of my hosting server where a &#8220;Facebook Login&#8221; button was available for login. However when I had to run it I encountered the following error: Warning: file_get_contents() [function.file-get-contents]: Unable to find the wrapper &#8220;https&#8221; &#8211; did you forget to enable it when you configured PHP? [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[69,70,71,72,73,74,75],"class_list":["post-60","post","type-post","status-publish","format-standard","hentry","category-php","tag-apache","tag-apache-module","tag-extension","tag-facebook-login","tag-php-2","tag-php_openssl","tag-ssl_module"],"_links":{"self":[{"href":"https:\/\/en.nisi.ro\/blog\/wp-json\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/en.nisi.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/en.nisi.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/en.nisi.ro\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/en.nisi.ro\/blog\/wp-json\/wp\/v2\/comments?post=60"}],"version-history":[{"count":3,"href":"https:\/\/en.nisi.ro\/blog\/wp-json\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":138,"href":"https:\/\/en.nisi.ro\/blog\/wp-json\/wp\/v2\/posts\/60\/revisions\/138"}],"wp:attachment":[{"href":"https:\/\/en.nisi.ro\/blog\/wp-json\/wp\/v2\/media?parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/en.nisi.ro\/blog\/wp-json\/wp\/v2\/categories?post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/en.nisi.ro\/blog\/wp-json\/wp\/v2\/tags?post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}