php help please

I wish to display tracreports from nexstorm as Carter Lake does. He has kindly made available the scripts at his website, http://www.carterlake.org/weatherphp.php

I wish to use http://www.carterlake.org/tracreportshort.php.txt on my site but not sure what I need to do.

I want to display it on my first page at http://www.tpfrs.com/weather/index.html

Can someone give me a hand please? I got my forecast displayed ok using php but I’m stuck with this one.

Cheers

Sure, be glad to assist :slight_smile:

First, you’ll need to have your index.html uploaded as index.php (so that PHP inside the page can be parsed and executed).

Second, you need to upload the NexStorm TRACReport.txt file routinely to your website … it should go in the same directory as the tracreportshort.php file is located (in your document root?). I use the Control Panel, FTP Connections, General FTP Functions TAB to upload the files.

Then in your index.php page, just put

<?php include("tracreportshort.php"); ?>

in the page where you’d like the report to appear.


Great! Many thanks mate. Works a treat!