The PHP hosting Switcher in the Switchweb Control Panel now allows you and your customers to switch to the following versions of PHP:
5.2, 5.3, 5.4, 5.5, 5.6, 7.0 and 7.1
The PHP hosting Switcher in the Switchweb Control Panel now allows you and your customers to switch to the following versions of PHP:
5.2, 5.3, 5.4, 5.5, 5.6, 7.0 and 7.1
We’ve updated our WordPress one-click installer to automatically install WordPress 4.5.2.
Your customers will now have the latest version of WordPress right away, with no need to update their fresh installations.
Please make certain that your current WordPress-using customers have updated their WordPress, as the most recent update fixed major security issues.
Acting on customer feedback we have decreased the default TTL from 3 hours to 1 hour. This will ensure that future DNS updates occur more rapidly.
We will be bulk updating existing domains to use the new TTLs, but for now a DNS update is required to switch to the lower TTL. Any new domain will use the lower TTL by default.
To install the Dell B1160w laser printer on OS X you need to download the Samsung ML-2525w driver.
1. Download the Samsung Driver for OS X from here.
2. Install the software (Printer Driver Installer.app).
3. Open system preferences > printers
4. Add a new printer, your network will pick it up through Bonjour as a Dell B1160w Mono Laser Printer
5. Under the select ‘Use’ box pick ‘Select software’
6. Search for Samsung and select ‘Samsung ML-2525w’
7. Click OK – try to print a test page.
pre {
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
}
This version does not require you to hard-code the domain name, and takes into account SSL connections.
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ http%{ENV:protossl}://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
If you want to get the latitude and longitude from an address using PHP then try the following code snippet:
$geoResult = file_get_contents('https://maps.googleapis.com/maps/api/geocode/json?address=' . urlencode($addressString) . '&sensor=false&key=API');
if ($geoResult !== FALSE) {
$output= json_decode($geoResult);
@$lat = $output->results[0]->geometry->location->lat;
@$long = $output->results[0]->geometry->location->lng;
if ($output->status == 'OK') {
if ($lat > NULL) {
//do something
}
}
}
If your fonts don’t quite look smooth then apply the following CSS:
html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
If you need to align anything vertically in CSS, apply the following class:
.verticalAlign {
position: relative;
top: 50%;
transform: translateY(-50%);
}
This code goes in template.php and replaces the text on the default search box:
function themename_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'search_block_form') {
$form['actions']['submit']['#value'] = t('Search');
}
}