Hola.
Gracias por ayudar. En las pruebas locales (127.0.0.1) no da error. Pero una vez que lo pruebo en el sitio web (hosting Linux) da el siguiente error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,
[email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
O sea 500 Internal Server Error.
Aclaro, solo dejo que se imprima el "Content-type: text/html\n\n". No se dode puede estar la falla ahora.
Muchas gracias por ayudar.
Luis