<html>
<head>
<title>test</title>
</head>
<body>
This is html part<br>
<?php
$text = "echo from php";
echo $text;
?>
</body>
</html>
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...
www.turnkeylinux.org
That'll give you an environment that is fairly close to what would probably be production on most hosting providers.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.