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.
En esta página del sitio puede ver el video en línea How To Start Writing Code In PHP de Duración hora minuto segunda en buena calidad , que subió el usuario Najeeb Ather 17 marzo 2018, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 325 veces y le gustó 10 a los espectadores. Disfruta viendo!