Skip to main content

Posts

Showing posts from March 27, 2016

AJAX, MYSQL, PHP

Interview Question and Answer for Ajax 1) What is Javascript ? Answer:- An object-oriented computer programming language commonly used to create interactive effects within web browsers. 2) What is jQuery ? Answer:- jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML. jQuery is the most popular JavaScript library in use today, with installation on 65% of the top 10 million highest-trafficked sites on the Web. jQuery is free, open-source software licensed. 3) Difference Between javascript and JQuery ? Answer:- The main difference is: JavaScript is a programming language, while jQuery is a library. 4) $("div").css("width","300px").add("p").css("background-color","blue"); ? Answer:- This code will make the div tag size with width - 300px, and add a paragraph tag with background-color blue. 5) More efficient Lines? document.get.ElementById(...

How To Set Up Apache Virtual Hosts on Ubuntu

Step One — Create the Directory Structure The first step that we are going to take is to make a directory structure that will hold the site data that we will be serving to visitors. Our  document root  (the top-level directory that Apache looks at to find content to serve) will be set to individual directories under the  /var/www  directory. We will create a directory here for both of the virtual hosts we plan on making. Within each of  these  directories, we will create a  public_html  folder that will hold our actual files. This gives us some flexibility in our hosting. For instance, for our sites, we're going to make our directories like this: sudo mkdir -p /var/www/ example.com /public_html The portions in red represent the domain names that we are wanting to serve from our VPS. Step Two — Grant Permissions Now we have the directory structure for our files, but they are owned by our root user. If we wa...