Our online blog

Posts Tagged ‘php’

Host Media UK Official Team Coder Blog

Friday, September 24th, 2010

For some time we wanted to start up a new blog area for our guys to write code, reviews and general techie bits. After a couple weeks off and on testing and writing posts we now have a fully working blog for this. This release notice is a bit late as it has been a couple months now that it has been up and live. So check out: http://code.hostmediauk.com/

Any comments, requests and if you would be interested in becoming a blogger for the blog free feel to contact us or write comments on the posts of your interest.

Sport Datum service is launched

Wednesday, August 11th, 2010

Today the Sport Datum service is launched to provide XML based data feeds to be used on desktop, mobile and of course web based applications. XML can be read by a huge number of coding languages including: ColdFusion, Railo, PHP, ASP.NET, X-Code and many more.

You can sign for FREE to the services and get the English Premier League Top 3 and Formula One Standings Top 3 results for free and you can upgrade at any time or just keep using the free service.

The data feeds are located in the US and the UK which allows you to pick which will fit with your users requirements best, or use both!

Why not try out the service and start showing sports data on your website!

Register a free account: http://www.sportdatum.com/register/

Visit the website: http://www.sportdatum.com/

PHP Date

Friday, May 1st, 2009

We have had a few emails asking about simple PHP dates for copyright footers and having the date as part of a navigation so we thought we would post a little info pack about PHP dates.

Adding the year as part of the copyright is a great idea as it makes one less thing you have to change each year of your website. 1 more thing of the “To do List”

The simple way of getting the date and outputing it to the screen is using the example provided from PHP.NET shown below:

Source PHP.NET

<?php
$today
=

getdate();
print_r($today);
?>

To do a year only for copyright footers like we have on our website you can use:
<?php echo date(‘Y’); ?>
Hope you find this tiny bit of code handy for your website.

PHP_MING Hosting

Monday, March 16th, 2009

Over the past week we have had php_ming on our Linux cPanel servers to work with and many of our customers have already found this feature as a great use.

We offer PHP_MING with all our cPanel Linux hosting, see below for a list of hosting packages:

What is PHP_MING (Taken from PHP.net)

First of all: Ming is not an acronym. Ming is an open-source (LGPL) library which allows you to create SWF (“Flash”) format movies. Ming supports almost all of Flash 4′s features, including: shapes, gradients, bitmaps (pngs and jpegs), morphs (“shape tweens”), text, buttons, actions, sprites (“movie clips”), streaming mp3, and color transforms –the only thing that’s missing is sound events.

Note that all values specifying length, distance, size, etc. are in “twips”, twenty units per pixel. That’s pretty much arbitrary, though, since the player scales the movie to whatever pixel size is specified in the embed/object tag, or the entire frame if not embedded.

Ming offers a number of advantages over the existing PHP/libswf module. You can use Ming anywhere you can compile the code, whereas libswf is closed-source and only available for a few platforms, Windows not one of them. Ming provides some insulation from the mundane details of the SWF file format, wrapping the movie elements in PHP objects.

Ming was added in PHP 4.0.5.

To view the module is supported on our cPanel servers please use the following URL:

http://www.hostmediauk.com/info.php#ming

Learn more about PHP Ming

We have created a small example demo of PHP Ming and put together some information at:

http://www.hostmediauk.com/web-hosting/php-ming-hosting.php