PHP 5 Unable to Open HTTP Request Stream with fopen or fsockopen Functions PHP 5 não foi possível abrir a solicitação HTTP Stream fopen ou fsockopen Funções

With Apache/2.xx or Apache/2.2.x webserver, with PHP5 as the scripting module, a HTTP communication error may occur within the PHP scripts that are parsing and running via the web server. Com Apache/2.xx ou Apache/2.2.x webserver, com PHP5 como a scripting módulo, uma comunicação HTTP erro pode ocorrer dentro do PHP scripts que são analisar e executar através do servidor web.

The errors that generated by PHP include: Os erros que geraram a PHP incluem:

PHP Warning: fopen(http://www.example.com): failed to open stream: HTTP request failed! PHP Warning: fopen (http://www.example.com): Falha ao abrir stream: HTTP pedido falhou!
fsockopen(): unable to connect to … fsockopen (): incapaz de se conectar a…
file_get_contents(): failed to open stream: HTTP request failed! file_get_contents (): Falha ao abrir stream: HTTP pedido falhou!
PHP Warning: main(): Failed opening ‘http://www.example.com/index.html’ for inclusion … PHP Warning: main (): Falha na abertura dos http://www.example.com/index.html "para a inclusão…
PHP Warning: include(/usr/local/index.php): failed to open stream: No such file or directory in … PHP Warning: incluir (/ usr / local / index.php): Falha ao abrir stream: Arquivo ou diretório não encontrado em…

To resolve the problem, ensure that allow_url_fopen is enabled in PHP.INI configuration file. Para resolver o problema, garantir que allow_url_fopen está ativado no php.ini arquivo de configuração. The line should look like this: A linha deve ser semelhante a este:

allow_url_fopen = On Em allow_url_fopen =

Note: Depending on your system OS and configuration, the PHP.INI is located at various varied location, such as in Apache bin directory for Windows system or /usr/local/etc in FreeBSD Apache installation, if you don’t specify or point to PHP.INI in another directory. Nota: Dependendo do seu sistema OS e configuração, o php.ini está localizado em vários variado local, tal como o Apache no diretório bin para o sistema Windows ou / usr / local / etc no FreeBSD Apache instalação, se você não especificar ou ponto a php.ini em outro diretório.

If the error still happen and the PHP scripts still unable to connect to remote external servers and thus unable to download updates or retrieve files, check the user_agent setting in PHP.ini. Se o erro continuar a acontecer e PHP scripts ainda incapaz de se conectar a servidores remotos externos e, portanto, incapaz de transferir actualizações ou recuperar arquivos, verifique a configuração do php.ini user_agent.

By default php.ini set the user_agent to “PHP” which signifies that it’s the script that try to access the web server. Por padrão php.ini user_agent para definir o "PHP", que significa que ele é o script que tentam acessar o servidor web. Some web servers will refuse and don’t allow script to access and receive the date from the server. Alguns servidores da Web irá recusar e não permitir que o script para acessar e receber a data a partir do servidor. So, by setting the user_agent to that of a web browser, PHP will let the web server know which kind of web browser will receive the date, and thus able to open the HTTP connection stream. Assim, através da fixação das user_agent ao de um navegador da Web, o PHP deixará o servidor web saber que tipo de navegador irá receber a data e, portanto, capaz de abrir a conexão HTTP riacho.

The user_agent can be set to any kind of browser strings, for example of Internet Explorer: O user_agent pode ser configurado para qualquer tipo de navegador strings, por exemplo, do Internet Explorer:

user_agent=”Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)” user_agent = "Mozilla/4.0 (compatible; MSIE 6,0; Windows NT 5.0)"

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Esta é uma página traduzida máquina que é fornecida "como está" sem garantia. Machine translation may be difficult to understand. A tradução automática pode ser difícil de compreender. Please refer to Por favor, consulte a original English article Inglês original article whenever possible. sempre que possível.

