PHP stands for “Hypertext Preprocessor”. It is an open
source programming language (Free to use and download ) for the web. It is a server side
scripting language that can be used with HTML code, then processed when the page is requested by client. Practically,PHP is much easier to learn and code when compared to other programming languages. It is fast and flexible. The goal of the language is to allow web developers to write dynamically generated pages quickly. It reduces the time to create large website. It creates a customized user experience for visitors based on information that you have gathered from them. It also allows creation of shopping carts for e-commerce websites.
Here,I am going to demonstrate basic idea for using PHP language.For that firstly we need Xamp/Wamp server installed on PC.Then,
⦁ Open notepad and type the code as below. Here I am using “Hello world” that will be displayed as webpage. If you want to use any other text/string then you should write inside the echo code.
⦁ You should save that code with .Php extension as “All File types”. If you are using” xamp” server it must be inside the given folder named “htdocs” but if you are using “wamp” server it must be inside the given folder named “www”.
⦁ You should open Xamp/wamp server now. Click on the start button as given below.
⦁ Now the process is completed.For viewing the output.
1)Open any browser that could be Chrome,Mozilla or any others.
2)Type “localhost/hello.php.If you have any sub folder then you should give complete locations.
Finally the result will be displayed as follows.
Here,I am going to demonstrate basic idea for using PHP language.For that firstly we need Xamp/Wamp server installed on PC.Then,
⦁ Open notepad and type the code as below. Here I am using “Hello world” that will be displayed as webpage. If you want to use any other text/string then you should write inside the echo code.
⦁ You should save that code with .Php extension as “All File types”. If you are using” xamp” server it must be inside the given folder named “htdocs” but if you are using “wamp” server it must be inside the given folder named “www”.
⦁ You should open Xamp/wamp server now. Click on the start button as given below.
⦁ Now the process is completed.For viewing the output.
1)Open any browser that could be Chrome,Mozilla or any others.
2)Type “localhost/hello.php.If you have any sub folder then you should give complete locations.
Finally the result will be displayed as follows.