How To Reset Admin Password – Joomla

1) Login to phpmyadmin and select db and the table (jos_users) that
store users details   ie table with name end with “_users”2) Make sure that the username  exists in the table( let the user name be ‘admin’)

3) Execute the below given query  UPDATE jos_users
SET password=MD5(‘new password’) WHERE username = “admin”;

Share

List the names of the functions of a module – PHP

<?php
$extensionName = “xml”; // Desired module name
print_r(get_extension_funcs($extensionName));
?>
Output
=====
Array
(
[0] => xml_parser_create
[1] => xml_parser_create_ns
[2] => xml_set_object
[3] => xml_set_element_handler
[4] => xml_set_character_data_handler
[5] => xml_set_processing_instruction_handler
[6] => xml_set_default_handler
[7] => xml_set_unparsed_entity_decl_handler
[8] => xml_set_notation_decl_handler
[9] => xml_set_external_entity_ref_handler
[10] => xml_set_start_namespace_decl_handler
[11] => xml_set_end_namespace_decl_handler
[12] => xml_parse
[13] => xml_parse_into_struct
[14] => xml_get_error_code
[15] => xml_error_string
[16] => xml_get_current_line_number
[17] => xml_get_current_column_number
[18] => xml_get_current_byte_index
[19] => xml_parser_free
[20] => xml_parser_set_option
[21] => xml_parser_get_option
[22] => utf8_encode
[23] => utf8_decode
Share

List the modules compiled and loaded – PHP

print_r(get_loaded_extensions());

output

======

Array ( [0] => Core [1] => date [2] => ereg [3] => libxml [4] => openssl [5] => pcre [6] => zlib [7] => bcmath [8] => bz2 [9] => calendar [10] => ctype [11] => dba [12] => dom [13] => hash [14] => fileinfo [15] => filter [16] => ftp [17] => gettext [18] => session [19] => iconv [20] => json [21] => mbstring [22] => standard [23] => posix [24] => Reflection [25] => SPL [26] => shmop [27] => SimpleXML [28] => soap [29] => sockets [30] => Phar [31] => exif [32] => sysvmsg [33] => sysvsem [34] => sysvshm [35] => tokenizer [36] => wddx [37] => xml [38] => xmlreader [39] => xmlwriter [40] => zip [41] => apache2handler [42] => curl [43] => gd [44] => mcrypt [45] => mysql [46] => mysqli [47] => PDO [48] => pdo_mysql [49] => mhash )

Share

Beginners' Guide , PHP Programmer , Zend Certified Engineer , Magento Certified Developer