"For some reason, ""?"" is inserted at the beginning of the page with ""cakephp3"""

Asked 2 years ago, Updated 2 years ago, 48 views

"For some reason, ""?"" is inserted at the beginning of the page with ""cakephp3""

"

If you look at the source display on the page, for some reason, the first html document (before the document tag) comes with a "?"The error page and the page you created are all the same.

↓Output source first line

?<!DOCTYPE html>

Could you tell me what you can think of?
I thought the BOM was garbled, so I checked that all the modified files were without BOM and uploaded them to FTP binary, but they still didn't work.

Environment
Sakura Internet
PHP 5.6
cakephp3

php cakephp

2022-09-30 14:30

1 Answers

We have solved the problem by using Answer on the page of the person who asked the same question.

$findconfig-name"*.php" | xargs head-n1-q
$ find src-name "*.php" | xargs head-n 1-q

"When I searched with the above command, ""bootstrap"" was mixed with ""?", and I was able to delete it and solve it without any problems."

Thank you to everyone who commented.


2022-09-30 14:30

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.