I am trying to understand why i cannot receive the textmessages from the host as supposed to in the program i am working on. I need some help from anybody to view my code and see if there is something wrong.
I will place the scriptcode for the server/host in an attachment and also the code
when i open the host : https://dailydeals.one/woodiebox/matrix it shows the textmessagebox , after submitting a text it should come on my matrixLED , like shown in the youtube movie
Holz Lauftext mit ESP8266, 128x64px OLED and 8x64 LED Dot Matrix (MAX7219) mit Source code! - YouTube
In my situation it will not show on my matrix.
any help would be apreciated.
thanks
script for server.txt (1.69 KB)
code.txt (8.97 KB)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {
margin: 20px auto;
background-color: LightGoldenRodYellow
}
</style>
<Center>
<font face='Arial,Helvetica'>
<font color="blue">LED Laufschrift</font>
Geben sie hier den Text ein. (1 bis 80 Zeichen).
<?php
if(isset($_POST['submit'])) { // Is executed when clicking on Submit
$data = ($_POST['textfeld']);
if(strlen($data) > 0 AND strlen($data) < 81 ) { // Only if valid number
$path = 'myText.txt';
$data2 = $data . "EOT"; // Attach EOT for extraction in ESP8266
$ret = file_put_contents($path, $data2, LOCK_EX);
if($ret === false) {
die('Es gab einen Fehler beim schreiben Textzeile');
}
else {
}
}
else { // Too few or too many characters
echo '<font color="red">';
echo "Das waren ". strlen($data). " Zeichen. Bitte minimum 1 Zeichen maximum 80 Zeichen eingeben";
echo '</font>';
}
}
?>
<!-- Eingabefeldt und Sende-Button -->
<form action="<?php htmlentities($_SERVER['PHP_SELF']);?>" method="post" accept-charset="ISO-8859-1">
<input type="text" size="60" name="textfeld" style="font-size:18pt">
<input type="submit" name="submit" value="Senden" style="font-size:18pt">
</form>
<?php // d.waldesbuehl@hispeed.ch
if(strlen($data) > 0 AND strlen($data) < 81 ) { // With valid input
echo (strlen($data) ." Zeichen wurden geschrieben
");
echo ('Text: "'. utf8_encode($data) . '"');
}
?>
thank you for your reply.
was there something altered in the script? i could not find it.
an explanation wold be great 
i uploaded it to my host , but still no response on the matrix.
must be something with the connection , when i open my FTP , i see underneith the script a text file with the written text that should have been sended...
Does anybody know why i can not receive the text messages from the serverhost? 
I tried to place the serverscript on different host, uploaded it with ftp, changed the rights on reading and writing , still no responses from either hosts. something is going wrong at the resending to the esp from the written textmessage serverscriptfile.
any suggestions would be fine ..