Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to find the wrapper "https"

Status
Not open for further replies.

JamesGMills

Programmer
Aug 15, 2005
157
GB
Message : file_get_contents() [function.file-get-contents]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?


I am trying to use file_get_contents() over an SSL connection and it would seem its causing some problems!!

Can anyone shed any light on this?

Thanks in advance,

James

------------------------
 
Usually to use PHP to read or write over an SSL connection, it requires that you re-compile the executable from source and enable OpenSSL support. Obviously, you'll also need the the libraries for OpenSSL as well.
 
Hi, thanks for your reply... I am getting the web server people to recompile as we speak and make sure that everything for OpenSSL was ticked properly because this has already been done once :-S

So I am guessing that I should still be able to use fle_get_contents() etc over SSL and there must be a problem somewhere?

James


------------------------
 
It looks like OpenSSL didn't compile properly/at all before - the phpinfo suggested it was there, but it wasn't enabled.

All sorted now,

Thanks

------------------------
 
Great it works, but the current security reccomendations are to not allow http as a name in the file system commands (for security reasons).
Have a look at curl which is probably safer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top