ecommerce website design Shropshire, Custom & Ecommerce Website Designers, Web Page Design Company Shropshire UK Site Map
Phone:01743 272 609 Fax: 0709 286 1166
Home page, website design service at Shrewsbury, Shropshire. We supply website design service to business in Shropshire and whole UKAbout spark computing, website design service at Shrewsbury, Shropshire. We supply website design service to business in Shropshire and whole UKExpertise and services from spark computing, website design service at Shrewsbury, Shropshire. We supply website design service to business in Shropshire and whole UKOffice automatic solutions, online business solutions supplied by Spark computing, shrewsbury, shropshirecontact spark computing, shrewsbury, shroshire to discuss online business websites, custom software development

Category: General IT articles

12/05/10

Permalink 01:37:27 pm, Categories: General IT articles  

Install ImageMagick on cPanel

On a cpanel web hosting server, to install ImageMagick you need to run if you got it running or not

# /scripts/checkimagemagick

If you installed Imagemagick via the rpm package

you can find if it is on your system or not by :

rpm -qa |grep image

If all the answers are no, you can simply install it by running

# /scripts/installimagemagick

To hook PHP to ImageMagick, you need to also install it via WHM

Log into WHM >> Software >> Module Installers >> PHP Pecl and install imagick to get the whole thing binding into PHP


Tweet this! Facebook Live Yahoo bookmark Digg US google bookmark

04/05/10

Permalink 11:39:52 am, Categories: General IT articles  

Monitor if the remote host alive or not using PHP

The simplest way to find out if the remote host is alive or not is to use the ping utility. Pear provides such a convenient tool.

First, you need to install the right module

Code:

pear install Net_ping

Here is the php

PHP:

// include class
require ("Net/Ping.php");
 
// create object
$ping Net_Ping::factory();
 
// ping host and display response
if(!PEAR::isError($ping))
{
   $response $ping->ping('REMOTE_HOST_IP_or_name');
   //print_r($response);
   if( $response->_transmitted &&  $response->_received ==&& $response->_loss ==100)
   {
       mail("your email address""remote host  is not responding"date("Y-M-D H:i:s"), "From: your_email");
   }else{
    //server is OK
  }
 
}

The above code will send out email to you if the remote host is not responding. However, if the remote host is behind a firewall or if ping packets are blocked by firewall, the ping is not going to work.


Tweet this! Facebook Live Yahoo bookmark Digg US google bookmark

05/03/10

Permalink 12:54:51 pm, Categories: General IT articles  

Paypal Currency Codes

Code:

Code  Currency Name  Symbol
AUD  Australian Dollars     
CAD  Canadian Dollars     
CHF  Swiss Franc     
CZK  Czech Koruna     
DKK  Danish Krone     
EUR  Euros  €  
GBP  Pounds Sterling  £  
HKD  Hong Kong Dollar     
HUF  Hungarian Forint     
ILS  Israeli Shekel     
JPY  Japanese Yen  ¥  
MXN  Mexican Peso     
NOK  Norwegian Krone     
NZD  New Zealand Dollar     
PLN  Polish Zloty     
SEK  Swedish Krona     
SGD  Singapore Dollar     
USD  United States Dollars  $

Tweet this! Facebook Live Yahoo bookmark Digg US google bookmark

04/03/10

Permalink 05:41:00 pm, Categories: General IT articles  

HTML Signature for Gmail

Gmail does not support rich text signature. That means you can’t have link, colors, images or any formatting with the Gmail signature.

There are ways to get around it.

1. copy and paste
Make your signature in Word and copy it to gmail’s composer each time you want to send an email.

2. Chrome/Firefox extension.
http://blankcanvasweb.com/pages/id_9/n_gmail_signatures/
The extension allows you to save your signature in your browser.
But if you use another PC, you will not be able to have the signature coming up automatically because it is saved to the PC where you installed the extension.

Regards,


Tweet this! Facebook Live Yahoo bookmark Digg US google bookmark
Permalink 05:18:40 pm, Categories: General IT articles  

Generate RSS feeds for your website

RSS newsfeeds and product feeds provide a variety of opportunities for increasing traffic to your website. Publishing your own feed is a great way to cut through the clutter of email spam and get your message directly to your target market. Interested parties can subscribe your RSS channel using common Email clients like Outlook. There are also many RSS readers available for Iphones or other smart phones.

RSS slowly becomes one of the important online marketing / SEO tasks.

Provided you already have an online product catalogue. Here is simple PHP code to use to generate a RSS feed:

PHP:

