|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-18 13:59 UTC] tony2001@php.net
[2006-08-26 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
Description: ------------ I have installed in my develop machine the new version 5.1.5, but when I try to view a document storage in my oracle database send me the next message: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are But in my production server using the version PHP Version 5.2.0RC2-dev I can see all the document. Reproduce code: --------------- // Obtiene el identificador del documento que se desea desplegar $documentoview = $_REQUEST['documentoview']; // Actualiza el contador de consultas y verifica que el documento exista $consultas = "SELECT consultas FROM INTRA_DOCUMENTOS WHERE IDDOCUMENTO = ".$documentoview ; $consultados = trs_consulta($consultas,$conn); $consulta = oci_fetch_array($consultados,OCI_RETURN_NULLS); if (!$consulta){ // Devuelve a la pantalla de contenido si el documento buscado no existe header("Location: ../contenido.php",false); /* Redirigir al navegador */ } $valor = $consulta[0]+1 ; $actualiza = "update INTRA_DOCUMENTOS set consultas= consultas+1 where IDDOCUMENTO = ".$documentoview; trs_consulta($actualiza,$conn); // Inicia el despliegue del documento $documentoview = $_REQUEST['documentoview']; $query = 'SELECT DOCUMENTO,CONTENTTYPE FROM INTRA_DOCUMENTOS WHERE IDDOCUMENTO = :MYBLOBID'; $stmt = oci_parse ($conn, $query); oci_bind_by_name($stmt, ':MYBLOBID', $documentoview); oci_execute($stmt, OCI_DEFAULT); $arr = oci_fetch_assoc($stmt); $result = $arr['DOCUMENTO']->load(); header("Content-type:".$arr['CONTENTTYPE']); echo $result; oci_free_statement($stmt); oci_close($conn);