Share and contribute or get technical support and help at Compartilhe e contribuir ou obter suporte técnico e ajudar a My Digital Life Forums Minha vida digital Fóruns .



Leave a Reply Deixe uma resposta

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Você pode usar estas tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Subscreva sem comentar


Custom Search

New Articles Novos Artigos

Incoming Search Terms for the Article Incoming Termos de pesquisa para o artigo

failed to open stream: HTTP request failed! Falha ao abrir stream: HTTP pedido falhou! - -- failed to open stream: HTTP request failed Falha ao abrir stream: HTTP pedido falhou - -- fsockopen php.ini fsockopen php.ini - -- enable fsockopen permitir fsockopen - -- file_get_contents failed to open stream file_get_contents não conseguiu abrir o fluxo - -- php http request PHP solicitação HTTP - -- failed to open stream: HTTP request failed! Falha ao abrir stream: HTTP pedido falhou! - -- file_get_contents php.ini file_get_contents php.ini - -- how to enable fsockopen como ativar fsockopen - -- fsockopen php fsockopen PHP - -- php.ini fsockopen php.ini fsockopen - -- fsockopen enable fsockopen ativar - -- fsockopen PHP5 fsockopen PHP5 - -- php httprequest PHP httprequest - -- file_get_contents failed to open stream: HTTP request failed! file_get_contents não conseguiu abrir stream: HTTP pedido falhou! - -- php5 fopen PHP5 fopen - -- fopen http request failed fopen solicitação HTTP falhou - -- php enable fsockopen PHP permitir fsockopen - -- php open stream PHP abrir o fluxo - -- php.ini fsock php.ini fsock - -- httprequest php httprequest PHP - -- fopen php.ini fopen php.ini - -- failed to open stream: HTTP request failed! Falha ao abrir stream: HTTP pedido falhou! - -- failed to open stream HTTP request failed Falha ao abrir o fluxo solicitação HTTP falhou - -- "failed to open stream: HTTP request failed" "Falha ao abrir stream: HTTP pedido falhou" - -- failed to open stream: HTTP request failed! Falha ao abrir stream: HTTP pedido falhou! in em - -- fopen failed to open stream: HTTP request failed! fopen não conseguiu abrir stream: HTTP pedido falhou! - -- fsockopen+php.ini fsockopen + php.ini - -- fopen failed to open stream HTTP request failed fopen não conseguiu abrir o fluxo solicitação HTTP falhou - -- fsockopen php ini fsockopen PHP INI - -- php HTTP request failed PHP solicitação HTTP falhou - -- fsockopen() enable fsockopen () permitem - -- fsockopen in php fsockopen em PHP - -- failed to open stream file_get_contents Falha ao abrir o fluxo file_get_contents - -- php5 fsockopen PHP5 fsockopen - -- "failed to open stream: HTTP request failed!" "Falha ao abrir stream: HTTP pedido falhou!" - -- PHP open http stream PHP aberto http stream - -- fopen failed to open stream: HTTP request failed fopen não conseguiu abrir stream: HTTP pedido falhou - -- php open http PHP abrir HTTP - -- php file_get_contents HTTP request failed PHP file_get_contents solicitação HTTP falhou - -- php fsockopen site index PHP fsockopen site índice - -- php.ini fopen php.ini fopen - -- file_get_contents HTTP request failed! file_get_contents solicitação HTTP falhou! - -- php [function.fopen]: failed to open stream: HTTP request failed! php [function.fopen]: Falha ao abrir stream: HTTP pedido falhou! - -- file_get_contents failed open stream file_get_contents falhou abrir o fluxo - -- enable file_get_contents permitir file_get_contents - -- fsockopen php http fsockopen PHP HTTP - -- allow_url_fopen fsockopen allow_url_fopen fsockopen - -- enable 'fsockopen' ativar 'fsockopen' - -- fopen ailed to open stream: HTTP request failed! fopen ailed para abrir stream: HTTP pedido falhou! - --