logo

transactions

Today I came across mysql transactions here we will learn (mysql transactions core php and cakephp). it is really very important and in most cases there is no alternative to it. Most of the time we have to insert, update and delete in multiple tables while performing single process. Do not consider this transaction the Bank transaction, this transaction is […]

Read more
php echo without waiting finish execution

most of the time we get into some task which require longer than normal to complete execution due to long execution time it is hard to echo output instantly before the completion of execution, Normally when we write echo inside loop it echos it out after full page execution gets done. which does not look good when we are debugging […]

Read more
creating virtual hosts

When we install WAMP or XAMP for development purpose, it has one Virtual Host by default that is localhost. all projects or websites we create are sub-folders in that single Virtual Host. and can can only put our projects inside default folder www for WAMP and htdocs for XAMP. when we access our projects our urls are something like the […]

Read more
Apache Get Set Environment Variables

like windows Environment Variables we have some variables at Apache/PHP level, there are some default Environment Variables while we can also set our custom variables according to need of our application. Scope wise these are Super Global Variables, although we can limit our custom vars to our application only we have discussed it step 4 below. Lets have a look […]

Read more
server to server copy files via php

Last week I wanted to switch my web hosting server, after getting my new hosting server the most difficult and time taking task was how to accurately and quickly copy files from old server to new server. Normally we upload and download our website files to/from server using some FTP client like filezilla or fireFTP etc, but when we want […]

Read more

To demonstrate Ajax based form submission without refreshing the page contact form will be best and easy example as it has few and general input fields, moreover we can make it more secure implementing captcha etc. Before starting download this github zip file containing all the coding for this project, you will need font file while doing yourself along with […]

Read more

Most of the time while developing e-commerce applications we need to generate Bar Code for items we are selling, we need to create a script which can generate bar codes for all items or products, most commonly it holds item number which is primary key of that item in our database, but we can also store other information too. I […]

Read more
QR Code

In this article your will learn how to generate QR Code easily with PHP. In today’s era where most of the technology running over mobile devices, reading long URL, email or other strings to send to some one else is difficult, that’s why we use QR Codes, as it is machine readable it can not be read by humans normally. […]

Read more

Create you own custom captcha easily in PHP, before coding I want to explain what is Captcha and how it works? Captcha is used to distinguish human from given input, and it is ensured that form is submitted by human. Generally computers or bot are not capable of solving a Captcha. Bots are kind of software which has database of […]

Read more
flash messages via session

Handle user flash messages via session variables which is more professional and easy to manage, How we can display these messages in traditional way, developers know how they display messages and update users about status of user operation(s) like record save successfully record updated successfully Failed to create account, please try after a while Most of new developers manage these […]

Read more