markettwp Posted June 23, 2009 Report Share Posted June 23, 2009 I'm trying to use the php function file(), which can take a url attribute ie: file('https//www.somesite.com/somefile.txt') I want to read a text file from an external, secure site. I get this error message and cannot figure out how to add the wrapper for https: Message: file() [function.file]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? I do confirm that the wrapper "https" is NOT enabled with my install of 3.5 Apollo.My php.ini contains this switch: allow_url_fopen = On How do I enable the https wrapper?ThanksDave Quote UniformServer 5.x, CodeIgniter, Gimp. What else could anyone want? Link to comment Share on other sites More sharing options...
Ric Posted June 23, 2009 Report Share Posted June 23, 2009 The quick answer is to upgrade to 4.*-Mona However if you still wish to use 3.5 no problem: Edit: UniServer\usr\local\php\php.ini Located this line: ;extension=php_openssl.dllRemove the semi-colon to give : extension=php_openssl.dll Now the painful part, download the full version of PHP 5.2.3 From: http://www.php.net/releases/ (windows binary) Locate php-5.2.3-Win32\ext\php_openssl.dll And copy to folder: Uniform Server\udrive\usr\local\php\extensions That should work All the bestRic Quote Link to comment Share on other sites More sharing options...
markettwp Posted June 24, 2009 Author Report Share Posted June 24, 2009 Thanks ric, Is there some reason I can't just use php_openssl.dll from the 4.3 Mona download? Different php version perhaps?No problem it was only 9.4 MBThanks again Now the painful part, download the full version of PHP 5.2.3 From: http://www.php.net/releases/ (windows binary) Locate php-5.2.3-Win32\ext\php_openssl.dll And copy to folder: Uniform Server\udrive\usr\local\php\extensions That should work All the bestRic Quote UniformServer 5.x, CodeIgniter, Gimp. What else could anyone want? Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.