0
Good evening gentlemen I am venturing into the world of PHP and I came across a problem that I have not yet been able to solve.
I made a connection in PHP that connects in a TELNET server and returns me the values read in a variable inside a While, with that I use an echo to print the message on the screen to follow the content of the message.
while ($line = fgets($socket,7170)){
$line = trim($line);
echo $line."<br>";
}
something like this, but the result is that it generates a new line with the answer.
I would like to know a way to print this variable always in the same location.
Like a field saying " STATUS: $VALUE OF THE VARIABLE HERE" so that whenever I changed the value update there and not create a new echo.
How this is updated?
– Sam