This is html part<br>
$text = "echo from php";
I used to create simple php and mysql stuff on apache localhost using xampp. Then I bought an website and experiment there with mysql and php. Now I have no logner that site and I was wandering is there any way to run php on my local machine without any type of server thing like apache, just like I create a .html file and I open it on browser with file://path. Instead of this to create a .php file like this and run on browser as a file:// without localhost or server?
LAMP stack is a popular open source web platform commonly used to run dynamic web sites and servers. It includes Linux, Apache, MariaDB (MySQL drop-in replacement), and PHP/Python/Perl. It is considered by many, as the platform of choice for development and deployment of high performance web...
That'll give you an environment that is fairly close to what would probably be production on most hosting providers.