Sunday, 4 April 2010

get mysql query as html and output to file

MYSQL>> mysql < c:\test.sql -u root database_name -H -e "select * from table ";

Sunday, 7 February 2010

take care of php loose comparisons

php has both strict comparison and loose comparison.
see the example.
if("6x"==6)
{
echo "surprice";
}
else
{
echo "i am aware.";
}
in a comparison, if either side has number then both the parameters will be converted to number and will check 6==6, so the output will be "surprice".

In these case, checking with === will work as usual.
eg: if("6x"===6)

Wednesday, 27 January 2010

Joomla 1.6 alpha released

joomla 1.6 alpha released.

It reduces the narrow advantage of Drupal over Joomla 1.5.
please check this

Thursday, 14 January 2010

Zencart

Zencart is a pretty easy tool for developing an ecommerce website. A medium level programming knowledge is enough to start because it does not have any complex OOP system to follow. Its not extendable but is highly customizable.

Sunday, 9 August 2009

change or reset ples admin password

find this tool through remote desktop connection ,

C:\Program Files\Parallels\Plesk\admin\bin\plesksrvclient.exe

click on that, and it will ask for a new password.


Saturday, 25 July 2009

remove phocagallery logo

change this

echo $this->tmpl['phocagalleryic'];

but, commercial version is recommended.



Wednesday, 22 July 2009

for debugging joomla

rename the index.php to index_main.php

then , create new index.php and paste the code
error_reporting(E_ALL);
ini_set("display_errors", 1);
include("index_main.php");
?>