Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts
How to read the .docx files in PHP

How to read the .docx files in PHP

Hi, In This tutorial you will learn about "How to read the .docx files in PHP". Generally .docx files will be opened in the MS-OFFICE, But we are able to open the .docx file in PHP we have to convert the .docx file into text then we can easily display the content in the web browser. <?php function read_file_docx($filename){ $striped_content...
How to save an HTML5 Canvas as Image on a server using PHP

How to save an HTML5 Canvas as Image on a server using PHP

Hi, In this tutorial, I am going to explain, How to save an HTML5 Canvas as Image on a server using PHP. Before going to this topic please refer "How to convert the HTML content into an image using jquery" in my previous post then you will get an idea how to generate the div content as an image. Step 1: First Convert canvas image to URL format (base64) var...
How to Refresh a page after specific time automatically in PHP

How to Refresh a page after specific time automatically in PHP

Hi, In This tutorial you will know about How to Refresh a page after specific time automatically in PHP. Generally, we did this type of implementation in the javascript or jquery but sometimes javascript is disabled in the user's side (i.e users disabled the javascript in their browsers). At this situation, we need to implement that code in PHP it...
How to store and retrieve array in MySQL and PHP

How to store and retrieve array in MySQL and PHP

This is the most important technique for all Php developers because of Mysql can't store the array values directly. So we need to convert the PHP Array to string by using the serialize(). This mechanism is very useful in the e-commerce cart functionality. For example, we can store the customer purchase items list and price can be stored in the associative...
How to Generate QR Code using Google Chart API in PHP

How to Generate QR Code using Google Chart API in PHP

Hi, In this tutorial you will learn How to Generate QR Code using Google Chart API in PHP. Before going to the topic you need to know about what is QR Code? QR Code is a machine-readable code, It consisting of an array of black and white squares. It is typically used for storing the information like general text, contact information, URL, image and...
How to get the geolocation details of the user during a website visit

How to get the geolocation details of the user during a website visit

Hi, You will learn in this tutorial how to get the geolocation details of the user during a website visit. Basically, we need the visitor's location details to analyze the site webmasters to know which country users are visiting the site and also some area wise reports and interested post published on the website, For which post gains more traffic...
How to Export and Download the Mysql Table data to CSV File in PHP

How to Export and Download the Mysql Table data to CSV File in PHP

Hi, You will learn in this tutorial How to Export and Download the Mysql Table data to CSV File in PHP. Sometimes you need to Export the user's data to CSV file because if a client wants to send the emails from the Autoresponders like Aweber, GetResponse, Mailchimp, etc.. In this case, you need to provide the user's contact information in the form...
How to integrate the PayPal payment gateway in PHP

How to integrate the PayPal payment gateway in PHP

Hi, Today I am going to explain the major payment gateway used by all websites. i.e PayPal This is a very simple mechanism to integrate the Paypal payment gateway in web applications. First, we need the business email for the Paypal Account for this you have to sign up in the Paypal Website. Before going to integrate the Paypal in web applications...
How to convert the PHP Array to JSON String

How to convert the PHP Array to JSON String

Hi, In this tutorial, I am going to explain, How to convert the PHP Array to JSON String. If you want to convert the PHP Array to JSON String use the json_encode().It will convert the PHP Array to JSON String. Syntax: json_encode($array, Constant1 | Constant2 .... | Constantn); How to log out a user after 10 minutes of inactivity on the site Consider...
CURD operations using PHP Functions with Bootstrap

CURD operations using PHP Functions with Bootstrap

Hi, In this tutorial, I am going to teach you how to perform the CURD operations using PHP Functions with Bootstrap. What do you mean by CRUD operations ? CRUD operations are the basic operations in database C - Create R - Read U - Update D - Delete Generally, we implement the CURD operations normal way. But we implement these operations by using...
How to save the image from url directly

How to save the image from url directly

Hi, In this tutorial, I am going to teach you how to save the image from url directly. Suppose in your web application user picture to be taken from the external URL. for example if a user signup / login using facebook in this case user profile picture url is return from the facebook. then you have to save the image from the external source in this...
How to detect the mobile device in PHP

How to detect the mobile device in PHP

Hi, In this tutorial, I am going to explain How to detect the mobile device in PHP. This is the simplest way to identify the users mobile device.In many cases, the site owner wants to redirect the mobile users to some other location. For example, http://www.example.com is the main website URL and one more URL is http://m.example.com . Here http://www.example.com...
How to Create, Read, Update and Delete a Cookie in PHP

How to Create, Read, Update and Delete a Cookie in PHP

In this tutorial, I will explain how to create, read, update and delete the cookie in PHP. What is a cookie ? Generally, the cookie will be stored in client side i.e in a browser, Each time the same computer requests a page with a browser, it will send the cookie to the server. This mechanism is mostly used in the shopping carts. How to create the...
How to integrate the Bulk SMS Provider API in PHP

How to integrate the Bulk SMS Provider API in PHP

Hi, In this tutorial, I am going to explain how to integrate the Bulk SMS Provider API in PHP. What is Bulk SMS Provider API ? Bulk SMS Provider is extended message service through Their software has provided a bulk full of messaging feature connecting all of us across the entire country. This service has whacked the other previously used SMS services...
How to integrate the SMS gateway hub API in PHP

How to integrate the SMS gateway hub API in PHP

Hi, In this tutorial, I am going to explain how to integrate the SMS gateway hub API in PHP. What is SMS gateway hub ? SMS gateway hub is an SMS provider in India. It will allow to easily send & manage texts from PC, Web, Android, API or Excel. First, We need to register at the https://www.smsgatewayhub.com/ SMS gateway hub  offers a free...
How to enable php intl extension in XAMPP / WAMP

How to enable php intl extension in XAMPP / WAMP

What is the php intl extension. It is a Internationalization extension. It is useful for formatting currency, number and date or time as well as UCA-conformant collations, for message formatting and normalizing text..etc If you want to enable the php intl extension .Follow these steps. Step #1: Open the [xampp / Wamp path]/php/php.ini file Now search...
How to send  email using Gmail SMTP with PHP

How to send email using Gmail SMTP with PHP

Generally any web application needs to send the emails to the users when there registration for the verification purpose or any notifications to the users. In this mechanism we would like to send the emails through Gmail SMTP Configuration. This is very simple to configure the SMTP setting in php Before going to the code you need Your working gmail...
How to get the base url in php

How to get the base url in php

Suppose you have to retrieve the URL of the application in PHP i.e http://example.com Using this piece of code //output : example.com $DOMAIN = $_SERVER['SERVER_NAME']; // output: http:// $protocol = stripos($_SERVER['SERVER_PROTOCOL'],'https') === true ? 'https://' : 'http://'; // output : http://example.com $main_url = $protocol.$DOMAIN; When...
How to embed the user address using google map in php

How to embed the user address using google map in php

If you want to display the user's address in google map in their profile’s page. It is very simple follow these procedure. Generally in user registration we store the user information like country, state, city or even taken the address fields. Do you want to display the user's address map on their profile page. You must need the address of the user. This...