What is data warehousing
=> A data warehouse is a copy of transactional data specifically structured for querying and analysis. => According to this definition: The form of the stored data (RDBMS, flat file) has nothing...
View ArticleHow to upload file using ajax
Some year ago it is not possible to upload file using AJAX but now we can upload files or images using ajax Use below code: <form enctype="multipart/form-data" method="post" name="fileinfo">...
View ArticleMake Get and Post request using curl in php
First need to install curl module than can use below code to make GET and POST request using PHP. public function makeCURLRequest($url, $data = null, $method = 'GET') { if (empty($url) OR empty($data))...
View ArticleApache htaccess rule to point a directory inside directory
If www is your apache folder and have a blog folder inside www like www/blog and your requirement to access this folder with base url and do’t want to use symlink then use below .htaccess rule:...
View ArticleMongodb query to update records uppercase to lowercase in bulk
use DATABASE_NAME; db.CollectionName.find( {}, { 'FieldName': 1 } ).forEach(function(doc) { db.CollectionName.update( { _id: doc._id}, { $set : { 'FieldName' : doc.FieldName.toLowerCase() } }, { multi:...
View ArticleHow to securely configure mongodb in production environment
Step1: Install mongodb from here as per your operating system [ linux,window,mac]. Step2: connect or login to mongodb using below command : mongo 127.0.0.1:27001 Step 3: Create an admin user using this...
View ArticleBest social bookmarking sites
Today, Social bookmarking is getting popularity and best way to get traffic to website. Using socal booking, You can also build quality backlinks for your website and it is most easiest way to promote...
View ArticleHow to install zpanel on centos 64 bit
Step 1: yum -y update Step 2: reboot Step 3: Log to your server as root user: sudo -i Step 4: Ensure you are in your home directory: cd Step 5: wget...
View ArticleHow to upgrade php on centos 6
Step 1 :Detect if any PHP packages are installed: yum list installed | grep php If packages are installed remove them, for example: yum remove php.x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64...
View ArticleInstall PHP 5.5 apache2 mysql 5.5 phpmyadmin on CentOS 6
Step1: Adding Remi Repository to yum == Install Remi Repository on Fedora 19, 18, 17, 16, 15 == rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm rpm -Uvh...
View ArticleExplore And Debug Facebook API
Facebook Graph and insights API(s) have lots of things to explore. And as a developer, you always want a panel to explore facebook APIs and easily find to whatever you needed to use. HOW TO CREATE A...
View ArticleBest Way To Create Excel File In PHP
There are several php library available to export excel in php. Here I am explaining most easiest way to create excel file in php without using any external library in PHP. Below is the sample code to...
View ArticleHierarchical Tree Commenting using MySQL PHP
My SQL table structure: id comment thread_id parent_id 1 comment1 1 null 2 comment2 1 1 3 comment3 1 2 Use Below code for create tree array: function getCommentHierachy($threadId, $comments) { $rtnVal...
View ArticleWrite SQL query with SELECT statement
Query : UPDATE table_name1 INNER JOIN (SELECT `post_id`,`content` FROM table_name2) AS t1 ON t1.post_id=table_name1 .id SET table_name1.content=t1.content,table_name1 .type='article'; The post Write...
View ArticleChange Webmin Password Using Command Line CentOS
/usr/libexec/webmin/changepass.pl /etc/webmin root newpassword The post Change Webmin Password Using Command Line CentOS appeared first on Techathon.
View ArticleHow to check maximum occupied disk space linux in MB GB
Command : du -kscx * | sort -nr | cut -f2 | xargs -d '\n' du -sh The post How to check maximum occupied disk space linux in MB GB appeared first on Techathon.
View Article