Sunday, November 7, 2010

Last Insert Id of Embedded Form in Symfony

To get the last inserted id of an embedded form in symfony is pretty easy. But for that I had to search the internet whole day. So, I think I must share my experience with other people so, they can also know the ways to do that.

We know the code to embed form. It is simple.
$this->embedForm('billing', $billingform);
$this->embedRelation('CustomerToBill');    
Then when you are saving it, suppose, now you want to have the id of the embed form to use the value in another table with the same request.

Then you need to add the following in the form.
public function saveEmbeddedForms($con = null, $forms = null)
{
if (null === $con)
{
$con = $this->getConnection();
}

if (null === $forms)
{
$forms = $this->embeddedForms;
}

foreach ($forms as $form)
{
if ($form instanceof sfFormObject)
{
$form->saveEmbeddedForms($con);
$form->getObject()->save($con);
print_r($form->getObject()->getId());die();
}
else
{
$this->saveEmbeddedForms($con, $form->getEmbeddedForms());
}
}
}

To get the last insert id of the embed form I use
$form->getObject()->getId();
Thant's it.


See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

Saturday, July 24, 2010

Documentation of Boxy tab

We will going to see a css only boxy tab. I use only css to create this tab. See the image of boxy tab:

Boxy tab

The blue color will available for the hover tab.

First let's see the html structure for this tab.


And we applied the following css for our tab:

ul#nav {
    position: relative;    
    float: left;
    width: 99%;
    height: 150px;
    border-bottom: 1px solid #d9d9d9;
    border-top: 1px solid #d9d9d9;
    border-left: 1px solid #d9d9d9;    
}

ul#nav li {
    float: left;
    list-style: none;
    border-bottom: 7px solid #a9a9a9;
    border-left: 1px solid #a9a9a9;
    border-right: 1px solid #a9a9a9;
    border-top: 2px solid #a9a9a9;
    width: 156px;
    height: 140px;
    background-color: #fcfcfc;
}

ul#nav li:hover {
    border-bottom: 7px solid #0066cc;
    background-color: #f9f9f9;
}


ul#nav li a {
    color: #a9a9a9;
    position: relative;
    z-index: 2;
    float: left;
    font-size: 15px;
    text-decoration: none;
    padding: 35px 15px;
    font-weight: normal;
    letter-spacing: 1px;
    word-spacing: 5px;
    width: 140px;
    height: 140px;
}

ul#nav li a:hover {
    color: #0066cc;
}

ul#nav #selected {
    border-bottom: 7px solid #0066cc;
}

ul#nav #selected a {
    color: #0066cc;
}

You can download the code from here


See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

Download Boxy tab

We have seen the documentation of Boxy tab. You can download boxy tab from here.

Thanks for interest. Stay with us for more tahSin's gaRAge products.

See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

Thursday, July 22, 2010

Documentation of My Form validation of codeigniter

We have seen the weakness of Form validation class for codeigniter. Let's see how we can fix this short comings. I have an extended Form validation class of codeigniter. we will discuss it here:

First of all, we are going to combine our $_FILES and $_POST variables together. we use php's array_merge to merge them.

/**
     * Constructor
     *
     * @author Tahsin Hasan 
     * @return void
     * @access public
     */
    public function __construct() {
        $_POST = (count($_FILES) > 0) ? array_merge($_POST,$_FILES) : $_POST;
        parent::__construct();
    }

After merging them together, we call our parent constructor function.
/**
     * Allowed types rule
     *
     * @author Tahsin Hasan 
     * @return bool
     * @param  str String field name to validate
     * @param  types String allowed types
     * @access public
     */
    public function allowed_types($str, $types)
    {
        $type = explode(',', $types);
        $filetype = pathinfo($str['name'],PATHINFO_EXTENSION);
        return (in_array($filetype, $type)) ? TRUE : FALSE;
    }

We are using two new rules for upload functions: allowed_types and max_file_size. In the allowed_types function we can set a range of allowed file types for our uploaded file.

