Friday, 26 December 2014

Codeigniter new framwork release name is CIBORNFIRE

This is part 2 of a small tutorial that copies along the TutsPlus Ribbit project in CodeIgniter and Bonfire. Last time we managed to get the front of the site…
Continue Reading

Google Introduced a Google Wallet – Makes Your Phone Your Wallet

See Google Wallet into Action 

Using near field communication (NFC) technology Google has launched a new service called Google Wallet. Google Wallet is an Android app that makes your phone your wallet. It stores virtual versions of your existing plastic cards on your phone, along with your coupons, and eventually, loyalty and gift cards. Google Wallet will be an open mobile wallet holding all the cards and coupons you.

What is Google Wallet?

Google Wallet enables you to pay with your Citi MasterCard credit card and the Google Prepaid Card, which can be funded with any of your existing plastic credit cards. And, Currently Google is working on to extend this future to Visa, American Express and Discover cards also.
Google is adding a $10 free bonus to the Google Prepaid Card if you set it up in Google Wallet before the end of the year.

Can I use Google Wallet with my phone?

Google Wallet with tap and pay is compatible with Nexus S 4G by

Google, available on Sprint®.

If my phone is eligible, how do I get Google Wallet?
Google Wallet will be automatically pushed to Nexus S 4G phones on Sprint® as part of a software update.
What is near field communication (NFC) technology?
NFC is a wireless technology that enables data transmission between two objects when they are brought within a few inches of each other. Smartphones enabled with NFC technology can exchange data with other NFC enabled devices or read information from smart tags embedded in posters, stickers, and other products.
How much does it cost to use Google Wallet?
Nothing. Google Wallet is a free app. As an added bonus, for a limited time we’re giving new users $10 USD on the Google Prepaid Card upon activation of the card.

How does Google Wallet relate to Google Checkout?
Google Checkout is a service that enables merchants to accept and process online payments. Google Wallet, on the other hand, is a mobile app that enables users to tap and pay at physical, brick and mortar stores.
Google saying this “Google Wallet” as next big shit after coins, paper money and plastic credit cards.
You can read more FAQ about Google Wallet here.
Know more about Google Wallet and get help from official Google Wallet FAQ section. Lets hope that Google makes it a huge success. What do you think about Google Wallet? Share with us.
New Google Wallet - Makes Your Andorid Phone Your Wallet
Continue Reading

Thursday, 25 December 2014

Easy PHP Hit Counter Tutorial

A hit counter is simply a script which counts the number of times web pages have been accessed. Generally, this is essential since it allows both the visitors and the owner of the web page to be aware of how the page is popular. A simple hit counter can hassle free be created with PHP in just 9 lines of code. 
Note that this counter will count only the number of times the web page has been accessed, although, it will fail to count the number of the unique visitors. 
The Basics
A simple PHP HIT counter is meant to easily update the text file, that often keep the track of the number of times the page has been accessed. Typically, the PHP script is supposed to read the current number present in the file. It then adds digit 1 to the number then writes to the file the number and finally closes the file. 
The script then is embedded into the html on the page in order to be easily executed each time the web page is accessed. 
The Script
A simple hit counter script basically looks like this: 
>?php$ filename= “hits.txt” GO count =file ($ filename) Go$ count {0} = = GO file= fopen ($ filename, “w”) or die (“Cannot find $ file name”) GO fputs ($file, “$count[0]”) GO fclose ($ file) GO echo$ count [0]GO ?>
Generally the file name variable usually hold the name of the text-file with hit count in it. 
Each time you happen to add the script to the web page, it is important that you make sure you as well add a test file referred to as hits.txt’. However, it should only be with the digit “0” in it specifically to the directory whereby your web page is held. 
The $ count variable normally accesses the values with the file’ performance. This performance is meant to read the whole file into an array. Typically, in such a case the array is supposed to have only one value. Eventually, the line count {0}+ +,’then increases the value by 1. The file then is opened with fopen’ function. Note that the w’ in that specific function usually allows the files to have write accesses. Basically, if the file fails to be there, the text will be returned cannot locate hits.txt’ and then the script ends. However, if the file happens to be successfully opened, the fput’ function is supposed to write the new $ count value to your file. Your file will then be closed with fclose’ function. 
The last line of script, echo$ count {0,’ will write the hit count to your screen. However, note that in case you do not need the hit count visible, either you can live out that line, or comment it out simply by replacing this symbol i.e. # at the start of the line. 
Embedding your Code
Try saving your code as follows i.e. /’hits.php/’ and then place in the a similar directory as that of your webpage. If for instance, the web server you have is Linux server, ensure that both the /’hits.php/’ is executable and /’hitys.txt/’ file is writable by world by typing the command /’chmod 755 hits.php/’
Last but not the least; you can then test the code simply by reloading your page. Note that if the counter happens to increase, it will mean that you’ve set each and everything correctly. However, if it fails to work, check the code for typos and ensure there’s a semicolon at each of the line’s end. If you want to know more about A PHP tutorial + code kindly ensure that you carefully go through the aforementioned write up. Thank you.
Continue Reading

Mod rewrite tutorial. Creating seo frendly urls in php

Hello dear readers.
In this tutorial i will explain in deepth how to make your url's beautiful and better for seo.

Benefits of mod_rewrite:

1) they are beautiful
Lets take an example:
Non rewrited url:
http://facebook.com/profile.php?id=12324231
Rewrited url:
http://facebook.com/PhpTutorials
Cool isnt it ?
2) Security
mod_rewrite is build in security
You can use some kind of filters who allow only 0-9 or a-z etc.. by not allowing dangerous charachters

Lets move on

To make mod_rewrite work we must go to apache http.conf and add this line:LoadModule rewrite_module modules/mod_rewrite.soThen restart apache.
Now at root open or create .htaccess if you havent it
Lets for example rewrite the profile.php url:
RewriteEngine On
RewriteBase /
RewriteRule ^profile/([a-zA-Z0-9-!./]+).html$ profile.php?id=$1
Continue Reading
Designed By Blogger Templates