Detect Internet Connection with JavaScript

Detect Internet Connection with JavaScript

Sometime, it becomes necessary to know about status of internet connectivity. We can know about internet connectivity in PHP also, but it is not good practice. Using client side language to detect internet connectivity is good practice because it gives connection status without reloading a page. So, using browsers property (navigate.online) we can easily confirm … Read more

Simple Two Way Encryption in PHP

Simple two-way encryption in PHP

In this tutorial, we will see how to encrypt and decrypt a string in PHP. We always use encryption in programming to secure data from malicious user, but this encryption is one way encryption. In this article we will learn how to use simple two way encryption in PHP.  Here we will use openssl_encrypt() function … Read more

How to Connect Server Database from Localhost

How to Connect Server Database from Localhost

It is very easy to connect server database from localhost. In this tutorial, we will see how to connect server databases from local server.  To connect to server db mean to use remote MySQL connection, First of all we have to activate remote MySQL from cPanel. Login to cpanel. Go to remote MySQL option. Add … Read more

How to Send XML Data to API With Curl PHP

How to Send XML Data to API With Curl PHP

Being a web developer you must need to know how to send data to API in PHP. We send data to web services using curl in PHP programming language. In this tutorial, we will see how to send XML Data to web services using curl in PHP. In API integration, we need to send request to … Read more