Author Topic: Please advise whether or not your web server supports PHP.  (Read 3084 times)

tigers

  • Gentle Breeze
  • **
  • Posts: 79
Please advise whether or not your web server supports PHP.
« on: March 08, 2012, 01:12:10 AM »
Life becomes a little easier if your webserver supports PHP. If you don't know if your sever supports PHP, or don't know the version, create a file on your server called phpinfo.php and paste the following into the file:

Code: [Select]
<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>


Save the file and then navigate to your newly created page in your browser: http://mysweetwebserver.com/phpinfo.php

If you have php installed, you'll see something like this:



Notice the big fat text at the top telling you your PHP version.

If you don't have PHP, you'll just see your page code and no output.

Finally, delete the phpinfo.php file from your server when you're done.

HairyMcLeary

  • Strong Breeze
  • ***
  • Posts: 164
    • DW5912
    • INORTHOT6
  • Station Details: LaCrosse WS2355, iMac 2.66 Ghz Core 2 Duo, 8 GB RAM, Mountain Lion
Re: Please advise whether or not your web server supports PHP.
« Reply #1 on: March 08, 2012, 01:39:14 AM »
Mine doesn't support php unless I "upgrade" to a business plan.

But if there was a sufficient reason to use a provider that supports php then I would definitely consider changing to one that does.

I look at envy at some of the weather webpages out there that are utilising php.

Tony

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1324
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2017 27" iMac 3.8 GHz i5, 40GB RAM, Mac OS 10.14, WeatherCat 3
Re: Please advise whether or not your web server supports PHP.
« Reply #2 on: March 08, 2012, 01:52:46 AM »
Hi Todd,

Yes, my provider HostDime supports php 5.2.9, and I have the test php distributed with LWC working here: http://www.avon-weather.com/test_php/watch_weather.php

I've asked about using php on the MacWeather forum as well as the WXforum, as Cumulus and Weather Display take advantage of the capabilities. I just don't know enough about how to work with it to make any sense of the templates I download.

Weather-Watch has two particularly interesting php real-time displays in development by the members right now, One os a Steel-Series set of gauges that look wonderful! There are all sorts of variation being worked on. Here's an example: http://70.67.42.236/cumulus/gauges_steel.php And here's the discussion forum:  http://www.weather-watch.com/smf/index.php/board,61.0.html

The other fun one is to take an image of the Davis VP2 console and embed the real-time data so it looks like the real console. A couple even have the simulated backlight, and the buttons change the charts. Here's the discussion (more detailed templates as the pages go on) http://www.weather-watch.com/smf/index.php/topic,49563.0.html  And here's an example of a working VP2 display: http://www.meteoportocolom.com/vpconsole.htm

I'd love to learn more about this and would be happy to try out anything you come up with.
Steve
Steve - Avon, Ohio, USA


CWOP: DW8454 • WU: KOHAVON11 • AWEKAS • CoCoRaHS • Skywarn •  UK Met Office
MWWN •PWSweather • WeatherBug • WeatherCloud • Twitter • Facebook

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 5275
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
GoDaddy - doez . . . (Re: web server supports PHP.)
« Reply #3 on: March 08, 2012, 03:40:23 AM »
Hi Tigers,

Yup, GoDaddy Linux accounts got PHP-5

Cheers, Edouard  [cheers1]

embayweather

  • Strong Breeze
  • ***
  • Posts: 187
    • DW3656
    • lENGLAND128
    • Lancastrian Imaging
  • Station Details: Oregon WM928, Intel Mac 2.5Ghz, I5 Quad core, Met Office spec manual instruments, Cat, WD, 1-wire, Labjack, Lightning Radar
Re: Please advise whether or not your web server supports PHP.
« Reply #4 on: March 08, 2012, 05:24:08 PM »
Just checked. Just Host also allows PHP as well, never used it so not sure on the details.

Best wishes

Mike


Jace

  • Storm
  • *****
  • Posts: 811
    • DW9675
    • ISuffolk62
    • Yoxford weather site.
  • Station Details: Davis Vantage Pro2, with Mac USB Data Logger. 2.4 GHz Intel Core 2 Duo MacBook, with 8 GB 1033 MHz DDR3 Memory, running Mac OSX Version 10.10.1 (Yosimite).
Re: Please advise whether or not your web server supports PHP.
« Reply #5 on: March 10, 2012, 02:51:42 PM »
My host allows PHP currently version 5.2.8

One day I'll be able to get a simple web site up and running, but by then you lot will be light years ahead of me !  [beer]  [tup]

JC