Sometimes in our code of PHP development we need some way to display the value of an array or object for our ease of coding. For this we generally take help of the PHP builtin functions like print_r() or var_dump() etc. But we have much more flexible ways to do these and sometimes its very easier and time saving. The way is using FirePHP with FireBug.
This is a small jquery plugin utility which notifies on a new update from server. This can be controlled by an AJAX query or can be controlled by web sockets. This notification can also be opened using the HTML default event handlers. In HTML5 supported browser the notification will make a alerting sound to catch the attention. The following image is a preview of this small plugin.
Codeigniter is used in many websites today. Libraries are the power of it. In most of the cases we have two section in our websites.
- The public part that is visible to the world
- The private one which is only accessible to the owner
Depending on these requirements we need authentication system implemented in our site. PHP uses session to store user data while he logs in. In the front end, general users login to view their private pages. And in backend administrator logs in to manage the site.
This authentication library class is developed in a very flexible manner. You can use it very easily. Follow these steps to activate the authentication control in your development. Read the rest of this entry
Read the rest of this entry
This is a very easy example of registration form that is generally needed to be implemented in most of the sites today. This example can be copied to any project to implement the form there. It supports the following -
- jQuery Validation
- jQuery Ajax Submit
Follow these steps to make SEO supported URL
1. Lgin to the wp-admin
2. go open permalink settings
WordPress installation need few easy steps and you will have a brand new blog of your own. This is a fantastic platform and very very easy to use.
Follow these images to install wordpress -
1. search “Download wordpress” in google. Click the first search result
This form may be used to insert multiple set of data. Multiple set of records can be inserted at a single click in the “Submit” button. This is highly efficient in the case of bulk data entry. Here is a set of jQuery and PHP code which will perform as per the requirement.
To implement the code you have to activate jQuery first. Then you have to include the “lzmultiform” jQuery plugin (two files the .js and .css) and initialize it on document load for the form you want to activated it for. This plugin will create an interface on top of the form, by which user will be able to increase the number of field sets.
Sometimes we need to display grand total of an invoice in words. This function helps us to achieve that goal. This is a utility function which you can put into your functions file (where you store all your custom functions).
It is easier to manage classes with its own file. If you create an email class then it should be saved in a file named mailer.php This class may need many other classes, the problem begins here. Now you must have to include all needed class files in the mailer file to work properly. But if you have a much bigger framework to work with, then it will be hard to manage the long list of file inclusion manually.
In PHP5 we have a solve for this problem. You may define an __autoload function which is automatically called in case you are trying to use a class/interface which hasn’t been defined yet.