Skip to main content

Posts

REST API in PHP

Step 1 . Create a table in database mysql with below script.           CREATE TABLE `facts` (                 `Id` int(11) NOT NULL,                  `title` varchar(512) NOT NULL,                  `myth` varchar(512) NOT NULL,                  `fact` varchar(512) NOT NULL            ) ENGINE=InnoDB DEFAULT CHARSET=latin1; Step 2 . Create a folder in xampp/htdocs/ testRestAPI       Here we need to create 2 main files 1.     Database.php 2.     GetAllFacts.php In database.php we wi...
Recent posts

LOGIN AND SIGN UP USING BOOTSTRAP

WHAT IS BOOTSTRAP? ·         Bootstrap is a sleek, intuitive, and powerful, mobile first front-end framework for faster and easier web development. It uses HTML, CSS and Javascript. HISTORY:- ·          Bootstrap was developed by  Mark Otto  and  Jacob Thornton  at  Twitter . It was released as an open source product in August 2011 on GitHub. WHY USE BOOTSTRAP? ·          Mobile first approach  − Bootstrap 3, framework consists of Mobile first styles throughout the entire library instead them of in separate files. Browser Support  − It is supported by all popular browsers. ·          Easy to get started  − With just the knowledge of HTML and CSS anyone can get started with Bootstrap. Also the Bootstrap official site has a good documentation. ·     ...

Servlets

WHAT IS SERVLET? Servlet technology is used to create web application resides at server side and generate web pages. Servlet technology is robust and scalable because of java language.Before servlet ,CGI(common gateway interface) scripting language was popular as a server side programming language.But there was many disadvantages of this technology. There are many interfaces and classes in the servlet API such as servlet,GenericServlet,HttpServlet,ServletRequest,ServletResponse etc. Servlet is a class that extend the capabilities of the servers and respond to any type of request. Servlet is a web component that is deployed on the servers to create dynamic web page. HOW WEB SERVERS WORKS?   To retrieve a static page , a user enters a url in to a browser. Browser generates an HTTP request to appropriate server.   Web server maps the request to the particular file and that file is returned to the browser in an HTTP response. HTTP header in resp...