php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36558 search requires url_fopen from mirrors
Submitted: 2006-02-28 13:46 UTC Modified: 2006-03-01 18:57 UTC
From: henk at loke dot name Assigned:
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: linux
Private report: No CVE-ID: None
 [2006-02-28 13:46 UTC] henk at loke dot name
Description:
------------
when a search is performed with term "where" warning shows:

Warning: 
file_get_contents(http://www.php.net/ws.php?profile=local&q=where&results=15&start=0): 
failed to open stream: no suitable wrapper could be found 
in /home/ftp/pub/mirror/php/results.php on line 25
 
 Warning: Cannot modify header information - headers 
already sent by (output started 
at /home/ftp/pub/mirror/php/results.php:25) 
in /home/ftp/pub/mirror/php/include/layout.inc on line 79
 
 Warning: Cannot modify header information - headers 
already sent by (output started 
at /home/ftp/pub/mirror/php/results.php:25) 
in /home/ftp/pub/mirror/php/include/layout.inc on line 80


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-28 13:54 UTC] nlopess@php.net
which mirror are you using?
 [2006-02-28 18:22 UTC] henk at loke dot name
http://nl2.php.net
 [2006-03-01 13:22 UTC] nlopess@php.net
same on uk2.
 [2006-03-01 18:23 UTC] bacchus at camelnetwork dot com
There are a lot of mirrors this doesnt work on. Some dont have the function "file_get_contents" enabled/available(cl.php.net/bo.php.net).

hr.php.net
uk2.php.net
de.php.net
jp2.php.net
lu.php.net
nl2.php.net
no2.php.net
yu.php.net
se.php.net

It would be nice if mirrors were informed when changes like this are made.

Chris.
 [2006-03-01 18:27 UTC] goba@php.net
I thought we would redirect search queries to php.net with a query string param indicating the rewrite mirror name used for the searches. I second that it is not reasonable to require a mirror to support url fopen.
 [2006-03-01 18:28 UTC] goba@php.net
Changed summary.
 [2006-03-01 18:57 UTC] rasmus@php.net
I added curl_exec and fsockopen alternatives to file_get_contents now.  Hopefully all our mirrors can do one of those three.  Otherwise we should just do the redirect if they all fail, I guess.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 15 19:00:01 2026 UTC