print_r(getallheaders());
Note: getallheaders() is currently only supported when PHP runs as an Apache module. 

解决方案 »

  1.   

    if u don't afraid the trouble, you can uses the fsockopen() or CURL to get the value
      

  2.   

    <?php
     include("datacon.inc"); $sql="select * from file_up order by id DESC";
     $result=mysql_query($sql,$db);
     $rows=mysql_fetch_array($result);
     $type=$rows['type'];
     Header("Content-type:$type"); 
     echo $rows['file_data'];
    ?>大家好!我是想把echo $rows['file_data'];显示在<body></body>之间,这是一个图象,在
    <body></body>之间显示的是代码,不知道怎样修正过来,谢谢!
      

  3.   

    但是现在页面很少用frame的,而且apache对frame支持好象也不是很好!
      

  4.   

    "apche對frame支持好像不是很好"
    這句話我听起來怎么這么迷茫阿﹐對frame的支持的好坏應該和瀏覽器有關吧﹐怎么和服務器扯上聯系了﹒
    老兄有點專業精神好不好阿﹒
      

  5.   

    <body></body>中间的内容content-type:text/plain
    而图象是content-type:image/gif(或jpg或bmp)多义性这是不可能的。要在<body>中间加图象只能用<img src=xxx.php>来加.在
    xxx.php中<?
    header("content-type:image/gif");