Joomla error – Layout “unijoy” not found

I was getting a error message while trying to visit Joomla site in my local PC. I can visit the live joomla sites, but can not visit the Joomla site those are hosted in my local PC.

Following error message was generating:

[sourcecode language=”plain”]Layout "unijoy" not found[/sourcecode]

I was trying to visit using Mozilla Firefox. If I use any other browser it shows everything fine. What was the problem?

I was facing this problem since several months. I could not mange time to identify the problem. Today I made a promise “I’ll fix this problem today”, and identified the problem and fixed.

Simply, there was a cookie in Firefox named layout and the value was “unijoy” for the localhost domain. When I try to visit Joomla site from my local PC, it picks the cookie “layout” and try to render the view “unijoy“.

I have remove the cookie and now it works fine. 😀

Dot bd (.bd) domain look up or whois look up

Dot bd (.bd), internet address of Bangladesh. Would you like to register .bd domain? You need to visit BTCL‘s office in Mogbazar, Dhaka. You may visit BTCL’s official website to know how to register .bd domain.

Here  I would like to share a simple service to search .bd domain for registration or whois record.

Visit this link to search .bd domain or whois record.


Open Flash Chart :: amazing chart generating application

Now a days I am working in Open Flash Chart (OFC). I found this amazing, easy to generate chart and use in web applications. Flash produces high quality graphics. OFC generates high resolution charts, I think you like this very much. Lets take a look into a screenshot.

OFC generated chart
OFC generated chart

Click on the thumbnail to view actual size. You may visit OFC homepage, try the tutorial to lean how to make chart using open flash chart. Here your find some sample charts. OFC has two sets of chart library, version 1 and version 2. I think version 2 is better than version 1. Here is the download link of OFC version 2. OFC tutorial is very much easy to understand.

OFC includes some other tools, swfobject, and JSON for data files. And also includes Server Side Helper Libraries for PHP, Perl, Python, Ruby, .NET, Google Web Toolkit and JAVA to generate hassle free JSON formatted data.

I hope you enjoy OFC.

Flip and Fun

Flip your textFew days ago Hasin Hayder sent me a link where texts can be flipped. Really interesting and funny.


Try this to flip your texts.


I made some modification according to my necessity. You may use Flip Text service for following things

  • IM screen names
  • Put it in your profiles like MySpace, Bebo, Hi5, Facebook, Youtube etc.
  • Create strong passwords
  • Encrypt your download links to prevent leechers
  • Freak your friends
  • And make fun

Flip and Fun

HTML tag label is useful for Radio buttons

Radio Buttons

To click on a Radio button is very boring things to me. A radio button is maximum 15 x 15 pixels. So need extra care to click on Radio buttons.

When I work with Radio buttons in my web applications, I use HTML tag – ‘Label‘.

For example, I have a Radio button like this-

[sourcecode language=”html”]

Click on this Radio button


This Radio button require extra care to click. I write the above code like bellow, so that the visitors can select the Radio button clicking on the text – “Click on this Radio button“.

[sourcecode language=”html”]


Now the visitors can select the Radio button clicking on the text. Enjoy easy clicking on the Radio buttons.

HTML form :: difference between disabled and readonly element

I was working with HTML forms. In the forms I used readonly and disabled input elements. What is the deference between these two attributes of input element?

Say for I have an input element in HTML form.

If we set the attribute readonly="readonly" then the input element is not editable. This attribute allows the user to highlight and copy the text inside the input field, but not change the value.

This attribute is only used if the type attribute of the input element is set to “text” or “password”.

I have another text field like bellow.

If we set the attribute disabled="disabled", the input element is disabled, un-editable and un-selectable. This attribute not allow the users to highlight and copy the text inside the input field. Another thing happen here, the data within the input element will not be submitted to the action page.

Talking with PHP

Talking with PHP
Talking with PHP

I need the current time then I call the php function – time() and get the current Unix timestamp. Then function time() returns the second measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT). Say for, in my website users can register for free for one year. I need to calculate an account expiration time after one year. How can I calculate the expiration time. I need to add one year with the account creation time. We may get the the date and time of account expiration using following code.

[sourcecode language=”php”]$expiration = date( ‘Y-m-d H:i:s’, time() + (365 * 24 * 60 * 60) );[/sourcecode]

I have another easy solution. See bellow.

[sourcecode language=”php”]$expiration = date(‘Y-m-d H:i:s’, strtotime( ‘now + 1 year’ ) );[/sourcecode]

Everyone knows PHP is a flexible language. In the second statement, it seems I am talking with php. ha ha ha

Submit HTML form to pop up window

Some times we may need to submit HTML form to a pop up window. Let’s take a look into the details.
Say for I have a HTML form.

[sourcecode language=”html”]

Name :
E-mail :


We may submit this form to a blank window by setting target=”_blank”, but when we need to submit the form to a pop up window then we should do some extra code. Let’s try.

Step one: Defining a JavaScript function
[sourcecode language=”javascript”]function openWindow(url, wname, width, height) {, wname, “height=” + height + “,width=” + width + “location = 0, status = 1, resizable = 0, scrollbars=1, toolbar = 0”);
return true;

Above function opens a pop up window according to the supplied arguments. There is a tricky thing. ‘name’ is a keyword in JavaScript. We should not put the variable name as ‘name’. IE reports error if we put name as a variable name.

Step two: Setting the form attributes
Now we set the form attributes like bellow
[sourcecode language=”html”]


Step three: Preparing thank you page
Now we are ready to prepare the thank-you.php page for processing the form data.

Some more things must follow for security and to protect spamming. We should apply both JavaScript and server side validation into the form, protect spamming and XSS.

CakePHP Manual in PDF Format

“Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility.”

Manual for CakePHP is available here – in HTML format. I converted that into PDF. This will help those who likes more to read PDF than HTML.
Download CakePHP Manual in PDF Format


Thanks Hasin Vai, I am including your links here