/**
     * Setting maximum file upload size
     *
     * @author Tahsin Hasan 
     * @return bool
     * @param  str String field name to validate
     * @param  size Integer maximum upload size in bytes
     * @access public
     */

    public function max_file_size($str, $size)
    {
        return ($str['size']<=$size) ? TRUE : FALSE;
    }
In the max_file_size rule we checking the uploaded file whether it is uploaded in the specified file upload size.
See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

Weakness of codeigniter Form Validation

Codeigniter Form Validation is a very popular validation library. we use this library quite extensively. But it has some short comings. we will discuss the shortcomings here.

the Form Validation library only validates $_POST fields. so, if we have a upload image in our form, this validation library always shows that the uploaded field is empty.

we set the validation rule for our upload field as follows:

$val->set_rules('userfile', 'Profile Picture', 'required');

This is because our uploaded file resides in the $_FILES variable, not in the $_POST field. So, we need to make some way to validate our $_FILES variable.

See my extended Form Validation library for codeigniter. This weakness has been overcome.

Other Links:

Documentation of Codeigniter Extend MY Form Validation Library.

See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

How to use MY extended Codeigniter Form Validation Library

We have seen the documentation of Codeigniter Form Validation library. now we will see how we will use it in our coding.

First, we need to download our library. Then we need to place it under the Application-> library folder.

As it is an extended version of Form Validation, so, we can have it by loading our form validation library.

$this->load->library('Form_validation');

Now we will set rule for our upload field like this:

$this-form_validation->set_rules('userfile', 'Profile Picture', 'required|allowed_types[jpg,png,jpeg]|max_file_size[10]');

By allowed_types[jpg]
Here by allowed_types[jpg,png,jpeg] we mean our allowed types are jpg, png and jpeg. And with max_file_size we set the maximum bytes that is allowed to upload.

$this-form_validation->set_message('allowed_types','Please upload jpg, jpeg and png types');

With this we can set custom messages for our rules.

Other Links:

Documentation of Codeigniter Extend MY Form Validation Library.

Weakness of Codeigniter Form Validation Library
See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

Download MY Form Validation Library for Codeigniter

We have seen the codeigniter Form Validation library weaknesses and also shown how we can solve that problem with the extend My Form Validation library.

We can download the Extended Form Validation library from here.

Thanks for download the Extended Form Validation library.


See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

Saturday, July 17, 2010

curl + cookie + redirect = nightmare

Sometime we use curl to store cookies in the remote server. and do our workings accordingly. Curl comes up with two options to deal with cookie settings remotely. They are the followings:

  • COOKIEJAR: it sets the cookie variables in the local machine and stores it in a file. we store it for later use. This file is written in netscap cookie file format. the values are delimited with a tab. A cookie is stored on a single line.
  • COOKIEFILE: This variable sends the cookie file to the remote server.

see the following code block. it explains the above discussion.

//create cURL connection
        $curl_connection = curl_init('remote_server_url');

        //set options
        curl_setopt($curl_connection, CURLOPT_POST, TRUE);
        curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, false);        
        curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 1);        
        //set data to be posted        
        curl_setopt($curl_connection, CURLOPT_POSTFIELDS, $post_string);
        curl_setopt($curl_connection, CURLOPT_COOKIEJAR, 'cookies.txt');
        curl_setopt($curl_connection, CURLOPT_COOKIEFILE, 'cookies.txt');

Here we send the cookie with the last two lines.

Now if we redirect our header in the remote server, then there will be a problem. your server then could not find the cookie file. and you will be signed out or related problem will be arose.

To solve this problem, you need to set your cookie after redirect call is made. So, you need to set cookie like this after a redirection is made.

setcookie('asite', $site, time()+60*60, '/', 'site.com'); 


See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

Size of a request header field exceeds server limit.

I have come up a strange error. It shows me a bad server request and shows Size of a request header field exceeds server limit. So, it is a unusual problem. And I found that my server is requesting with another server with a corrupted cookie file. I am sharing with you the cookie file so you can understand the situation.

see the cookie:

