Hello Friends! In this tutorial I will teach you how to start writing code in php. This tutorial is in URDU/HINDI. In this tutorial I told you that every PHP document should save with the file extension of PHP as every document of HTML was saved by giving HTML extension. Every PHP line of code should end with a semi colon.
I also told you here that you can place PHP code anywhere in your document. Also I explained here that each PHP document comprises of some text, HTML tags or codes and PHP script itself. In this way you can embed PHP code anywhere in your document.
A PHP code can be written anywhere in your program. To start the PHP code you have to write Less Than symbol followed by a question mark (?) without any space (important). To end the PHP code you have to write Question Mark (?) followed by Greater Than symbol without any space.
After typing the whole code you have to save the file with name and extension as “first.php”. It is very important to note that you have to save PHP file in the htdocs folder of the XAMPP installation folder otherwise your PHP code wouldn’t run.
I also explain here that there is a special way to execute the program output in XAMPP. For this you should write in the browser address bar the following line:
Localhost/first.php
When you type this line in the browser window it will render the output of the program. I hope that you like this video. Thanks for watching my video.
On this page of the site you can watch the video online How To Start Writing Code In PHP with a duration of hours minute second in good quality, which was uploaded by the user Najeeb Ather 17 March 2018, share the link with friends and acquaintances, this video has already been watched 325 times on youtube and it was liked by 10 viewers. Enjoy your viewing!