X

PHP

RESTful API Usage Functions in PHP

RESTful API Usage Functions in PHP
This part of article requires to read and use my previous article Creating A RESTful API With PHP and MySQL. Now, let’s extend the API class from the remote system. Let’s start RESTful API Usage Functions in PHP the system with login function. Every call and request directly affecting the site database. So we need authentication to provide access to the third-party API users. For ...

Creating A RESTful API With PHP and MySQL

Creating A RESTful API With PHP and MySQL
API service is one of a important service or feature to every dynamic website. Which will also helps you to share your data’s Among other Website and Devices as well. Creating An API Service is easy to make and provide access to outsiders with help of my code. Creating A RESTful API With PHP and MySQL is quite easy,if you follow the steps. Introduction When ...

Multiple File Upload in PHP With Database

Multiple File Upload in PHP With Database
Uploading Multiple Files Together in one time is a bit advanced than single file upload. My Previous Article File Upload in PHP With Database, Describes you to handle single file upload. Here I am going to use that article and create Multiple File Upload in PHP with Database. The Previous one, you can’t select multiple files with the form, the  form doesn’t allow you to select multiple ...

File Upload in PHP With Database

File Upload in PHP With Database
File Upload in PHP With Database. This is really necessary feature for every website. Most of us build a site with images and other downloadable files. And we need to collect images and files from users for further reference.  Let’s create a html form to handle file upload option from your website. Introduction PHP helps to handle the file uploads and keep it in a ...

Upgrading your php version on Ubuntu, Elementary OS

Upgrading your php version on Ubuntu, Elementary OS. Some of new frameworks required php recent versions to use it. Sometimes you need to  upgrade your php version to get new supporting features and also away from security issues.  Let’s see how to upgrade your php from Ubuntu, Elementary OS. Just check your existing php version by using phpinfo(). once you identify your version,you can goto next ...

Send PHP Mail with Reply-To Cc Bcc in PHPmailer or WordPress

Send PHP Mail with Reply-To Cc Bcc in PHPmailer or WordPress
Send PHP Mail with Reply-To Cc Bcc in PHPmailer or WordPress. With Help of composing PHP  to send a complete mail with CC, Reply-To, BCC. This article along with continues of my previous article  How to Create Contact Form with PHPMailer to send mails. You can create your contact emails with help of it. With this below code, you can send email to multiple copies ...

How to Get Real IP from Visitor

How to Get Real IP from Visitor. Sometimes, we need to keep track the visitors location, or we need to know the users location with help of IP Address to work a site based on the Visitors location with help of PHP. function kv_get_user_ip_address(){ if(filter_var(@$_SERVER['HTTP_CLIENT_IP'], FILTER_VALIDATE_IP)) return @$_SERVER['HTTP_CLIENT_IP']; elseif(filter_var(@$_SERVER['HTTP_X_FORWARDED_FOR'], FILTER_VALIDATE_IP)) return @$_SERVER['HTTP_X_FORWARDED_FOR']; elseif(filter_var($_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP)) return $_SERVER['REMOTE_ADDR']; } echo kv_get_user_ip_address();  

Paypal Refund a Transaction API and Sample PHP Code

Paypal Refund a Transaction API and Sample PHP Code
Paypal Refund a Transaction API and Sample PHP Code. Let’s create a class with PayPal Username, Password, Signature ,API end point and Version. private $API_Username, $API_Password, $Signature, $API_Endpoint, $version; And with in the class it will be like this. class KvPayPalRefund { private $API_Username, $API_Password, $Signature, $API_Endpoint, $version; } Here we have sandbox Credentials and Live Credentials. So let’s create a constructor to make it ...

Send E-mail From Localhost on Ubuntu with PHP

Send E-mail From Localhost on Ubuntu with PHP
Send E-mail with Localhost on Ubuntu with PHP. The Ubuntu Operating Environment is good for web developers. so mainly you require sometime to send email from localhost. Also you might be necessary to check the email features from localhost development time. Here I have a small tutorial, Which will help you to send email from localhost. you can configure it very well. Just follow the ...

GoDaddy Remove php Extension

GoDaddy Remove php Extension
GoDaddy Remove php Extension is also similar with removing html extension, just quite similar way to do that one. There are some difference in writing `.htaccess` on godaddy hosting and other hosting service. Even apache has some different settings from each hosting service provider. Generally, Godaddy has some extra measures on coding.  Let’s see the `.htaccess` code to hide `.php, or, .html or .any extension` ...

Menu

Sidebar

Subscribe E-mail Updates

Subscribe to our email newsletter.

 

Advertisement

Category Posts