Encrypt and Decrypt for URL Using PHP

Here is the function for Encrypt and Decrypt (String, text, ids) for URL Using PHP. please set change $secret_key and $secret_iv for your wish to generate secure encryption and decryption keys. function encryptor($action, $string) { $output = false; $encrypt_method =…

Popular Sites run on which Platforms?

Site Up Since Server Platform Programming Language Google.com November 1998 Linux C, Java, C++, PHP & MySQL Facebook.com February 2004 Linux PHP, MySQL and C++ YouTube.com February 2005 Linux C, Java and MySQL Yahoo.com August 1995 Linux C++, C, Java,…

Add Trailing Slash to URL (.htaccess)

Some of search engines remove the trailing slash from URLs that look like directories – e.g. Yahoo does it while listing on their search engine. This could result into duplicated content problems when the same page content is accessible under…

Script to convert InnoDB tables to MyISAM

#!/bin/bash MYSQLCMD=mysql for db in `echo show databases | $MYSQLCMD | grep -v Database`; do for table in `echo show tables | $MYSQLCMD $db | grep -v Tables_in_`; do TABLE_TYPE=`echo show create table $table | $MYSQLCMD $db | sed -e’s/.*ENGINE=\([[:alnum:]\]\+\)[[:space:]].*/\1/’|grep…

E-Mail Testing

Following are the few sites from where we can test our mailserver and domain for testing, reputation and blacklsiting.  Blacklist Checking https://www.blacklistmaster.com/check?t=<ip address> DKIM Testing http://dkimcore.org/c/keycheck IP/Domain Reputation and Scores http://www.senderbase.org/lookup/?search_string=<ip address or domain> https://www.senderscore.org/lookup.php?lookup=<ip address>&validLookup=true http://mxtoolbox.com/ Scan Website for…

Parallels Plesk for Linux services logs and configuration files

Below, you will find the services’ configuration and log file locations, which may be useful in a troubleshooting procedure. Services Control Panel Logs Error log: /var/log/sw-cp-server/error_log and /var/log/sw-cp-server/sw-engine.log Access log: /usr/local/psa/admin/logs/httpsd_access_log Panel log: /usr/local/psa/admin/logs/panel.log Services Stop: /etc/init.d/psa stop Start: /etc/init.d/psa…

Plesk: Disable Mail Service for domain

Disable the mail service for the domain.tld subscription: Go to Subscriptions > domain.tld > Mail > Change Settings. Uncheck Activate mail service on domain and click OK. You can also disable the mail service on the subscription using the command-line…