united states of america usa  linkedinfacebookgoogle
  • business-it-consulting
  • business-managed-it
  • web-design
  • business-it-services
  • No matter how big or small: we will get you up and running!
  • You run your business - we manage your IT!
  • Leverage the power of Content Management Systems! We provide custom solutions for all sectors.
  • End-to-end IT consulting firm, providing support for your IT and network infrastructure.

For immediate IT Support call: (786) 646-6461

Tailored IT Services:

All businesses are different. Because we appreciate the uniqueness of each firm, we take a customized approach to business IT support. Select the industry that best applies to you and see how our technology management can help your firm grow:

Latest IT News and Updates

Line break to p (paragraph) tag conversion

phpThere's a nl2br function in PHP, below is a function to convert line breaks to <p> tags:

(We did not write this, but have found it to be useful):

 

function nl2p($string, $line_breaks = true, $xml = true) {
$string = str_replace(array('<p>', '</p>', '<br>', '<br />'), '', $string);
// It is conceivable that people might still want single line-breaks
// without breaking into a new paragraph.
if ($line_breaks == true)
    return '<p>'.preg_replace(array("/([\n]{2,})/i", "/([^>])\n([^<])/i"), array("</p>\n<p>", '$1<br'.($xml == true ? ' /' : '').'>$2'), trim($string)).'</p>';
else
    return '<p>'.preg_replace(
    array("/([\n]{2,})/i", "/([\r\n]{3,})/i","/([^>])\n([^<])/i"),
    array("</p>\n<p>", "</p>\n<p>", '$1<br'.($xml == true ? ' /' : '').'>$2'),
    trim($string)).'</p>';
}

 

Reboot mac using command line

Sometimes it is necessary to restart a Mac remotely, especiallyapple-logo when there's no direct access to the GUI. A quick way to do that is by logging on to the server with an admin account using SSH (assuming ssh is permitted) and running the following command:

sudo /sbin/shutdown -r now

shutdown: will shutdown the system

-r: stands for "restart"

now: do not wait for timeout and restart the system right away

Reserve IP in OpenVPN

openvpn-logo-300x300The IPs in the VPN are assigned randomly. If you have your router configured using something like Tomato, you can setup the reservation by MAC address. For the linux-based install, follow these steps:

1) To begin, first identify the directory, where the files will be stored:

Continue Reading

More Articles...

Tel: (786) 646-6461   |   Toll-Free: (877) 454-0758
18350 NW 2nd Ave, Suite 406E, Miami, FL, 33169, USA
Privacy Policy