Friday 16 December 2011

Cannot start session without errors phpmyadmin

Sometimes when you hit the phpmyadmin page, you will receive error saying cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
This can be eliminated in two ways.
1. Try clearing the cookies and then hit the phpmyadmin page.
2. If step1 is not working, then you need to set the tmp folder path in PHP directory to the session.save_path variable in php.ini file.
Reference: http://www.webteches.com/cannot-start-session-without-errors-please-check-errors-given-in-your-php-andor-webserver-log-file-and-configure-your-php-installation-properly/

Theming Views Drupal

Thursday 15 December 2011

URL encoded query string from key value pair

To generate a URL encoded query string from an associative array in PHP, use the function http_build_query.
Reference: http://php.net/manual/en/function.http-build-query.php


screenshot of a whole web page

Have trouble in taking a screenshot of the whole content of  a web page when there is scrollbars , then you should check these addons.
ieSnapshotter - http://www.filedudes.com/ieSnapshotter-download-45699.html
screengrab - https://addons.mozilla.org/en-US/firefox/addon/screengrab/ - After installing , go to the site and right click and select screengrab then save as complete page.

database name as numeric mysql

Have you ever wondered why the numbers or number-text combination  with spaces is not allowed in naming a database in mysql, then you check the below links. The solution is to give them inside a backtick operator.

http://stackoverflow.com/questions/5986497/can-a-database-name-start-with-a-number
http://stackoverflow.com/questions/2121596/mysql-numeric-database-limitation