php http wrapper

2 posts / 0 new
Last post
#1 Mon, 2014-01-20 19:56
mattas
  • mattas's picture
  • Offline
  • Last seen: 4 years 2 months ago
  • Joined: 2014-01-20

I'm using lighttpd & php, I have a user that has a php script of the form:

$lines = file( 'http://www.example.com');

In my /etc/php/php.ini, I have the following default value unchanged:
allow_url_fopen = On

Php is working in general other than this. And this works by default on other distros.

But php gives this error:
>>> Warning: file(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /var/www/html/test1.php on line 21 Warning: file(http://www.example.com): failed to open stream:

Is there a php add-on package that enables this? Or is this compiled out of the php on alpinelinux on purpose and I need to recompile?

Any help appreciated.

Wed, 2014-01-22 16:45
clandmeter
  • clandmeter's picture
  • Offline
  • Last seen: 1 month 2 weeks ago
  • Joined: 2011-05-05

Are you sure PHP is working fine? does a test file with phpinfo(); work?

Log in or register to post comments