You need to start XAMPP Control Panel by clicking on xampp icon. Now start your Apache and Mysql services from here.
Go to PHP file folder path C:\xampp\htdocs
You need to create demo.php extension file in htdocs folder. Write first program code in file.
Go to PHP file folder path C:\xampp\htdocs
How to write first program in php?
You need to create demo.php extension file in htdocs folder. Write first program code in file.
<html>
<head>
<title>PHP First Program</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
How to RUN php program?
You need to open any web browser and type your program url and hit. you get your code output on your browser.
Url in my case example : http://localhost/demo.php
No comments:
Post a Comment