Sometimes it is required to use a masked input box on a webpage for this i use the following
jQuery library. It allows a user to more easily enter fixed width input where you would like them to enter the data in a certain format (dates,phone numbers, etc).
http://digitalbush.com/projects/masked-input-plugin/#demo
This website is dedicated to common, day to day programming and database related Frequently Asked Questions. Popular Programming and Database Articles under one blog
Wednesday, November 4, 2009
Wednesday, October 21, 2009
Cool Tooltip - JQuery
Please refer to the following page for demo
http://cssglobe.com/lab/easytooltip/03.html
To download code
http://cssglobe.com/post/4380/easy-tooltip--jquery-plugin
http://cssglobe.com/lab/easytooltip/03.html
To download code
http://cssglobe.com/post/4380/easy-tooltip--jquery-plugin
Wednesday, September 9, 2009
Top 7 PHP Security Blunders
PHP is a terrific language for the rapid development of dynamic Websites. It also has many features that are friendly to beginning programmers, such as the fact that it doesn't require variable declarations. However, many of these features can lead a programmer inadvertently to allow security holes to creep into a Web application. The popular security mailing lists teem with notes of flaws identified in PHP applications, but PHP can be as secure as any other language once you understand the basic types of flaws PHP applications tend to exhibit.
Tuesday, September 1, 2009
Improving Performance by Profiling PHP Applications
One of the best things about programming in PHP is how easy it is to learn the language and its libraries. Everything seems to fit together and you can almost guess how to do a specific task, even not knowing much about the function that you need to use. A lot of times you will just try doing something and be surprised that the language has that specific feature.
PHP performance tips
Profile your code to pinpoint bottlenecks
Before changing your code, you'll need to determine what is causing it to be slow. You may go through this guide, and many others on optimizing PHP, when the issue might instead be database-related or network-related. By profiling your PHP code, you can try to pinpoint bottlenecks.Friday, August 28, 2009
PHP global arrays
The Global Array List
| Old Form | New Form | Description |
|---|---|---|
-- | $GLOBALS[] | The complete list of all global variables, including user defined variables at the global level. |
$HTTP_GET_VARS[] | $_GET[] | All variables received as part of a query string in the requesting URL, or HTML form data transmitted using the GET method. |
$HTTP_POST_VARS[] | $_POST[] | All variables recieved as an inline posted data set, normally through using the POST method in an HTML form. |
$HTTP_POST_FILES[] | $_FILES[] | References to all files received, most commonly from HTML forms, using the POST method. |
$HTTP_COOKIE_VARS[] | $_COOKIE[] | Any cookies returned from the client. The index key name matches the cookie name. |
-- | $_REQUEST[] | A more recent addition that stores all user variables, including elements from the $_GET[], $_POST[], and $_COOKIE[] arrays. Prior to PHP4.3, this also includes the $_FILES[] array. |
$HTTP_SERVER_VARS[] | $_SERVER[] | Information about the server session and the HTTP connection with the client. |
$HTTP_ENV_VARS[] | $_ENV[] | Information about the server environment and system defined values. |
$HTTP_SESSION_VARS[] | $_SESSION[] | IF PHP is being used for session management, this array is to store any session variables that need to be stored on the server between calls from the client. |
Subscribe to:
Posts (Atom)