简体   繁体   English

PHP上未显示的内容包括?

[英]Content not showing on PHP include?

I've run into the most bizzare problem. 我遇到了最奇怪的问题。 A PHP include calls in a file, which contains the beginning of the body tag as well as the beginning of the main tag: PHP在文件中包含调用,该文件包含body标记的开头和main标记的开头:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <link rel="stylesheet" href="css/style.css">
</head>

<body>
  <div id="sidebar">

  </div>

  <div id="main">

<div id="menu">
    <p> test test test </p>
</div>

The strange thing is, the elements show up no problem but that test message doesn't. 奇怪的是,元素没有问题,但测试消息却没有。 It's not hidden under any elements, because when I view the source it's still not there. 它没有隐藏在任何元素下,因为当我查看源代码时,它仍然不存在。 I have a feeling this is something really dumb/trivial, but it's got me stumped. 我觉得这真是愚蠢/琐碎,但这让我感到困惑。

Here's my php: 这是我的PHP:

<?php 
include 'inc/header.php';
require_once 'login.php';
echo('<div class="somespace"></div>');
include 'inc/queries.php';
include 'inc/footer.php';
?>

It should work fine, so in conclusion: 它应该可以正常工作,因此结论是:

It's simple: your hdd, local/hosted drive has encountered on write process a delay writing error 很简单:您的HDD,本地/托管驱动器在写入过程中遇到延迟写入错误

you see your code in the file, but in reality, its not there 您会在文件中看到您的代码,但实际上,它不存在

if using filezilla, close and connect again, and see whats there 如果使用filezilla,请关闭并再次连接,然后查看其中的内容

please give more info for the storage machine 请提供有关存储机的更多信息

i had the same problem on bluehost.com with theyr drives (HDDs) 我在bluehost.com上使用theyr驱动器(HDD)遇到了相同的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM