Saturday, November 5, 2011

What is Joomla in PHP?

Joomla is a Content Management System. It is an Open Source CMS framework programmed with PHP. The main advantahe of CMS is, there is no need of making your websites from scratch. Many functionalities like : forum, calendar, mail etc. are built in - as extensions.

Joomla! is one of the most powerful and an award-winning Open Source Content Management System (CMS) that will help you build everything from simple websites to complex corporate applications. Joomla! is easy to install, simple to manage. The MVC architecture is implemented in Joomla latest versions. It is a rapid action development tool of websites.

To know more about joomla visit the website www.joomla.org

To download joomla go to www.joomla.org/download

What is the difference between "mysql_fetch_array" and "mysql_fetch_object"

The difference between "mysql_fetch_array" and "mysql_fetch_object" is
"mysql_fetch_array" function will take the result set as input and returns an associative array with data fetched from database table row. Where as,
"mysql_fetch_object" function will take the result set as input and returns an object with data fetched from database table row.





How many ways you can delete a session variable ?

Below are some possibilities for deleting a PHP session,

  1. By using session_destroy() function
  2. By deleting browsers temporary files.
  3. By closing the browser
  4. Security firewalls may terminate the session varibles


How will you create a bi-lingual site (multiple languages) ?

By using define constant construct we can create bi-lingual sites. We will create a PHP file with define constants  for each language and will include the file in our main pages where the actual content is displayed

Monday, October 24, 2011

How do you upload files in PHP ?

We can upload files by using move_uploaded_file(). There are two parameters for the move_uploaded_file function. One is to specify uploaded file details and other is to specify new file details to be created.
The steps to follow are
    1) Include enctype="multipart/formdata" in the form tag.
    2) Using method post is recommended.
    3) We use $_FILES super global array to get the uploaded file details.
    4) By using $_FILES we can validate the file for size, file type.

Wednesday, October 19, 2011

How will you redirect to a page without header function?

By using Javascript we can redirect the page to another page. And also there are htaccess redirection techniques.

What is a common error caused with header function?

headers already sent output started at some x line is the error. This error occurs when there is an out put generated before the header function.