A php script is usually used to build websites and is interpreted by a web server. So you need to install a server like Apache and also PHP. As a beginner it is better to install Xampp server because if you install each separately you also need to configure the files accordingly. So it's better to install Xampp Server, you can install by following the steps here.
Create a sample php file to check whether the xampp works. Type the below code in a tex editor and save it as "first.php" in /opt/lampp/htdocs/ .
Create a sample php file to check whether the xampp works. Type the below code in a tex editor and save it as "first.php" in /opt/lampp/htdocs/ .
"My first PHP script!". That's all you PHP file is working, now start coding ;)
No comments:
Post a Comment