Cookie: bbthreadview=a%3A70%3A%7Bi%3A18969%3Bi%3A103728909 5%3Bi%3A19045%3Bi%3A1037288969%3Bi%3A19048%3Bi%3A1 037251417%3Bi%3A19007%3Bi%3A1037265534%3Bi%3A15623 %3Bi%3A1037265450%3Bi%3A19044%3Bi%3A1037289051%3Bi %3A19056%3Bi%3A1037265739%3Bi%3A18908%3Bi%3A103731 8594%3Bi%3A19051%3Bi%3A1037266071%3Bi%3A14527%3Bi% 3A1037266336%3Bi%3A19055%3Bi%3A1037289037%3Bi%3A19 059%3Bi%3A1037295501%3Bi%3A19063%3Bi%3A1037295544% 3Bi%3A18848%3Bi%3A1037468521%3Bi%3A18876%3Bi%3A103 7295631%3Bi%3A18825%3Bi%3A1037295645%3Bi%3A19050%3 Bi%3A1037318211%3Bi%3A19067%3Bi%3A1037318506%3Bi%3 A19089%3Bi%3A1037318521%3Bi%3A19083%3Bi%3A10373185 24%3Bi%3A19086%3Bi%3A1037318545%3Bi%3A19049%3Bi%3A 1037326825%3Bi%3A18763%3Bi%3A1037326941%3Bi%3A1911 7%3Bi%3A1037370172%3Bi%3A19097%3Bi%3A1037370207%3B i%3A19119%3Bi%3A1037372349%3Bi%3A19104%3Bi%3A10374 02713%3Bi%3A19120%3Bi%3A1037374210%3Bi%3A19112%3Bi %3A1037374223%3Bi%3A19082%3Bi%3A1037374259%3Bi%3A1 9126%3Bi%3A1037377619%3Bi%3A19122%3Bi%3A1037377727 %3Bi%3A19133%3Bi%3A1037396564%3Bi%3A19145%3Bi%3A10 37396573%3Bi%3A19137%3Bi%3A1037396582%3Bi%3A17962% 3Bi%3A1037403501%3Bi%3A19147%3Bi%3A1037421857%3Bi% 3A19167%3Bi%3A1037486584%3Bi%3A19158%3Bi%3A1037487 034%3Bi%3A19164%3Bi%3A1037463102%3Bi%3A19021%3Bi%3 A1037464672%3Bi%3A19171%3Bi%3A1037464675%3Bi%3A191 77%3Bi%3A1037464740%3Bi%3A19170%3Bi%3A1037465207%3 Bi%3A19173%3Bi%3A1037479613%3Bi%3A19046%3Bi%3A1037 465984%3Bi%3A19105%3Bi%3A1037467344%3Bi%3A18672%3B i%3A1037467351%3Bi%3A19084%3Bi%3A1037467425%3Bi%3A 18576%3Bi%3A1037467487%3Bi%3A19038%3Bi%3A103746750 0%3Bi%3A18151%3Bi%3A1037467626%3Bi%3A19068%3Bi%3A1 037467661%3Bi%3A18367%3Bi%3A1037467689%3Bi%3A13042 %3Bi%3A1037467713%3Bi%3A16935%3Bi%3A1037467720%3Bi %3A19134%3Bi%3A1037468536%3Bi%3A19168%3Bi%3A103747 9552%3Bi%3A19184%3Bi%3A1037479564%3Bi%3A19116%3Bi% 3A1037480034%3Bi%3A17520%3Bi%3A1037484175%3Bi%3A19 192%3Bi%3A1037485540%3Bi%3A19190%3Bi%3A1037485306% 3Bi%3A19180%3Bi%3A1037485554%3Bi%3A19100%3Bi%3A103 7485629%3Bi%3A19196%3Bi%3A1037485666%3Bi%3A18554%3 Bi%3A1037486195%3Bi%3A19197%3Bi%3A1037486564%3Bi%3 A19132%3Bi%3A1037486640%3Bi%3A19210%; bbthreadview=a%3A70%3A%7Bi%3A18969%3Bi%3A103728909 5%3Bi%3A19045%3Bi%3A1037288969%3Bi%3A19048%3Bi%3A1 037251417%3Bi%3A19007%3Bi%3A1037265534%3Bi%3A15623 %3Bi%3A1037265450%3Bi%3A19044%3Bi%3A1037289051%3Bi %3A19056%3Bi%3A1037265739%3Bi%3A18908%3Bi%3A103731 8594%3Bi%3A19051%3Bi%3A1037266071%3Bi%3A14527%3Bi% 3A1037266336%3Bi%3A19055%3Bi%3A1037289037%3Bi%3A19 059%3Bi%3A1037295501%3Bi%3A19063%3Bi%3A1037295544% 3Bi%3A18848%3Bi%3A1037468521%3Bi%3A18876%3Bi%3A103 7295631%3Bi%3A18825%3Bi%3A1037295645%3Bi%3A19050%3 Bi%3A1037318211%3Bi%3A19067%3Bi%3A1037318506%3Bi%3 A19089%3Bi%3A1037318521%3Bi%3A19083%3Bi%3A10373185 24%3Bi%3A19086%3Bi%3A1037318545%3Bi%3A19049%3Bi%3A 1037326825%3Bi%3A18763%3Bi%3A1037326941%3Bi%3A1911 7%3Bi%3A1037370172%3Bi%3A19097%3Bi%3A1037370207%3B i%3A19119%3Bi%3A1037372349%3Bi%3A19104%3Bi%3A10374 02713%3Bi%3A19120%3Bi%3A1037374210%3Bi%3A19112%3Bi %3A1037374223%3Bi%3A19082%3Bi%3A1037374259%3Bi%3A1 9126%3Bi%3A1037377619%3Bi%3A19122%3Bi%3A1037377727 %3Bi%3A19133%3Bi%3A1037396564%3Bi%3A19145%3Bi%3A10 37396573%3Bi%3A19137%3Bi%3A1037396582%3Bi%3A17962% 3Bi%3A1037403501%3Bi%3A19147%3Bi%3A1037421857%3Bi% 3A19167%3Bi%3A1037486584%3Bi%3A19158%3Bi%3A1037487 034%3Bi%3A19164%3Bi%3A1037463102%3Bi%3A19021%3Bi%3 A1037464672%3Bi%3A19171%3Bi%3A1037464675%3Bi%3A191 77%3Bi%3A1037464740%3Bi%3A19170%3Bi%3A1037465207%3 Bi%3A19173%3Bi%3A1037479613%3Bi%3A19046%3Bi%3A1037 465984%3Bi%3A19105%3Bi%3A1037467344%3Bi%3A18672%3B i%3A1037467351%3Bi%3A19084%3Bi%3A1037467425%3Bi%3A 18576%3Bi%3A1037467487%3Bi%3A19038%3Bi%3A103746750 0%3Bi%3A18151%3Bi%3A1037467626%3Bi%3A19068%3Bi%3A1 037467661%3Bi%3A18367%3Bi%3A1037467689%3Bi%3A13042 %3Bi%3A1037467713%3Bi%3A16935%3Bi%3A1037467720%3Bi %3A19134%3Bi%3A1037468536%3Bi%3A19168%3Bi%3A103747 9552%3Bi%3A19184%3Bi%3A1037479564%3Bi%3A19116%3Bi% 3A1037480034%3Bi%3A17520%3Bi%3A1037484175%3Bi%3A19 192%3Bi%3A1037485540%3Bi%3A19190%3Bi%3A1037485306% 3Bi%3A19180%3Bi%3A1037485554%3Bi%3A19100%3Bi%3A103 7485629%3Bi%3A19196%3Bi%3A1037485666%3Bi%3A18554%3 Bi%3A1037486195%3Bi%3A19197%3Bi%3A1037486564%3Bi%3 A19132%3Bi%3A1037486640%3Bi%3A19208%; sessionhash=926269e87ab7c226dbe40079adbafb1e; bbthreadview=a%3A68%3A%7Bi%3A18969%3Bi%3A103728909 5%3Bi%3A19045%3Bi%3A1037288969%3Bi%3A19048%3Bi%3A1 037251417%3Bi%3A19007%3Bi%3A1037265534%3Bi%3A15623 %3Bi%3A1037265450%3Bi%3A19044%3Bi%3A1037289051%3Bi %3A19056%3Bi%3A1037265739%3Bi%3A18908%3Bi%3A103731 8594%3Bi%3A19051%3Bi%3A1037266071%3Bi%3A14527%3Bi% 3A1037266336%3Bi%3A19055%3Bi%3A1037289037%3Bi%3A19 059%3Bi%3A1037295501%3Bi%3A19063%3Bi%3A1037295544% 3Bi%3A18848%3Bi%3A1037468521%3Bi%3A18876%3Bi%3A103 7295631%3Bi%3A18825%3Bi%3A1037295645%3Bi%3A19050%3 Bi%3A1037318211%3Bi%3A19067%3Bi%3A1037318506%3Bi%3 A19089%3Bi%3A1037318521%3Bi%3A19083%3Bi%3A10373185 24%3Bi%3A19086%3Bi%3A1037318545%3Bi%3A19049%3Bi%3A 1037326825%3Bi%3A18763%3Bi%3A1037326941%3Bi%3A1911 7%3Bi%3A1037370172%3Bi%3A19097%3Bi%3A1037370207%3B i%3A19119%3Bi%3A1037372349%3Bi%3A19104%3Bi%3A10374 02713%3Bi%3A19120%3Bi%3A1037374210%3Bi%3A19112%3Bi %3A1037374223%3Bi%3A19082%3Bi%3A1037374259%3Bi%3A1 9126%3Bi%3A1037377619%3Bi%3A19122%3Bi%3A1037377727 %3Bi%3A19133%3Bi%3A1037396564%3Bi%3A19145%3Bi%3A10 37396573%3Bi%3A19137%3Bi%3A1037396582%3Bi%3A17962% 3Bi%3A1037403501%3Bi%3A19147%3Bi%3A1037421857%3Bi% 3A19167%3Bi%3A1037486584%3Bi%3A19158%3Bi%3A1037463 043%3Bi%3A19164%3Bi%3A1037463102%3Bi%3A19021%3Bi%3 A1037464672%3Bi%3A19171%3Bi%3A1037464675%3Bi%3A191 77%3Bi%3A1037464740%3Bi%3A19170%3Bi%3A1037465207%3 Bi%3A19173%3Bi%3A1037479613%3Bi%3A19046%3Bi%3A1037 465984%3Bi%3A19105%3Bi%3A1037467344%3Bi%3A18672%3B i%3A1037467351%3Bi%3A19084%3Bi%3A1037467425%3Bi%3A 18576%3Bi%3A1037467487%3Bi%3A19038%3Bi%3A103746750 0%3Bi%3A18151%3Bi%3A1037467626%3Bi%3A19068%3Bi%3A1 037467661%3Bi%3A18367%3Bi%3A1037467689%3Bi%3A13042 %3Bi%3A1037467713%3Bi%3A16935%3Bi%3A1037467720%3Bi %3A19134%3Bi%3A1037468536%3Bi%3A19168%3Bi%3A103747 9552%3Bi%3A19184%3Bi%3A1037479564%3Bi%3A19116%3Bi% 3A1037480034%3Bi%3A17520%3Bi%3A1037484175%3Bi%3A19 192%3Bi%3A1037485540%3Bi%3A19190%3Bi%3A1037485306% 3Bi%3A19180%3Bi%3A1037485554%3Bi%3A19100%3Bi%3A103 7485629%3Bi%3A19196%3Bi%3A1037485666%3Bi%3A18554%3 Bi%3A1037486195%3Bi%3A19197%3Bi%3A1037486564%3B%7D ; bbadminon=1; bblastvisit=1035563932; vbcodemode=1; i=7:8:1:1036068408:1|4:5:1:1035751419:1|6:7:1:1035 751394:1|||||||||||||||||||||||||||||||||; bbuserid=1; bbpassword=feedd820a172677f3211aefc8f7a2885; PHPSESSID=00534cd1247c4336f21e1fce60acf422; ADCYCLE_LOGIN=admin|5790622|; i1=7:8:453:1035755985:152|5:6:621:1035670005:152|4 :5:621:1035669976:152|6:7:620:1035670121:152|||||| ||||||||||||||||||||||||||; c1=5:6:1:1036141033:152||||||||||||||||||||; phpAds_banner[af62734b]=a%3A2%3A%7Bs%3A8%3A%22bannerid%22%3Bs%3A1%3A%223% 22%3Bs%3A4%3A%22dest%22%3Bs%3A60%3A%22http%3A%2F%2 Fplurplanet.com%2Fforum%2Fshowthread.php%3Fs%3D%26 threadid%3D17706%22%3B%7D; bbthreadview=a%3A69%3A%7Bi%3A18969%3Bi%3A103728909 5%3Bi%3A19045%3Bi%3A1037288969%3Bi%3A19048%3Bi%3A1 037251417%3Bi%3A19007%3Bi%3A1037265534%3Bi%3A15623 %3Bi%3A1037265450%3Bi%3A19044%3Bi%3A1037289051%3Bi %3A19056%3Bi%3A1037265739%3Bi%3A18908%3Bi%3A103731 8594%3Bi%3A19051%3Bi%3A1037266071%3Bi%3A14527%3Bi% 3A1037266336%3Bi%3A19055%3Bi%3A1037289037%3Bi%3A19 059%3Bi%3A1037295501%3Bi%3A19063%3Bi%3A1037295544% 3Bi%3A18848%3Bi%3A1037468521%3Bi%3A18876%3Bi%3A103 7295631%3Bi%3A18825%3Bi%3A1037295645%3Bi%3A19050%3 Bi%3A1037318211%3Bi%3A19067%3Bi%3A1037318506%3Bi%3 A19089%3Bi%3A1037318521%3Bi%3A19083%3Bi%3A10373185 24%3Bi%3A19086%3Bi%3A1037318545%3Bi%3A19049%3Bi%3A 1037326825%3Bi%3A18763%3Bi%3A1037326941%3Bi%3A1911 7%3Bi%3A1037370172%3Bi%3A19097%3Bi%3A1037370207%3B i%3A19119%3Bi%3A1037372349%3Bi%3A19104%3Bi%3A10374 02713%3Bi%3A19120%3Bi%3A1037374210%3Bi%3A19112%3Bi %3A1037374223%3Bi%3A19082%3Bi%3A1037374259%3Bi%3A1 9126%3Bi%3A1037377619%3Bi%3A19122%3Bi%3A1037377727 %3Bi%3A19133%3Bi%3A1037396564%3Bi%3A19145%3Bi%3A10 37396573%3Bi%3A19137%3Bi%3A1037396582%3Bi%3A17962% 3Bi%3A1037403501%3Bi%3A19147%3Bi%3A1037421857%3Bi% 3A19167%3Bi%3A1037486584%3Bi%3A19158%3Bi%3A1037487 034%3Bi%3A19164%3Bi%3A1037463102%3Bi%3A19021%3Bi%3 A1037464672%3Bi%3A19171%3Bi%3A1037464675%3Bi%3A191 77%3Bi%3A1037464740%3Bi%3A19170%3Bi%3A1037465207%3 Bi%3A19173%3Bi%3A1037479613%3Bi%3A19046%3Bi%3A1037 465984%3Bi%3A19105%3Bi%3A1037467344%3Bi%3A18672%3B i%3A1037467


This is a corrupted cookie file. Apache has a header size limit of

# allow up to 100 headers in a request
  LimitRequestFields 100
  # each header may be up to 8190 bytes long
  LimitRequestFieldsize 8190

Again, IIS 7 has a size of 16K and IIS 6 has 8K length of header size.

So, we need to manually delete this cookie file. As cookies are browser specific, you need to check our browser how to delete those. I was using firefox and the solution is to go to tools->clear private data.


See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

Friday, July 16, 2010

Download My Input Library for Codeigniter

We seen the drawbacks of Input library of codeigniter and my extended input library comes to solve this problem. I have already mentioned how my library overcome the problem. so, let's get the extended codeigniter Input library.

Use this link to download it.

After downloading,


  • Just put the class file under the libraries folder under application folder.

See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide