Welcome back to Shortlearner, today we start a new series of API configuration of Namecheap
using php, before start the tutorial first of all we should know about Namecheap.
Basically Namecheap is a platform where you can purchase all type of hosting services
(virtual private host, xen vps, ovz vps ), Dedicate servers and also buy domains with in
a cheapest price.
Today we will see how to get namecheap API.
Before getting a namecheap api first of all we should know about what is an API,
and how its work.
click to know more about API .
Namecheap API Configuration in PHP
How To Build A Facebook Messenger Chatbot In PHP
Hello Learners, Welcome back to short learner, today we will see that how we can build a fully functional facebook messenger chat using php.Before proceeding further I would like to give a brief knowledge about Chatbot.
What is Chat Bot?
A Chabot is a computer program or an artificial intelligence which conducts a conversation via auditory or textual methods.Chatbots are typically used in dialog systems for various practical purposes including customer service or information acquisition. Many brands use chatbots to receive incoming queries on social media channels.
Importance of chatbots
The objective of chat bots is to support and expand business teams in their relations with clients.
Read xml file using php
In this post we will see how to read an xml file with the help of php function.
most of the time we need to fetch records from xml file, so we use a php function
The simplexml_load_file() function which helps to converts the specified XML file into
a SimpleXMLElement object.
Syntax
simplexml_load_file(file,classname,options,ns,is_prefix);
here we have xml file which is named as sitemap.xml, we fetch all dates from sitemap using simplexml_load_file() function.
find ip address location .?
Welcome to shortlearner.com, in this post we will see how to find the IP address, city, browser and country of the
Visitor of your website. Before starting this tutorial I suggest you put the code into a PHP file and call this PHP file into the header file
On your website, it will help you to track the activities of user on your website.
First of all we need a database table where we store all the activity of the visitor on our website.
CREATE TABLE visitor_details( id MEDIUMINT NOT NULL AUTO_INCREMENT, ip VARCHAR(30) NOT NULL, current_page VARCHAR(30) NOT NULL, time VARCHAR(30) NOT NULL, user_agent VARCHAR(30) NOT NULL, country VARCHAR(30) NOT NULL, city VARCHAR(30) NOT NULL, PRIMARY KEY (id) );
After creating table, we write a PHP script that will help us to find all the information Of visitor.