Tuesday, March 22, 2016
7 Cool Clock Tutorials with jQuery
Before you are going to build something, please search for it if it is existed or not. If it were existed, please kindly to try to use it as much as you can to get the existed concepts from the existed things.
Before you are going to build your very own beautiful clock with jQuery + CSS, I would like to show you some tutorials that show you how to build a very cool clock using only jQuery and CSS.
Before you are going to build your very own beautiful clock with jQuery + CSS, I would like to show you some tutorials that show you how to build a very cool clock using only jQuery and CSS.
1. HTML clocks using JavaScript and CSS rotation
2. A Colorful Clock With CSS & jQuery
3. CSS3 Digital Clock with jQuery
4. Lwangaman's dynamic jquery clock plugin
5. Old School Clock with CSS3 and jQuery
6. jDigiClock / Digital Clock (HTC Hero inspired)
7. CoolClock - The Javascript Analog Clock
I hope you have learnt something today with TipPHP. If you have any question please leave a comment below, we will try to help you as much as we can.
Thank you for reading our blog.
Best PHP Frameworks for Beginner
Now a day, there are many PHP framework such as: CodeIgniter, Yii, Laravel, PHPCake, Zend etc. If you are a beginner PHP Developer who want to develop website with PHP Frameworks, we recommend you to try CodeIgniter.

CodeIgniter is a powerful PHP framework with a very small footprint, built for developers who need a simple and elegant toolkit to create full-featured web applications.

It's really easy, best for small projects, very well documented and you find all the answers to your questions on the internet.
Once you're familiar with it, you can start with another framework like CakePHP, Yii and Zend.
Get Started Now
CodeIgniter is a powerful PHP framework with a very small footprint, built for developers who need a simple and elegant toolkit to create full-featured web applications.

Why CodeIgniter?
- Framework with a small footprint
- Clear documentation
- Compatibility with standard hosting
- No restrictive coding rules
It's really easy, best for small projects, very well documented and you find all the answers to your questions on the internet.
Once you're familiar with it, you can start with another framework like CakePHP, Yii and Zend.
Get Started Now
phpDesigner 8 Best IDE for Your Next PHP Projects
phpDesigner 8 is a fast PHP IDE and PHP editor with built-in HTML5-, CSS3- and JavaScript editors boosted with features to help you create amazing websites. phpdesigner


The main pro of this one is that it's NOT Java based. This keeps the whole thing quick.
Features:
- Intelligent Syntax Highlighter - automatic switch between PHP, HTML, CSS, and JavaScript depending on your position!
- PHP (both version 4 and 5 are supported)
- SQL (MySQL, MSSQL 2000, MSSQL 7, Ingres, Interbase 6, Oracle, Sybase)
- HTML/XHTML
- CSS (both version 1 and 2.1 are supported)
- JavaScript
- VBScript
- Java
- C#
- Perl
- Python
- Ruby
- Smarty
PHP:
- Support for both PHP 4 and PHP 5
- Code Explorer for PHP (includes, classes, extended classes, interfaces, properties, functions, constants and variables)
- Code Completion (IntelliSense) for PHP - code assist as you type
- Code Tip (code hint) for PHP - code assist as you type
- Work with any PHP frameworks (access classes, functions, variables, etc. on the fly)
- PHP object oriented programming (OOP) including nested objects
- Support for PHP heredoc
- Enclose strings with single- or double quotes, linefeed, carriage return or tabs
- PHP server variables
- PHP statement templates (if, else, then, while…)
- Powerful PHP Code Beautifier with many configurations and profile support
- phpDocumentor wizard
- Add phpDocumentor documentation to functions and classes with one click!
- phpDocumentor tags
- Comment or uncomment with one click!
- Jump to any declaration with filtering by classes, interfaces, functions, variables or constants
Debug (PHP):
- Debug with Xdebug
- Breakpoints
- Step by step debugging
- Step into
- Step over
- Run to cursor
- Run until return
- Call stack
- Watches
- Context variables
- Evaluate
- Profiling
- Multiple sessions
- Evaluation tip
- Catch errors
Monday, March 21, 2016
Change default jQuery Validation
This jQuery plugin makes simple client side form validation easy, whilst still offering plenty of customization options. It makes a good choice if you’re building something new from scratch, but also when you’re trying to integrate something into an existing application with lots of existing markup. The plugin comes bundled with a useful set of validation methods, including URL and email validation, while providing an API to write your own methods. All bundled methods come with default error messages in English and translations into 37 other languages.
So, in this tutorial I will show you how to change the default standard messages of its plugin.
jQuery.extend(jQuery.validator.messages, {
required: "This field is required.",
remote: "Please fix this field.",
email: "Please enter a valid email address.",
url: "Please enter a valid URL.",
date: "Please enter a valid date.",
dateISO: "Please enter a valid date (ISO).",
number: "Please enter a valid number.",
digits: "Please enter only digits.",
creditcard: "Please enter a valid credit card number.",
equalTo: "Please enter the same value again.",
accept: "Please enter a value with a valid extension.",
maxlength: jQuery.validator.format("Please enter no more than {0} characters."),
minlength: jQuery.validator.format("Please enter at least {0} characters."),
rangelength: jQuery.validator.format("Please enter a value between {0} and {1} characters long."),
range: jQuery.validator.format("Please enter a value between {0} and {1}."),
max: jQuery.validator.format("Please enter a value less than or equal to {0}."),
min: jQuery.validator.format("Please enter a value greater than or equal to {0}.")
});
Configure PayPal with Instant Payment Notification
1- Login to your PayPal Business Account
2- Go My Account -> Profile -> My selling tools
3- Click update on Website preferences
4- Choose off for Auto Return and remove the url inside
5- Choose off for Payment Data Transfer
6- Click save button
7- Go to Instant Payment Notification Preferences
8- Enable IPN message -> Pass your notification URL
9- Save
More detail about IPN
4- https://www.paypal.com/kh/cgi-bin/webscr?cmd=p/acc/ipn-subscriptions-outside Check OS and Browser Agent with PHP
The user agent string is a text that the browsers themselves send to the webserver to identify themselves, so that websites can send different content based on the browser or based on browser compatibility.
Mozilla is a browser rendering engine (the one at the core of Firefox) and the fact that Chrome and IE contain the string Mozilla/4 or /5 identifies them as being compatible with that rendering engine.
In this case I will show you how to detect the Os or Browser Agent using PHP ,
* Check OS
$agent = $_SERVER['HTTP_USER_AGENT'];
// get os
if (preg_match('/linux/i', $agent)) {
$os = 'linux';
} elseif (preg_match('/macintosh|mac os x/i', $agent)) {
$os = 'mac';
} elseif (preg_match('/windows|win32/i', $agent)) {
$os = 'windows';
}
* Check Browser Agent
if (preg_match('/Chrome/i', $agent)) {
if ($os == 'windows') {
//impleted;
} else {
//impleted;
}
} elseif (preg_match('/Firefox/i', $agent)) {
if ($os == 'windows') {
//impleted;
} else {
//impleted;
}
} elseif (preg_match('/Safari/i', $agent)) {
if ($os == 'windows') {
//impleted;
} else {
//impleted;
}
}
- Let's enjoy!







