HomeФильмы и анимацияRelated VideosMore From: Tech Engine

Coding in php (HINDI) - 1. Introduction to php.

5 ratings | 670 views
Hello, friends, you are watching Tech engine and I am Pankaj Borah Your host presents you Php videos series. In this series, we will about PHP programming language, what is PHP and how we can use it for web development. Friends before moving on to our discussion on PHP, I would like to discuss some ideas with you. The idea is about web development. When the internet was in its initial stages, it was simple and as you can guess the web pages at that time were simple to and were only developed using mere HTML only but as the internet grew along with time itself it evolved into a sophisticated piece of technology. Now the web pages were also becoming more complex and require some addition technologies. In order to cope with this new technologies were developed like CSS, JavaScript, and PHP etc. which enhance the functionality of web pages. Friends all these languages you are seeing on the left side of your screen are very simple to learn, and I’m planning to make videos on these topics too in near future, but the most common problem students face even after learning this language through online tuts , books etc. is that they are unable to use them we required and are confused when to use what in situation. The root cause of this basic problem is, many of us fail to understand the basis use and purpose of these languages. Addressing to this problem I would like to explain to you guys using an example. Let us suppose we want to create a web page similar to the one shown on the right of your screen. The first thing that should come to our mind is about the contents of the page. Suppose we are making a web page where a user can post some content and it will be visible to other users, we are also going to include a contact form so that users can contact the web page owner. Friends like every other post, this post also have a title, a paragraph, and some addition table and a contact form having two text fields and one button is also included at the end. Friends, as you can see all web element from top to bottom, are created using HTML. Thus HTML provides a web page with its structure and arrangement and acts like a skeleton of the page. After constructing the structure suppose we want to style this web page as because without it the web page will look boring and unattractive. And so do this we use CSS like we have done with the table on the page. We have provided a blue colour to the head of the table and a light blue to its first row and now it look better than before, isn’t it. Friend the third point is about JavaScript, friend many a time it may happen to you that you want to add a functionality like when a user clicks on a button some action happens or a popover is displayed.This type of functionality is achieved using JavaScript which is supported by every modern browser today. The 4th point is about PHP, it is required whenever some type of data processing is required to be performed on the server, like in this case as the user submits contact form, his email and name is sent to a PHP script on the server which then processes the information say validating the name and email of the user. All this type of functions are handled using PHP.The last but not the least is MySQL. Friend most of the time is required that our website has database functionality too, to store and retrieve information of users. Like here after the user submits the name and email it is then stored in the database using SQL. Friend from all this I think you might have roughly guess what I want you to understand about the use of every language. Moving forward, let’s discuss about php. Php is an acronym and stands for php hypertext preprocessor, Friends initially php stood for..................... whether the code is php or regular text. So we must have these tags in out code. In between these tags we write our code which are basically statements or instructions separated by semicolon; The second point to remember is that every php code runs webserver and only the result of the code execution is returned and displayed in web browser. As we can see from the diagram below. Whenever a user visits a website, and he request a php file. This request is received by the webserver and the webserver finds the file and pass it to the php interpreter. The interpreter than reads the php file and based on the instructions in the file outputs a result which is then passed on to the webserver from where it is delivered to the user’s browser as HTML output and displayed. Friend is basically how it works. If you like this video then hit like or if you have not subscribe to our channel subscribe it and stay tuned for more videos like these, Thank you
Html code for embedding videos on your blog
Text Comments (1)
Aditya Narayan (2 years ago)
nice one

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.