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

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 Upload Image With Custom Resize in PHP

In this article we have explained about how to upload an image with resize using simple php script. Save image as your width and height.

In HTML:

Read More

Get latitude and longitude values from your address

When you are integrating google maps for locations you may need to know their latitude and longitude values. In that time pass your address through maps.google.com for api request.It returns the values as json output. The values are stored into database. So next time you can search the location in table. If it is not found you can send api request and store it.Why we are store the values in database because to avoid of frequent usage this is free api even it has some limit of access. when we frequent request the server doesn’t respond immediately. So that’s why we store the values.

In php:

Database: