Get a VPS that offers 2 or more IP addresses.
From the WHM cPanel, find the menu item Service Configuration
, select Apache Configuration
and then click on Reserved IPs Editor
.
<?php | |
/** | |
* Short description for class | |
* | |
* Long description for class (if any)... | |
* | |
* @category Zend | |
* @package Zend_Magic | |
* @subpackage Wand |
<?php | |
/** | |
* Remove HTML tags, including invisible text such as style and | |
* script code, and embedded objects. Add line breaks around | |
* block-level tags to prevent word joining after tag removal. | |
*/ | |
function strip_html_tags( $text ) | |
{ | |
$text = preg_replace( |
<?php | |
function year2array ($year) | |
{ | |
$res = $year >= 1970; | |
if ($res) | |
{ | |
// this line gets and sets same timezone, don't ask why :) | |
date_default_timezone_set ( date_default_timezone_get () ); | |
// Make it Nasty | |
function increment (i) { | |
i ^= (i & ~-~i) | (~i & -~i) | |
return i | |
} |
/** | |
* @name merge | |
* @author Mazhar Ahmed | |
* | |
* this function will merge more than one json objects into one object | |
* | |
* @uses | |
* var object3 = merge(object1, object2); | |
* | |
*/ |
<!-- beginning of the document --> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<!-- rest of the document --> |
function shorten(text, maxLength) { | |
var ret = text; | |
if (ret.length > maxLength) { | |
ret = ret.substr(0,maxLength-3) + "..."; | |
} | |
return ret; | |
} |
<script type="text/javascript"> | |
(function () { | |
"use strict"; | |
// once cached, the css file is stored on the client forever unless | |
// the URL below is changed. Any change will invalidate the cache | |
var css_href = './index_files/web-fonts.css'; | |
// a simple event handler wrapper | |
function on(el, ev, callback) { | |
if (el.addEventListener) { | |
el.addEventListener(ev, callback, false); |