Changing the php.ini File for Web Workers in Windows Azure Pack Websites v2

As some of you may have noticed with Windows Azure Pack Websites v2, you can have the user to specify certain settings inside the .user.ini file if they want to enable fancy PHP options.

However, what if you want to make those changes applied globally to all of your tenant’s web sites by default? Doing some quick Google searches leads you to a dead end. However I accidentally discovered this trick when I was upgrading a lab web farm from Update 4 to Update 6.

Continue reading “Changing the php.ini File for Web Workers in Windows Azure Pack Websites v2”

Using the Smarty Template Engine for your Custom WHMCS Addon Module

If you ever wondered how one uses the Smarty template engine in conjunction with WHMCS’s _output function for custom addon modules, here’s a snippet that you can use for WHMCS 5.3.x and PHP 5.3.x:


function _setup_template() {
global $templates_compiledir;
$template = new Smarty();
$template->compile_dir = $templates_compiledir;
$template->template_dir = __DIR__ . DIRECTORY_SEPARATOR . 'templates';
return $template;
}

Include this in your functions file or whatnot and be on your merry way on creating WHMCS modules for your business! *cough* *cough*