Php

How to integrate google custom search to your website?

How to integrate google custom search to your website?

Jquery, Php, Readymade Scripts
How to integrate google custom search to your website?:Google custom search is the best search tool which you can integrate to your website. If you are using any CMS(wordpress, joomla etc.,) softwares for your blog/site , then lot of ready-made plugins are exist. One important drawback with google custom search is it searches only from the google indexed pages. So if your website is new and integrated with google custom search then google may not search and provides the results as expected because it would have not indexed all your pages.   Requirements: Google custom search Javascript code. Steps are shared below. Bootstrap CSS & JS jQuery   Note: All the css & JS files you will get when you download this project.      ...
Responsive Dynamic Header using jQuery, PHP & Bootstrap

Responsive Dynamic Header using jQuery, PHP & Bootstrap

Jquery, Php
Responsive Dynamic Header using jQuery, PHP & Bootstrap: Dynamic header is providing the dynamic content for both logged in and logged out users differently. In our example here we have Login button at the right top and some content in the page. If you click Login it will be changed as my accounts and even the contents in the page changes dynamically. This is the approach followed in many websites for dynamic header to achieve simple and easy interface for better usability.     Requirements: jQuery & Bootstrap JS files [you will get it when you download this project] Bootstrap CSS   Steps: 1. Create a index.php file $loginSuccess is 1 when user is logged in, value change and user logins are tracked in dynamicHeader...
How to enable xdebug in xampp?

How to enable xdebug in xampp?

Php
How to enable xdebug in xampp ? If you are running your PHP or PHP/MySQL project using XAMPP then enabling xdebug will be very easy, since xdebug will be already included in the xdebug. We just have to enable xdebug in php.ini to start debugging.   open the php.ini file which will exist in this location,   C:\xampp\php   Note: File location may vary based on your xampp path.       php.ini file: uncomment the below two lines, zend_extension = "C:\xampp\php\ext\php_eaccelerator.dll"   zend_extension = "C:\xampp\php\ext\php_xdebug.dll"     The above lines will exist already in the php.ini file, you have to just uncomment it, if you could not find then after ensuring that xdebug in xampp is exist alread
Alexa website rank script using PHP, jQuery, Bootstrap and Ajax

Alexa website rank script using PHP, jQuery, Bootstrap and Ajax

Jquery, Php, Readymade Scripts
Alexa website rank script using PHP, jQuery, Bootstrap and Ajax: Alexa is a very popular and trusted site to give the rank for all the websites. It is a successful website ranking product of amazon. They are having many developer API to display every websites country and world rank. You can make use of this API to display any websites rank in your websites/mobile apps. Today we are sharing here the readymade Alexa website rank script using PHP, jQuery, Bootstrap and Ajax. We made it as responsive to help all type of users by supporting all devices. If you are planning to start alexa website rank site or planning to create a mobile app to display the alexa website rank then this script can help you. Script can be added to your existing websites/apps for website ranks.

[Solved] Notice: Use of undefined constant

Errors and solutions, Php
Notice: Use of undefined constant :   This is one of the familiar exception in PHP.   Example PHP Source code which creates notice: use of undefined constant [php] define(HOST, 'localhost'); define(USERNAME, 'root'); define(PASSWORD, ''); [/php]     How it can be solved ? [php] define('HOST', 'localhost'); define('USERNAME', 'root'); define('PASSWORD', ''); [/php]     Feel free to post your comments......
curl post php example with json response

curl post php example with json response

Php
CURL: CURL is basically to hit the url through GET/POST request and to receive the response. Response can be anything. [JSON/XML/plain string]   When I was searching for the sample curl post php example program in internet, I could not find the proper executing programs. So I wrote my own program and sharing here to help our blog users.   In the below sample program, you can directly give the URL and post parameter names and values and proceed your business logics.   Genius API : We have used GeniusAPI to retrieve the song lyrics information's based on the artist name. This request returns JSON response.     curl post php example with json response: [php] <?php $ch = curl_init(); // Give your post request details [name and val
PNR Status Script using PHP, jQuery and Ajax

PNR Status Script using PHP, jQuery and Ajax

Articles, Jquery, Php, Readymade Scripts
PNR Status Script: Update: Demo may not work as expected, because the testing key provided by the "railwayapi.com" got expired.   You can create your own key and substitute that in the script and run to get the expected results / PNR status.   Are you planning to develop any PNR alert, status website or any mobile apps ? (or) planning to integrate the PNR status script to your existing website. ?   We have provided here how to get the PNR status programmatically using third party API's and provided the complete source code of the PNR Status Script. we have developed PNR status script using PHP, jQuery and Ajax and also, JSON and Bootstrap 3.     PNR Status Free API's: 1. eRail PNR API 2. Rail PNR API 3. Railway API 4. Mashap
Freecharge Paytm style mobile number auto operator loading

Freecharge Paytm style mobile number auto operator loading

Jquery, Php
Freecharge Paytm style mobile number auto operator loading using PHP, jQuery and MySQL: Are you designing online recharge website like freecharge/paytm. ? or similar functionality website? If yes then what we are going to see today is very mandatory one need to be implemented to your website. Loading operator information automatically based on the given input prepaid mobile number make the user to feel very friendly and helpful because he do not want to keep the operator information also in memory.       MySQL Database - Opr Table Structure & Sample Values: If you download zip file using the above download link, then you can get the opr.sql file, which you can directly import it into your xampp phpmyadmin. If you do not have an idea on how to impo
md5 vs sha1 in php

md5 vs sha1 in php

Php
md5 vs sha1: Cryptographic technics needs to be implemented in all the areas of web developments mainly user details, payment gateway pages etc. to make our system more secure. we have lot of cryptographic technics and today we are going to see md5 and sha1, because these both technics plays more role to make the systems secure.     md5 and sha1's are really encryption technics ? No. md5 and sha1's are really not a encryption technics, which means md5 hash value of any string will not have the original string message in the converted md5 hash value and also all these technics does not have the decryption's. These technics are one way converted hash values, meaning we can not retrieve the original string from the converted md5 or sha1 hash values.   md5 v...
Preview Image before upload using Jquery and PHP

Preview Image before upload using Jquery and PHP

Jquery, Php
Preview Image before upload using Jquery and PHP: Image uploading is basic mandatory functionality in any applications where we need to upload user/customer profile pictures. But manytimes there is a chance to upload the wrong image by mistake if we do not have the option to preview it before uploading. To put dot to this issue, we are sharing the tutorial on how to preview the image before uploading using jquery in php.   We have also shared the PHP source code here to move the uploaded image file to server path. We can upload the gif,png and jpg files. We have used bootstrap to make the colorful UI.   Required Imports: We have imported bootstrap library files also for better UI, but only jQuery is enough to implement the preview before image upload, s...