图像在codeigniter应用程序中不可见

时间:2016-02-08 06:36:19

标签: php html linux codeigniter

我有一个在codeigniter中开发的应用程序,其中有一个照片上传功能。它工作正常,照片成功上传到所需的路径。但是在打开应用程序时。它显示了一个破碎的图像。如果我检查元素并在新选项卡中复制粘贴图像的URL,则会出现404错误,但是当我刷新图像URL打开的相同选项卡时,它会打开并显示图像。托管应用程序的服务器是godaddy。

<?php 

    echo "<div class='p'>"; //the area to be printed

    while($test = mysqli_fetch_array($result))
    {
        $id = $test['id'];
?>
    <tr>    
        <td><font color='black'><?php echo $test['p_name'];?></font></td>
        <td><font color='black'><?php echo $test['date'];?></font></td>
        <td><font color='black'><?php echo $test['product_name'];?></font></td>
        <td><font color='black'><?php echo $test['drug_name'];?></font></td>
        <td><font color='black'>&#8369;<?php echo number_format($test['s_price'], 2); ?></font></td>
        <td><font color='black'><?php echo $test['quantity'];?></font></td>
        <td><font color='black'>&#8369;<?php echo number_format($test['sold'], 2); ?></font></td>

    <?php echo "<div class='p'>"; //The last area to be printed. The delete column should not be included ?>            

        <td><center><a href ='del.php?&opr=delRequest&id=<?php echo $test['id'];?>' title="Delete"><span style="font-size:1.4em;" class="glyphicon glyphicon-remove-sign"></span></center></a> <!--Delete column--->
    </tr>

<?php
    }
?>  

1 个答案:

答案 0 :(得分:0)

我所要做的就是禁用Cpanel的热链接保护!!有效。但是否有禁用热链接保护的严重后果?

相关问题