Skip to main content

Posts

Showing posts from April, 2017

Using php print pattern

This is not new concept, you need to follow same concept like C programming to print number pattern in php. every time on interview ask question print pattern. this is important note please keep it. Output : Code : <?php for($a=1; $a<=5; $a++) { for($b=$a; $b>=1; $b--) { echo "$b"; } echo "<br>"; } ?> Now simple print one column then only one for loop use to print pattern  This is not new concept, you need to follow same concept like C programming to print star pattern or triangle of star. Output : Code : <?php for ($row = 1; $row <= 5; $row++) { echo "* </br>"; } ?> print * in square size as following manner and please follow following code : Code : <?php for ($row = 1; $row <= 5; $row++) { for ($col = 1; $col <= 5; $col++) { echo '* '; } echo "</br>"; } ?> PHP start pattern of trangle as output and code here : Output : Code ...

What is reCAPTCHA?

Captcha Purpose : captcha basically use for protect unwanted spam attach and unwanted person hacker, today trend on captcha code mostly use in signup, sign in process,contact us page etc as per user depend reuirement. Note : reCAPTCHA is not working on local or localhost, please run code on live server. What is reCAPTCHA? reCAPTCHA is a free service that protects your website from spam and abuse. reCAPTCHA uses an advanced risk analysis engine and adaptive CAPTCHAs to keep automated software from engaging in abusive activities on your site. It does this while letting your valid users pass through with ease. client side integration link are paste in your page which is show in step 1 in google and paste into header tag your projects, Advantage : 1-main things is reCAPTCHA is prevent spam, 2-robotics attack, 3-essay understand to human, 4-advance sequirites, 5-human effort channeling the time spend solving captcha into digitizing text, 6-captcha can not read by compute...

Load Data on Page Scroll using jQuery Ajax PHP from MySQL Database

Dozone of page loading when use page loading script or data load using php and jquery,when lots of data can load its required more and more time but you can divided data into segment then page loading speed is fast and faster that why use data loading script required. An example of infinite scrolling is your Facebook "News Feed" page. You may notice that when you scroll to the bottom of this page, new content will often load automatically, or you will be given a link to "Older Posts" which will load more content when clicked. Following advantage of load data into segment : 1-data load fast, 2-no required pagination, 3-loader can show, 4-use windows.scroll function,  which is great but how about loading database records automatically when user scrolls down to the bottom of the page? The technique can be seen in Twitter, Facebook and several other websites. Demo work as   Demo link : http://freeteachnology.hol.es/autoScroll/ Code Link : https://dri...

How to backup MySQL Database tables using php

if you want create backup or generate backup file using php, its is very simple and essay understand to everyone. and backup logic is very simple, Demo link : http://freeteachnology.hol.es/MysqlBackup/ Code link : https://drive.google.com/open?id=0BxmTZPVcu72fUjlIRWpUeHlOVzQ following code demo run as : One of the most important tasks any developer needs to do often is back up their MySQL database. In many cases, the database is what drives most of the site. Of course, you'll need to provide database credentials to the function, as well as an array of tables you'd like to backup. If you provide a "*" or no tables, a complete database backup will run. The script does the rest! In any situation we required a MySQL database tables backup with php scripting. Sometimes its helpful and its very simple to take backup MySQL database tables using php. Easy faster and very simple and clean script for getting your MySQL database backup. You must have the foll...