Jump to content

Registered PHP Streams and HTTP


Recommended Posts

Hi everyone,

 

I figured this would be an installation question.  Please let me know if I posted this in the wrong section.  I think this has to do with the installation.  My problem is this:

 

I've installed AMP on our Solaris server.  Everything works fine, until I use file_get_contents or fopen.  Now before I go on, allow_url_fopen is enabled.  When I use file_get_contents or fopen, I get this error message:

 

Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /path/to/file.php on line 4

 

So after many spent hours of google searching, I checked the phpinfo() and noticed that "Registered PHP Streams" had the values "php, file, data, compress.zlib".  "http" was missing!  All my other php installations have http (and ftp) there, in addition to those streams previously mentioned.  My question is how do I enable the http and ftp streams (wrappers)?  Thanks for any help!!!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.