How to get user details from IP Address in PHP

Hello friends, welcome to my another blog post get user details from IP Address using PHP. Using this small application you can get visitor’s country, state and geographic location. The concept behind this application is that when a user visit to your website you can easily get the IP address of that user using $_SERVER[‘REMOTE_ADDR’]. Just store the IP address into a variable and pass that IP into third party websites API. This third party API will give you all the information related to that IP address. Read more

Check multiple value exists in array PHP

Check multiple value exists in array

Hello friends, welcome to my another blog post check multiple value exists in array using PHP. In my anothertutorial I show you how to check value exists in array php. But that code does not allow to check multiple value exists in array. But if you want to check multiple values exists in an array then what to do. There is a multiple options for you. You can create your own function, search in google or use my function. In this post I will create a custom function my_custom_function which will do the trick for you. Read more

Send html email in php example

Send html email in php

Hello friends, welcome to my new blog post send html email in php. In my previous few post I gave you some OpenCart tips. But today I will tell you how to send html email in php. PHP has a built in mail function by which we can sent mail to anybody from our server. But when we sent mail to someone we have to care full about our mail content as well as mail design. If we sent a mail with proper look and html design using php then we need to put some additional code to support html in our mail. Read more

Submit Form Without Page Refresh

submit form without page refresh

Hello friends, welcome to my another small web application submit form without page refresh. In my previous blog I show you how to create Ajax File Upload with Progress Bar. Today I will create another small application with the help of ajax and jQuery. We use html form for every website to submit user data. After submit the form, page will refresh. It takes some time to submit the form. But we can bypass the page refresh using Ajax. Read more

Ajax File Upload with Progress Bar

Ajax File Upload

Hello friends, In this post you’ll learn how to create Ajax File Upload with Progress bar. In my previous blog I show you how to create simple guestbook using ajax. Ajax file uploader is useful web tool, which is actually very easy to create with Ajax, jQuery and PHP. The example we’re going to use supports uploading single file in a single request. The script will upload a file to the server, show a progress bar highlighting how much has been completed, and then finally return the uploaded file file and the status.
Read more

Import xml into mysql database using PHP

import xml into mysql database

Hello friends, In my previous tutorial I show you how to export SQL result to XML file. But today I will show you how to import xml into mysql database using PHP. Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding documents in a format which is both human-readable and machine-readable. Suppose you have a XML file with some data. Now you need to get the data from that xml file and save the data into a database table for future use. f you have this type of requirement then using the below script you can import value from any xml file into your database table. You just create the table before import data into it.
Read more

How to export SQL result to XML file in PHP

export sql result to xml

Hello friends, today I will show you how to export SQL result to XML file in PHP. When we are working with any SQL result set it gives us one or many rows. We use this result in our application. But when you fetch rows using sql but instead of showing result if you need to store the result set for future use or any other reason, you may use xml file to store the result set. So I build a code to export sql result to xml in PHP.
Read more