PHP 5 Unable to Open HTTP Request Stream with fopen or fsockopen Functions PHP 5 No se puede abrir la solicitud HTTP Stream con fopen o fsockopen Funciones

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. Con Apache/2.xx o Apache/2.2.x web, con PHP5 como el módulo de secuencias de comandos, una comunicación HTTP error puede ocurrir dentro de los scripts PHP que sean y analizar el funcionamiento a través del servidor web.

The errors that generated by PHP include: Los errores que generan por PHP son:

PHP Warning: fopen(http://www.example.com): failed to open stream: HTTP request failed! PHP Warning: fopen (http://www.example.com): no se puede abrir stream: HTTP solicitud no!
fsockopen(): unable to connect to … fsockopen (): no puedo conectarme con…
file_get_contents(): failed to open stream: HTTP request failed! file_get_contents (): no se puede abrir stream: HTTP solicitud no!
PHP Warning: main(): Failed opening ‘http://www.example.com/index.html’ for inclusion … PHP Warning: main (): Error de apertura "http://www.example.com/index.html" para su inclusión…
PHP Warning: include(/usr/local/index.php): failed to open stream: No such file or directory in … PHP Warning: include (/ usr / local / index.php): no se puede abrir stream: No existe el archivo o directorio en…

To resolve the problem, ensure that allow_url_fopen is enabled in PHP.INI configuration file. Para resolver el problema, asegúrese de que allow_url_fopen esté habilitado en php.ini archivo de configuración. The line should look like this: La línea debe ser similar a este:

allow_url_fopen = On allow_url_fopen = A

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: Dependiendo de su sistema OS y configuración, el php.ini está ubicado en diversos variada ubicación, como en Apache para directorio bin del sistema de Windows o / usr / local / etc en FreeBSD instalación de Apache, si no se especifica o punto a php.ini en otro directorio.

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. Si el error ocurra y el scripts PHP sigue sin poder conectarse a servidores remotos externos y, por tanto, no se puede descargar actualizaciones o recuperar los ficheros, comprobar los user_agent puesta en php.ini.

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 defecto, php.ini user_agent el conjunto de "PHP" lo que significa que es el guión que intentan acceder al servidor web. Some web servers will refuse and don’t allow script to access and receive the date from the server. Algunos servidores web se negará y no permiten el acceso a la secuencia de comandos y recibir la fecha del 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. Así, mediante el establecimiento de la user_agent a la de un navegador web, PHP permitirá que el servidor web sabe que tipo de navegador web recibirá la fecha y, por tanto, capaz de abrir el flujo de conexión HTTP.

The user_agent can be set to any kind of browser strings, for example of Internet Explorer: El user_agent se puede ajustar a cualquier tipo de navegador de cadenas, por ejemplo de 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: Se trata de una máquina que traduzca la página se proporciona "tal cual" sin garantía. Machine translation may be difficult to understand. La traducción automática puede resultar difícil de entender. Please refer to Por favor, consulte original English article artículo original Inglés whenever possible. siempre que sea posible.

Share and contribute or get technical support and help at Compartir y contribuir o recibir apoyo técnico y ayudar a My Digital Life Forums Mi vida digital Foros .



Leave a Reply Deja Responder

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> Puede usar estos tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Suscribirse sin comentar


Custom Search

New Articles Nuevos Artículos

Incoming Search Terms for the Article Próximos Términos de búsqueda para el artículo

failed to open stream: HTTP request failed! no para abrir stream: HTTP solicitud no! - -- failed to open stream: HTTP request failed no para abrir stream: HTTP solicitud no - -- fsockopen php.ini fsockopen php.ini - -- enable fsockopen permitir fsockopen - -- file_get_contents failed to open stream file_get_contents no abrir la secuencia - -- php http request PHP petición HTTP - -- failed to open stream: HTTP request failed! no para abrir stream: HTTP solicitud no! - -- file_get_contents php.ini file_get_contents php.ini - -- how to enable fsockopen cómo activar fsockopen - -- fsockopen php fsockopen PHP - -- php.ini fsockopen php.ini fsockopen - -- fsockopen PHP5 fsockopen PHP5 - -- fsockopen enable fsockopen permitir - -- php httprequest PHP httprequest - -- file_get_contents failed to open stream: HTTP request failed! file_get_contents no abrir la secuencia: solicitud HTTP no! - -- php5 fopen PHP5 fopen - -- fopen http request failed fopen solicitud HTTP no - -- php enable fsockopen PHP permiten fsockopen - -- php open stream PHP abrir la secuencia - -- php.ini fsock php.ini fsock - -- httprequest php httprequest PHP - -- fopen php.ini fopen php.ini - -- failed to open stream: HTTP request failed! no para abrir stream: HTTP solicitud no! - -- failed to open stream HTTP request failed no abrir la secuencia solicitud HTTP no - -- "failed to open stream: HTTP request failed" "fallo al abrir stream: HTTP solicitud fracasado" - -- fopen failed to open stream: HTTP request failed! fopen no abrir la secuencia: solicitud HTTP no! - -- fsockopen+php.ini fsockopen + php.ini - -- fopen failed to open stream HTTP request failed fopen no abrir la secuencia solicitud HTTP no - -- fsockopen php ini fsockopen PHP INI - -- php HTTP request failed PHP solicitud HTTP no - -- fsockopen() enable fsockopen () permiten - -- fsockopen in php fsockopen en PHP - -- failed to open stream: HTTP request failed! no para abrir stream: HTTP solicitud no! in en - -- failed to open stream file_get_contents no abrir la secuencia file_get_contents - -- php5 fsockopen PHP5 fsockopen - -- PHP open http stream PHP abierto HTTP stream - -- fopen failed to open stream: HTTP request failed fopen no abrir la secuencia: solicitud HTTP no - -- php open http PHP abierto HTTP - -- php fsockopen site index PHP fsockopen del índice de sitio - -- php.ini fopen php.ini fopen - -- file_get_contents HTTP request failed! file_get_contents solicitud HTTP no! - -- php [function.fopen]: failed to open stream: HTTP request failed! php [function.fopen]: no se puede abrir stream: HTTP solicitud no! - -- file_get_contents failed open stream file_get_contents no abrir la secuencia - -- enable file_get_contents permitir file_get_contents - -- fsockopen php http fsockopen PHP HTTP - -- "failed to open stream: HTTP request failed!" "fallo al abrir stream: HTTP solicitud no!" - -- allow_url_fopen fsockopen allow_url_fopen fsockopen - -- enable 'fsockopen' permitir 'fsockopen' - -- fopen ailed to open stream: HTTP request failed! ailed fopen para abrir stream: HTTP solicitud no! - -- enable fsockopen in php permitir fsockopen en PHP - --