Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Nov 2007
    Posts
    42
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Script not working with different hosting company

    As above really, I built a website and hosted it on free servers while i was building it for testing and every is working fine, I now have a proper domain and hosting and the script is now no longer working with the new hosting company

    http://www.xopest.site90.com/business.html - This is the free one and scroll down to seasonal pest threats and as you can see its working fine.

    http://www.tendringpestcontrol.co.uk/business.html - This is the broken one - its the exact same html file so I can not see why it will not work any ideas greatly appreciated

    Code:
    <?php 
    $month=date(m); 
    $text=array("01"=>"<strong>January pest threats</strong><br /><br />
    <strong>Rodentia (Rats and Mice)</strong><br />
    This is a bad time for rats especially when it is cold and frosty - their numbers reduce dramatically in prolonged spells of cold. Therefore they tend to try to enter buildingslooking for warmth and can be seen close to properties, sometimes heard in roof voidsand cavity walls. Sightings are reported as they try to scavenge for a living. Mice willalso seek shelter and will survive on poor diets inside properties.
     ","02"=>"<strong>February pest threats</strong><br /><br />
    <strong>Rodentia (Rats and Mice)</strong><br />
    Without water rats cannot survive and frozen puddles make problems worse for them.Both species are reported in numbers in February. Rats will gnaw pipes andoccasionally fall into water tanks in roofs trying to take a drink. Mice take moisture from their food in general. Mice are sporadic feeders making control difficult.","03"=>"<strong>March pest threats</strong><br /><br />
    <strong>Cluster Flies (Pollenia Rudis)</strong><br />
    Cluster flies start emerging from their winter hibernation often because tiles and roof spaces are warmed by the sun. They have been hiding under tiles and felt in sashboxes around windows. They prefer south and south west sides of properties.","04"=>"<strong>March pest threats</strong><br /><br />
    <strong>Cluster Flies (Pollenia Rudis)</strong><br />
    Cluster flies start emerging from their winter hibernation often because tiles and roof spaces are warmed by the sun. They have been hiding under tiles and felt in sashboxes around windows. They prefer south and south west sides of properties.","05"=>"<strong>May pest threats</strong>
    <br /><br /><strong>Varied Carpet Beetle (Anthrenus Verbasci)</strong><br />
    This small beetle starts being reported on window sills and ledges; it flies and is attracted to natural UV light. It can also enter buildings via open windows. The larvae are known as woolly bears and create much damage to wool based carpets and clothes. It will also consume feathers and fur being able to digest keratin.","06"=>"<strong>June pest threats</strong><br /><br />
    <strong>Flies - House fly</strong><br />
    (Musca domestica) Lesser house fly (Fannia canicularius), Bluebottles (Lucilia sp)
    Many species appear in June and breeding is rapid when the weather is warm preceded by damp weather. House flies breed in dustbins, skips and where dirty conditions prevail such as in filth accumulations. Lesser house flies live in poultry and animal houses in litter and bluebottles live in and are attracted to dead meat and material of organic origin.","07"=>"<strong>July pest threats</strong><br /><br />
    
    <strong>Flies - House fly</strong><br />
    
    (Musca domestica) Lesser house fly (Fannia canicularius), Bluebottles (Lucilia sp) and others
    At the peak of the summer flies can be a serious nuisance entering businesses and homes, contaminating food contact & preparation surfaces. They also breed in refuse & will exploit poor hygiene but can be found in clean premises entering via defects in the fabric of buildings and via open doors & windows etc. Backed-up and blockeddrains and even foul water in plant pots can be the source of some species.","08"=>"<strong>August - Stored product insect month!</strong><br /><br />
    <strong>Saw toothed grain beetles (Oryzaephilus surinamensis)</strong>
    <br />
    These very small beetles live in broken and whole grains and are a serious pest in grain stores and stored product raw materials. They can heat up grain as they breed in very large numbers and will damage and render products unacceptable.
    <br /><br />
    <strong>Biscuit beetles (Stegobium paniceum)</strong>
    <br />
    These small brown beetles often infest dog biscuits, cereals and baked products along with herbs and spices. They are more foreign body hazard and are not a major pest of economic importance like the grain weevil. Commodities have to be quarantined and possibly disposed of once infestation has been found.","09"=>"<strong>September Pest Threats</strong><br /><br />
     <strong>Cluster flies (Pollenia rudis)</strong>
    <br />
    Cluster flies start entering buildings at this time under tiles and roof felt congregating in large numbers. They enter sash boxes and are seen around windows bothering occupants. When seen in large numbers they often disturb property owners.","10"=>"<strong>October pest threats</strong><br /><br />
    Expect a reasonably quiet month but watch out for staff bringing pets fleas into the workplace from home. They will easily travel on peoples clothing.","11"=>"<strong>November pest threats</strong>
    <br /><br />
    <strong>Spiders (Arachnids)</strong><br />
    
    These are not insects but start to become a major problem in some houses and establishments during this month.<br /><br />
    <strong>Mosquitoes (Culicines, Aedes)</strong><br />
    
    These insects become a pest sometimes entering windows and doors and it is only the female that feeds on blood.<br /><br />
    
    <strong>Moles</strong><br />
    
    <strong>(Talpa europaea)</strong><br />
    Moles are active at this time of the year and mole hills start to appear
    
    ","12"=>"<strong>December pest threats</strong><br /><br />
    
    <strong>Rats and mice</strong><br />
    
    <strong>(Rodentia)</strong><br />
    This is another month when rats and mice try to shelter from the cold and look for food. They are often sighted in and around properties, sometimes they are heard in roof voids and cavity walls, some mistake the noise as bird activity. Mice will also enter properties and squeeze under doors with a gap as small as 6-7mm.
    <br /><br />
    <strong>Moles</strong><br />
    
    <strong>(Talpa europaea)</strong><br />
    Moles are active at this time of the year and mole hills start to appear
    <br /><br />
    <strong>Rabbits</strong><br />
    
    <strong>(Oryctolagus cuniculus)</strong>
    Rabbits like cold frosty weather and they can be active this month"); 
    echo $text[$month]; 
    ?>
    Thanks in advance
    Danny Stones

  • #2
    Senior Coder
    Join Date
    Jul 2011
    Posts
    1,226
    Thanks
    3
    Thanked 171 Times in 171 Posts
    Are you positive they're identical? The one on your free hosting account only has a September entry for 'seasonal pest threats' whereas the file under your domain has a plethora of other information, and a commented out line of php which seems to define an array of the text being displayed. It appears your free host treats .html pages as .php (maybe using a mod_rewrite, or some other apache rule), which you should have known if you made the site really.

    Uncomment the relevant lines, rename the file to .php and there you have it!

  • #3
    New Coder
    Join Date
    Nov 2007
    Posts
    42
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Yep fixed it, I just renamed the file .php instead of .html Thanks for the response! Blonde Moment!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •