search
top

Insert and Retrieve file with MySQL

Some of you might be knowing that there is a functionality in MySQL database for storing files and retrieving the same. This is mainly used when we need to reduce response time for retrieving and using files in our application. I am listing here the method for inserting image file in and retrieving image file from MySQL database using PHP. 1) For inserting data into MySQL you need to convert the image...
read more

Get Database Prefix

I am listing an example for retrieving the Joomla database prefix. <?php $db =& JFactory::getDBO(); //Returns a reference to the global database object echo "Database prefix is : " . $db->getPrefix(); //output will be something like this Database prefix is : jos_ ?>
read more

Joomla essentials

Joomla is a very great CMS. I am listing below important variable used in joomla. JPath is used to get the directory path. DS — is used as a directory separator. JPATH_ADMINISTRATOR– Sets the path to /Joomla/administrator JPATH_BASE — sets the entry to joomla /Joomla JPATH_CACHE –Sets the cache path /Joomla/cache JPATH_COMPONENT — Sets the component path /Joomla/components/com_example JPATH_COMPONENT_ADMINISTRATOR...
read more

Connect different database from Magento

Some of you might have worked on Magento. I am listing here points for connecting another database from Magento. 1) Suppose your database for Magento Project is named ‘magento’. 2) There is one other database named ‘wp’. 3) For using this database inside Magento, you need to setup connection in ‘config.xml’ file which resides in ‘urmagentodirectory/app/etc’ 4) In ‘config.xml’ there...
read more

top