0

我有一个包含以下初始代码的文件:

<?php 

    $body_tags = 'class="careers"';
    $title = "Ensure Security | Security Guards in Wiltshire";
    $keywords = "Ensure, Security, door guard, supervision, covert, guard, guarding, static, event, retail, commercial, security van, dog unit, melksham, Wiltshire, south West, safety, sia, protection, surveillance, rapid response.";
    $description = "Ensure Security are a Wiltshire based company. We strive to provide our clients with the best service. We offer a personal and professional approach. Ensure Security have been established now for 15 years and hold a respectable client portfolio.";

?>
<?php include 'template/head.php'; ?>

        <div class="maincontent">
            <div class="left"> 
                <ul id="navmenu"> 

它作为原始文本发送到浏览器 - php标签和所有。但是,网站中的所有其他页面都在正确处理 - 例如:

<?php 

    $body_tags = 'class="services"';
    $title = "Ensure Security | Security Guards in Wiltshire";
    $keywords = "Ensure, Security, door guard, supervision, covert, guard, guarding, static, event, retail, commercial, security van, dog unit, melksham, Wiltshire, south West, safety, sia, protection, surveillance, rapid response.";
    $description = "Ensure Security are a Wiltshire based company. We strive to provide our clients with the best service. We offer a personal and professional approach. Ensure Security have been established now for 15 years and hold a respectable client portfolio.";

?>
<?php include 'template/head.php'; ?>

        <div class="maincontent">
            <div class="left"> 
                <ul id="navmenu"> 

正确渲染。

我一直在编辑这两个页面,但不是其中的 php。发生了什么?

编辑:包含的文件可以这样做吗?

4

0 回答 0