如何解决我的一些静态和动态图像链接在实时 vps ubuntu 服务器上断开,但在本地 xampp 服务器上工作
我的一些静态和动态图像链接在 vps ubuntu 服务器上断开,但在本地 XAMPP 服务器上工作。当我尝试使用它们的 url 在新选项卡中打开图像时,它显示 “404 not found Not Found。在此服务器上找不到请求的 URL。” 看来我的路径是正确的。 public_html
中 vps 服务器上文件管理器中的图像见下图。
我已经尝试清除缓存和 cookie,使用论坛上的几种方法和其他方法,但仍然无效。
index.php
<section id="service">
<div class="container">
<h2>Our Products</h2>
<br>
<?php
$select_query=mysqli_query($conn,"select *from products");
$row=mysqli_num_rows($select_query);
?>
<div class="row">
<?php if($row>0)
{
$sr=0;
while ($fetcharray=mysqli_fetch_array($select_query)) {
$sr+=1;
?>
<div class="col-md-4 col-sm-6" >
<div class="service_item" >
<div class="service_photo" style="height:370px; width: 320px";>
<a href="description.php?pid=<?php echo base64_encode($fetcharray['id']);?>"><img src="<?php echo $fetcharray['picture'];?>" alt="Program" style="height:370px; width: 320px"; /> </a>
<!--<div class="photo_overlay"></div>-->
</div>
<!--<div class="service_caption">
<h4><?php echo $fetcharray['name'];?></h4>
<p><?php echo $fetcharray['price'];?><br><?php echo $fetcharray['quantity'];?><br><?php echo $fetcharray['description'];?></p>
</div>-->
</div>
</div>
<?php }}?>
- rendering of images on production Linux server
- rendering of images on local XAMP server
- path in production Linux server file manager
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。