Я не знаю, почему текст из файла добавляется ко всем файлам .js в моем проекте. У меня есть текстовый файл, который я читаю, который содержит одну строку, к моему удивлению, он добавляет строку ко всем файлам .js, которые отключают их загрузку. Что мне делать правильно?
По сути, текст в файле ken4ward
. Текст просто вызывается в файле PHP.
session_start();
require_once('send.txt');
require_once('/Applications/MAMP/htdocs/register/DBConnect.php');
$myFile = "send.txt";
$fh = fopen($myFile, 'r');
$myFileContents = fread($fh, 21);
fclose($fh);
$mytrimmedvalue = trim($myFileContents);
Ошибка, которую я получаю на консоли
[Show/hide message details.] ReferenceError: ken4ward is not defined[Learn More] yui_combo.php:1:1
[Show/hide message details.] ReferenceError: ken4wardM is not defined[Learn More] javascript-static.js:1:1
SyntaxError: unexpected token: identifier[Learn More] require.min.js:1:12
[Show/hide message details.] TypeError: require is not a function[Learn More] search.php:1584:1
[Show/hide message details.] TypeError: Y is undefined[Learn More] search.php:1725:14