I've been working on the Brawl+ Autoupdater for Windows which uses PHP CLI converted to EXE format so casual users can execute it. (Bamcompile sadly won't work on Windows 7 unfortunately ;_; so have to turn to alternative methods)
One issue is trying to call the "cls" command during the script.
Doing stuff in batch like
will work, but if I'm trying to achieve the same thing in PHP CLI...
Yet if you ran Unix, Linux or Mac
did the job quite well because clear was an actual program.
I've tried everything I can, using these:
system("cls");
system("command /c cls");
system("cmd /c cls");
and swapping out system() for exec()
None of the three work though. What I'm trying to figure out is, is there a solid command I can call to clear the command line the way cls does? I've tried everything without resorting to external files and nothing.
One issue is trying to call the "cls" command during the script.
Doing stuff in batch like
Code:
@echo off
echo You're never gonna see this text
cls
echo but you're gonna see this!
pause
-----
expected output:
-----
but you're gonna see this!
Press any key to continue....
Code:
<?php
echo "You're never gonna see this text! ";
system("cls");
echo "but you're gonna see this!";
system("pause");
?>
----
expected output:
----
You're never gonna see this text! but you're gonna see this!
Press any key to continue....
Code:
system("clear");
I've tried everything I can, using these:
system("cls");
system("command /c cls");
system("cmd /c cls");
and swapping out system() for exec()
None of the three work though. What I'm trying to figure out is, is there a solid command I can call to clear the command line the way cls does? I've tried everything without resorting to external files and nothing.