Jump to content
The Uniform Server Community
Sign in to follow this  
markettwp

https wrapper with 3.5 Apollo

Recommended Posts

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?

Thanks

Dave

Share this post


Link to post
Share on other sites

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.dll

Remove the semi-colon to give : extension=php_openssl.dll

 

Now the painful part, download the full version of PHP 5.2.3 :blink:

 

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 best

Ric ;)

Share this post


Link to post
Share on other sites

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 MB

Thanks again

 

Now the painful part, download the full version of PHP 5.2.3 :blink:

 

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 best

Ric ;)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...