X

PHP

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` ...

Passing JavaScript Array To PHP Through JQuery $.AJAX

Passing JavaScript Array To PHP Through JQuery $.AJAX. Sometimes you need to process an array of data through php.  But we have the Array in JavaScript. So we need to pass the whole array in a variable.  We have two options. JSON String Direct array Direct Array : This one is simplest method to pass the data’s from JavaScript to php.  Just add the Array ...

Illegal string offset Warning PHP

Illegal string offset Warning PHP. Whenever you see this error. you will feel that its messed up our code. But its a simple mistake we did it on the array of parameter.  Normally we have an array with key and its value as like the following one. <?php $test_array = array( 'first_key' => 'first', 'second_key' => 'second', 'third_key' => 'third', 'four_key' => 'four' ); ?> ...

Menu

Sidebar

Subscribe E-mail Updates

Subscribe to our email newsletter.

 

Advertisement

Category Posts