不会吧. <? $conn 前面有什么输出或空格吗?导致 Header("Content-type: image/gif"); 失效了

解决方案 »

  1.   

    header前不能有空格、输出还有检查调用12.php的文件有没有违反这个规则。
      

  2.   

    header前面没有任何输出啊,我也不知道怎么回事。就是header加载不了。但是如果取消和header语句,上传txt文件是可以浏览器中显示的,除此之外,所有的文件都是乱码。
      

  3.   

    well, I put "@",at the beginning of these rows
    $conn = OCILogon('manudata', 'smi619', 'manures');
    $query = 'SELECT C2 FROM MYCLOB WHERE C1 = 1';
    $stmt = OCIParse ($conn, $query);
    then,I will never meet with such warning,but stll can not display the gif,who can tell me why?
      

  4.   

    well,my project is to build a database of standard parts of machinery,so there are many pictures both gif\jpeg\3ds\prh etc.,maybe there are 100000 pictures!and I need to set up on another oracle database.so I want to do thi by upload the file to database.
      

  5.   

    另外,如何判断文件有没有上传完毕啊?我上传了1个word文档(800多k ),可时下在以后只有13k?怎么解决这个问题啊?
      

  6.   

    Warning: Cannot add header information - headers already sent by (output started at e:\apache\htdocs\12.php:1) in e:\apache\htdocs\12.php on line 7]在12.php第1行处有输出按你贴出的样子
    上传部分  10.php文件:
    <?php
    显示图片页面 12.php文件 : <? $conn = OCILogon('manudata', 'smi619', 'manures');
     
    你的第1行是空行