Delete Files Older Than One year, older than one month,older than six month,older than 7days on Linux

We can do it using this command find /path/to/files* -mtime +365 -exec rm {} \; How it works.. /path/to/files* is the path to the  files to be deleted. -mtime is used to specify the number of days old that the file is. +365 will find files older than 365 days which is one year. -exec … Continue reading

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known in /opencart-path/system/library/mail.php

Currently i was working in a open cart ecommerce solution and  i came across this error: Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known in /opencart-path/system/library/mail.php on line 168 fsockopen(): unable to connect to :465 (php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, ornot known) in /opencart-path/system/library/mail.php on line 168Notice: Error: php_network_getaddresses: … Continue reading

Enable mod_rewrite in Apache2 on Debian/Ubuntu

If you have installed Apache2 web server via apt-get or aptitude on Debian or Ubuntu systems, it has mod_rewrite module installed, but not enabled. After Apache2 installation, you need to enable mod_rewrite manually. Generally developers and seo geeks use mod_rewrite to improve user-friendliness and search engine friendliness of web sites by creating more memorable and … Continue reading

20 Common Drupal Mistakes and How to Avoid

Drupal is undoubtedly one of the most flexible and powerful Content Management Systems available. So it really hurts us when someone criticizes Drupal because, most of the times Drupal is not at fault – what is wrong is the development and implementation. Below are list of common mistakes we should avoid.. Over coding: Custom code … Continue reading

data visualization

Various Data Visualization Tools

A nice, informative  and  comprehensive gallery of data visualization tools.

AWeber Subscription Using CURL

AWeber Email Marketing Software creates profitable customer relationships for your business. Its email marketing tools like professional email signup forms & auto-responder services make it easy for you to build your email list and stay in touch with prospects. Few features of this service are: a. Manage Subscribers b. Auto Responders c. HTML Email Templates d. … Continue reading

useful jquery lazyload plugins

The Lazy plugin for jQuery load specified images after the page load itself and speed up your loading time through this. Images outside of the visible area will only get loaded when the user scrolls to them. jQuery.Lazy() jQueryLazyScrollLoading jQuery Lazy Load XT plugin bttrlazyloading jquery lazyload responsive lazy loader echo jscroll unveil least stalactite … Continue reading

parse wikipedia definitions on given keyword using php

Section->Item->Description) { return array((string)$xml->Section->Item->Text, (string)$xml->Section->Item->Description, (string)$xml->Section->Item->Url); } else { return “”; } } //END OF FUNCTION WIKIDEFINITIONS //USE OF FUNCTION $data = wikipediadefinition(‘india’) ; //var_dump( wikipediadefinition(‘india’) ) ; //displays the array content echo “Word:” . $data[0] . ““; echo “Definition:” . $data[1] . ““; echo “Link:” . $data[2] . ““; ?>

Apache Error Log Files

Apache Error Log File All apache errors / diagnostic information other errors found during serving requests are logged to this file. Location of error log is set using ErrorLog directive. If there is any problem, you should first take a look at this file using cat, grep or any other UNIX / Linux text utilities. This apache … Continue reading

SoftException in Application.cpp:357: UID of script “/home/mysite/public_html/index.php” is smaller than min_uid Premature end of script headers: index.php

Recently i was installing a mailer application in a VPS SERVER and I came across a strange error: SoftException in Application.cpp:357: UID of script “/home/mysite/public_html/index.php” is smaller than min_uid Premature end of script headers: index.php Turns out this error is caused by apache being unable to read files added by root to a users public_html … Continue reading