Posts

CMS War: Drupal Vs. Wordpress

Image
Wordpress Logo WordPress  is the world’s most popular content management system. Originally launched as a blogging platform back in 2003, WordPress now powers  29% of all websites and controls a massive 59.8% of the known content management system market. Some notable examples of famous entities using WordPress for all, or part, of their web presence are: Whitehouse.gov Sony Mobile University of Washington Mercedes Benz TechCrunch The New Yorker Drupal Logo Drupal  has been around for even longer than WordPress, though it lacks WordPress’ gaudy market share. Originally launched in 2000, Drupal powers  2.3 % of all websites and has a 4.6% share of the content management system market. Some notable websites running on Drupal are: University of Colorado State of Colorado The Economist Dallas Cowboys Nasa.gov

Simple File Upload Using PHP

Image
File Upload Using PHP <! DOCTYPE html > < html > < head > < title >Upload your files</ title > </ head > < body > < form enctype = " multipart/form-data " action = " upload.php " method = " POST " > < p >Upload your file</ p > < input type = " file " name = " uploaded_file " ></ input >< br /> < input type = " submit " value = " Upload " ></ input > </ form > </ body > </ html > <?PHP if ( ! empty ( $_FILES [ ' uploaded_file ' ])) { $path = " uploads/ " ; $path = $path . basename ( $_FILES [ ' uploaded_file ' ][ ' name ' ]); if ( move_uploaded_file ( $_FILES [ ' uploaded_file ' ][ ' tmp_name ' ], $path )) { echo " The file " . basename ( $_FILES [ ' uploaded_fil

CRUD(Insert, Delete, Update, Display/Retrieve) Using PHP

//Make another php file for connection purpose(seprate one) <?php $connect= mysqli_connect("localhost", "root", "", "login"); if($connect) {          echo "database connected successfully";      } else {     die("error in connection".  mysqli_error($connect)); } ?> //make a main file that includes a Form parameters, insert ,delete ,update and selection logic. <?php //this file is a separate file for connection that must be includes in main file using include() function.// include('db.php'); ?> <html>               <head>         <title>login example</title>     </head>          <body>         <form method="POST" >             <p>id:</p>             <input type="text" name="id" placeholder="enter your id">             <p&g

How to Configure XAMPP server on the Windows System

Image
Step-1 First of all, download XAMPP server from the  https://www.apachefriends.org/download.html This is an official website for XAMPP server downloads. Then choose, your download accordings to your system and disk specifications. Step-2 After download from  https://www.apachefriends.org/download.html ,try to install to it on your windows machine. After that,choose next next consecutively till the finish button is not found. Then clicks on the finish. That will take some while of time to starting it. Step-3 After successful installation, search from the windows menu,and type XAMPP. After that, a one pop-up like menu controller will shows on the screen. Then , starts the first 2 services like as following images: Step-4 Open the directory where XAMPP is installed, find the " htdocs " named folder from it. Click on it, then you will found several files likes- index.php, and so,on... You can see that configurations from the following images:

Selection Sort

Program In C++:-                       // Selection Sort #include <iostream> using namespace std; void SelectionSort(int a[],int n) {  int i,j,temp,large;  for(i=n-1;i>0;i--)  {  large=0;  for(j=0;j<=i;j++)  if(a[j]>a[large])  large=j;  temp=a[i];  a[i]=a[large];  a[large]=temp;  }  cout<<"\nDisplaying the sorted values:";  for(i=0;i<n;i++)  cout<<"\n"<<a[i]; } int main() {  int n;  cout<<"Enter the size of array:";  cin>>n;  int arr[n];  cout<<"Enter the values of array:\n";  for(int i=0;i<n;i++)  cin>>arr[i];  SelectionSort(arr,n); } /* output Enter the size of array:3 Enter the values of array: 1 9 2 Displaying the sorted values: 1 2 9 */

Insertion Sort

Program In C++:-                                                                         //Insertion Sort #include <iostream> using namespace std; void InsertionSort(int a[],int n) {  int i,j,temp;  for(j=1;j<n;j++)  {  temp=a[j];  i=j;  while(i>0 && a[i-1]>=temp)  {  a[i]=a[i-1];  i--;  }  a[i]=temp;  }  cout<<"Displaying the values:";  for(i=0;i<n;i++)  cout<<"\n"<<a[i]; } int main() {  int n;  cout<<"Enter the size of array:";  cin>>n;  int a[n];  cout<<"Enter the values in Array:\n";  for(int i=0;i<n;i++)  cin>>a[i];  InsertionSort(a,n); } /* Output Enter the size of array:3 Enter the values in Array: 5 1 4 Displaying the values: 1 4 5 */

Web Technology Practical

  (1)Frames: HTML frames are used to divide your browser window into multiple sections where each section can load a separate HTML document. To use frames on a page we use <frameset> tag instead of <body> tag. The <frameset> tag defines, how to divide the window into frames. The rows attribute of <frameset> tag defines horizontal frames and cols attribute defines vertical frames. Each frame is indicated by <frame> tag and it defines which HTML document shall open into the frame. (2)HTML Redirection:- The redirection is done with the meta refresh in the head section. The link in the body section for fallback purposes. HTML redirection used to redirect current page to another page or resources directly on clicking the link. (3)Redirection Through Server Side language PHP is a server side scripting language; the redirect script will be executed on your server and not on your visitors browser. This is a non-client/browser dependent approach. The P