Trixology

WeatherCat => WeatherCat Web Templates => Topic started by: tigers on March 08, 2012, 01:12:10 AM

Title: Please advise whether or not your web server supports PHP.
Post by: tigers 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:

(https://img.skitch.com/20120308-dtcg58ppe5auaj3w6yn7jx6d1r.preview.jpg) (https://skitch.com/tcatkins99/8efem/phpinfo)

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.
Title: Re: Please advise whether or not your web server supports PHP.
Post by: HairyMcLeary 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
Title: Re: Please advise whether or not your web server supports PHP.
Post by: Steve 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
Title: GoDaddy - doez . . . (Re: web server supports PHP.)
Post by: elagache on March 08, 2012, 03:40:23 AM
Hi Tigers,

Yup, GoDaddy Linux accounts got PHP-5

Cheers, Edouard  [cheers1]
Title: Re: Please advise whether or not your web server supports PHP.
Post by: embayweather 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

Title: Re: Please advise whether or not your web server supports PHP.
Post by: jace 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