Ajax C#(cSharp) Javascript PHP 

How to create server side session using javascript

It is possible to create a server-side session using javascript for any server-side programming language like PHP, C#, Python etc. by just calling server side function using ajax calls as shown below. To do that, first create a server side application file and write the session variables which you want to set, then in client side javascript just pass the data which you need to set as a session to the server side application function using Ajax call as shown in below examples First, we will take an Example of C#/Asp.net. Javascript…

Read More
sendinblue logo C#(cSharp) Email Integration PHP 

How to Integrate Sendinblue Transactional Email

Send in Blue is one of the good campaign, Marketing, and Transactional Email integration system. Features of Send in Blue are: In Free Service only You Can Send 9000 emails/Month and there is no contacts limit to send (can send to 9000 unique contacts). Per day you can send 300 Email and 40 emails /hr, this may increase/decrease based the reputation you get from sendinblue. it is purely judge based on the emails you send. This all above is applicable if you are using a free version, if it’s an upgraded…

Read More
mobile-device-detection-in-php PHP 

How to Detect Mobile Browsers and Redirect site in PHP

Nowadays responsive designs are must for better display of the websites and all prefer to use it. So in this, We have used a PHP class Mobile-Detect it uses the User-Agent string combined with specific HTTP headers to detect the mobile environment. Get this class file from GitHub. index.php Contains PHP code to detect device and redirect if the device is mobile or tablet.   PHP with Ajax multiple file upload   Arjun JSArjun is is a web developer/designer, who is fond of the web. He lives in Manipal, Karnataka, India….

Read More
Ajax PHP 

PHP with Ajax multiple file upload

Please go through the following steps to implement PHP with Ajax multiple file upload. Step 1: Create a file called index.php and add below codes Step 2: First create folder called “images”, and then create 2nd file  called upload.php Click here for github file Repository Arjun JSArjun is is a web developer/designer, who is fond of the web. He lives in Manipal, Karnataka, India. http://arjunckm.in

Read More
API's MySql PHP Web API 

Google API to Calculate a Distance in PHP / Mysql

I actually had a hard time finding some of the Geographic calculations to find the distance between two locations so I wanted to share them here. If you remember ‘the old days’ of calculating a distance between two points, it was simply the hypotenuse of a triangle (A² + B² = C²). That’s an interesting start but it doesn’t apply with Geography since the distance between lines of latitude and longitude are not an equal distance apart. As you get closer to the equator, lines of latitude get further apart….

Read More
Integration Payment Gateway PHP 

CCAvenue payment integration using PHP

CCavenue payment gateway is simple to integrate and the following are things you need before integrating. We need a merchant id and working for implementing payment gateway These two details will be given by CCavenue They use a redirect model for payment ie the user will be rediected to there site for making the payment Before for sending the details to CCavenue we need to save the details so that we can verify the details after the payment we need to generate a signature(checksum) that is it contain some details like amount,…

Read More

How to Create a Secure Login Script in PHP and MySQL

1.Create a MySQL database. Log into your database as an administrative user (usually root) In this guide we will create a database called “secure_login”. See how to Create-a-Database-in-Phpmyadmin. You can either use the code below or do the same thing in phpMyAdmin/your favourite GUI MySQL client, if you prefer: 2. Create a user with only SELECT, UPDATE and INSERT privileges. Creating a user with restricted privileges means that if there was ever a breach of security in our script the hacker couldn’t delete or drop anything from our database. Using…

Read More