Setup multiple virtual host on xampp for windows

In this post we have explained about the how to setup the vitual host on xampp for our windows.
We can able to create more than one virtual host on our machine.
Why we are for create virtual host, to optimize the home page URL for all projects.

Step 1:

Point your directory on F:\xampp\apache\conf\extra\httpd-vhosts.conf.

  • Open the file named httpd-vhosts.conf with a text editor.
  • Around line 19 find # NameVirtualHost *:80 and uncomment or remove the hash.
  • Add below code at the bottom of that file.
  • Modify your directory path in below code.

Read More

Laravel installation via composer

In this post explain about laravel installation steps. Now we see the laravel versions and their prerequisites.

Version 5.3Version 5.2, 5.1, 5.0Version 4.2
  • PHP >= 5.6.4
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • PHP >= 5.5.9
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • PHP >= 5.4
  • MCrypt PHP Extension

See our demo video on Youtube:


Read More

AngularJS Dynamic Form Fields

After long time back we had to published article from AngularJS. In this post we explained the Dynamic Form Fields integration in AngularJS. Here we are going to implement sample example of employees daily todo lists. The following form fields are employee name,email,designation and description with bootstrap 3. This is the sample form and you will change your needs.

Step1:

Include angularJS library version is 1.5.8.

AngularJS_Dynamic_Form_Fields

Read More

How To Capture Signature using HTML5 Canvas

We had published javascript library for signature pad using html 5 canvas. In this post we described about how to capture signature using HTML5 Canvas. Here we are using To draw a line using HTML5 Canvas, we can use the beginPath(), moveTo(), lineTo(), and stroke() methods. beginPath() method to declare that we are about to draw a new path. lineTo() method to draw a straight line from the starting position to a new position. we can apply a stroke to the line using stroke().

signature_pad

Read More

Export XLS file using Pear with PDO

We had published article about Pear library. Why we are using pear library because in export option they gave simple and flexible with ease of code implementation. In also their documentation clear to understand. Here we gave sample of how to Export XLS file using Pear with PDO and to export the users information as excel file with PDO OOPs .  Once you do with our sample code and if you are got idea you can customize code as your wish. 

 

export_excel_pdo

Read More

How to Prevent SQL Injection in PHP

We had published after long time back article about SQL injection. First of all explain what is sql injection.To avoid the unwanted peoples are access your database without your knowledge i.e hacking.When the system (website) to ask the input from users in that time we won’t directly pass the input to the database we must validate the inputs.

Following things are to prevent the user input :

If you got the input from users, you have to validate using regular expressions for example.

Read More