- Hi friends in this post, I am sharing how to create php in wamp server .Be sure You have installed wamp server correctly.Wamp server will helps us to learn php offline and saves internet usage.
- Open notepad,copy and paste the following codes,
<html> |
- And click save as like below.
- Now goto wamp folder>>www.
- Place hello.php file in the www directory.like below image.
- Open wamp server like below,
- Now see your taskbar with wampserver icon in green color
- Leftclick wampserver icon and choose local host.
- Now wamp sever opens in default browser like below.
- If it opens like above then we confirm wampserver is on.
- Then in browser type.http://localhost/hello.php.You will get like below.
That’s all you have successfully created your first php.
- If you want to display your current date ,month and year of your system.Then in above code just below <?php echo '<h1>Hello World</h1>'; ?> add <?php echo date("d.m.y"); ?>
- Again run http://localhost/hello.php and you will get like below,
0 comments :
Post a Comment