I'm getting random 1's throughout my html page in chrome.
Can't seem to find this issue on forums or SO.
This is an image of how the page is being rendered:
My php file looks like this:
<!DOCTYPE html>
<html lang="en">
<?= include('head.php') ?>
<body>
<div id="wrapper">
<?= include('nav.php') ?>
<div id="page-wrapper">
I have no clue what's causing this, can anybody push me in the right direction?
From my comments:
Simple: it's the =
's - <?=
is short hand for "echo" so remove those.
and change your <?=
to <?php
since short tags are not enabled on your system.
The 1
's are boolean which tell your includes did work/that the file(s) exist.
If it would have failed, then those would have appeared as 0
's.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.