<?php
function xmlentities($str)
{
    $xml array('&#34;','&#38;','&#38;','&#60;','&#62;','&#160;','&#161;','&#162;','&#163;','&#164;','&#165;','&#166;','&#167;','&#168;','&#169;','&#170;','&#171;','&#172;','&#173;','&#174;','&#175;','&#176;','&#177;','&#178;','&#179;','&#180;','&#181;','&#182;','&#183;','&#184;','&#185;','&#186;','&#187;','&#188;','&#189;','&#190;','&#191;','&#192;','&#193;','&#194;','&#195;','&#196;','&#197;','&#198;','&#199;','&#200;','&#201;','&#202;','&#203;','&#204;','&#205;','&#206;','&#207;','&#208;','&#209;','&#210;','&#211;','&#212;','&#213;','&#214;','&#215;','&#216;','&#217;','&#218;','&#219;','&#220;','&#221;','&#222;','&#223;','&#224;','&#225;','&#226;','&#227;','&#228;','&#229;','&#230;','&#231;','&#232;','&#233;','&#234;','&#235;','&#236;','&#237;','&#238;','&#239;','&#240;','&#241;','&#242;','&#243;','&#244;','&#245;','&#246;','&#247;','&#248;','&#249;','&#250;','&#251;','&#252;','&#253;','&#254;','&#255;');
    $html array('&quot;','&amp;','&amp;','&lt;','&gt;','&nbsp;','&iexcl;','&cent;','&pound;','&curren;','&yen;','&brvbar;','&sect;','&uml;','&copy;','&ordf;','&laquo;','&not;','&shy;','&reg;','&macr;','&deg;','&plusmn;','&sup2;','&sup3;','&acute;','&micro;','&para;','&middot;','&cedil;','&sup1;','&ordm;','&raquo;','&frac14;','&frac12;','&frac34;','&iquest;','&Agrave;','&Aacute;','&Acirc;','&Atilde;','&Auml;','&Aring;','&AElig;','&Ccedil;','&Egrave;','&Eacute;','&Ecirc;','&Euml;','&Igrave;','&Iacute;','&Icirc;','&Iuml;','&ETH;','&Ntilde;','&Ograve;','&Oacute;','&Ocirc;','&Otilde;','&Ouml;','&times;','&Oslash;','&Ugrave;','&Uacute;','&Ucirc;','&Uuml;','&Yacute;','&THORN;','&szlig;','&agrave;','&aacute;','&acirc;','&atilde;','&auml;','&aring;','&aelig;','&ccedil;','&egrave;','&eacute;','&ecirc;','&euml;','&igrave;','&iacute;','&icirc;','&iuml;','&eth;','&ntilde;','&ograve;','&oacute;','&ocirc;','&otilde;','&ouml;','&divide;','&oslash;','&ugrave;','&uacute;','&ucirc;','&uuml;','&yacute;','&thorn;','&yuml;');
 
    $str str_replace($html,$xml,$str);
    //$str = str_ireplace($html,$xml,$str);
    return $str;
}
 
 $pro DB_DataObject::factory('Product');
 $pro->find();
  $xml ='<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
                <title>Water Coolers from Wenlock Water coolers Ltd</title>
                                                <link>http://www.wenlockwatercoolers.co.uk/rss.php</link>
                                <description>Water Coolers supplier - Wenlock Water coolers, Shropshire UK. We sell and rent water coolers to Business, Education and home users all over the UK</description>
                                <language>en-GB</language>
                                <docs>http://backend.userland.com/rss</docs>
                                 ';
  while($pro->fetch())
  {
    $catName $categoryArray[$pro->category];
    $xml .= "<item>
        <title>"xmlentities(htmlentities(stripSlashes("$pro->name"))) . "</title>\n";
    $xml .= "<link>http://www.wenlockwatercoolers.co.uk/index.php?product_id=$product->id</link>";
    $xml .="<category domain='main'>"stripSlashes($categoryname_Name). "</category>";
    $xml .="<description>";
    $xml .= xmlentities(htmlentities(stripSlashes($pro->detail) ));
   $xml .="</description>
        <content:encoded>
        <![CDATA[
        <table>
        ";
       //display product feature an images here
 
      }//end of for
        $xml .='</table>
                <br/>';
 $xml .="]]></content:encoded>
                </item>
                ";
        //
 
 //end of while
 
 $xml .="</channel>
 </rss> ";
  header("Content-Type: application/xml; charset=utf-81");
 echo $xml;
?>

To test it, you can type in the URL to the php file in your IE to validate the XML.

You can use a RSS viewer to view the data of your deed:

http://www.netimechannel.com/OnlineRssViewer/


Tweet this! Facebook Live Yahoo bookmark Digg US google bookmark

<< Previous Page :: Next Page >>

May 2024
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Spark Website Design, Shropshire

Technical articles on IT solutions.

Free information on office and home IT solutions; How to get a website running for your business; self-help e-commerce; and tips on website design.

Search

Misc

XML Feeds

What is this?