Our online blog

Archive for the ‘Server Scripting’ Category

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

Using Coldfusion tag: CFFEED

Friday, March 6th, 2009

Using the ‘cffeed’ allows you to read any websites RSS feed and display it within your coldfusion page. The ‘cffeed’ tag is a very easy tag to use and can be very handy when building a RSS display website.

Code to be placed at the top of .cfm page:

<cffeed action=”read” source=”http://www.hostmediauk.com/blog/?feed=rss2″ name=”myRSSFeed”>

Code to be placed within the <body> tags:

<cfloop from=”1″ to=”#ArrayLen(myRSSFeed.item)#” index=”i”>

<cfoutput>
#myRSSFeed.item[i].description.value#<br />
</cfoutput>

</cfloop>

You can view this working on our Coldfusion 8 servers in the UK at:
http://www.hostcoldfusion.co.uk/

Enjoy using RSS feeds on your website.

FFmpeg Hosting

Wednesday, January 14th, 2009

We have now setup FFmpeg hosting on our servers which is a great tool for adding videos to your website.

I wanted to add a blog post to give you some links to find out more about this as FFmpeg is very much under used unless you know what it is and what it does.

View our FFmpeg details page

Using FFmpeg on your hosting account with Host Media UK:

Within many pre-made scripts or your own scripts you will need the FFmpeg install path which is:

/usr/bin/ffmpeg

Hope you find FFmpeg useful and a new feature to add to your current website.

Rewrite URL for Permanent Redirect

Thursday, November 20th, 2008
This is a great SEO tip to get your website higher in the rankings as it puts more focus on your main domain name (either with or without the ‘www’).
Why use Permanent Redirects
Search engines may think www.yourdomain.co.uk and yourdomain

.co.uk are two different sites. Thats why you should set up a permanent redirect (technically called a “301 redirect”) between these sites. Once you do that, you will get full search engine credit for your work on these sites.

The code is simple to use, all you need to do is open notepad / dreamweaver etc and save a file names ‘.htaccess‘. Within this file copy and paste the text in the quote area below.
Quote:
Options +FollowSymLinks
RewriteEngine on
#
RewriteCond %{HTTP_HOST} ^yourdomain\.co.uk

RewriteRule (.*) http://www.yourdomain.co.uk/$1 [R=301,L]

If you open a document window (PC) / finder window (Mac) you may not see the file this is because operating systems treat the .htaccess file as a hidden file. If you turn on show hidden files you will be able to see it.

Many control now have this feature, one that we use on Host Media UK is cPanel and this feature is on the control panel.

Enjoy!