Author Topic: Central Location of FTP files  (Read 1345 times)

Offline CurtisZM

  • New member
  • *
  • Posts: 5
    • CurtisZMWeather
Central Location of FTP files
« on: November 25, 2016, 12:11:56 AM »
To All,

 What would I need to do to create a central folder that a couple of the templates could reference to get the information sent from my local PC Cumulus instead of FTP'ing to each template folder?

 Example: If I wanted to use weather_blues2 and weather_sunset. What would I need to do in the php's to reference a folder that had the wt_data_inc.php, trends, realtime files?

 Thank you.
« Last Edit: November 25, 2016, 12:13:51 AM by CurtisZM »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Central Location of FTP files
« Reply #1 on: December 03, 2016, 08:03:51 AM »
Hi Curtis,

You could have only one set for your data files, but you need to modify all pages.
As templates are using relative paths, data files are intended to be in current folder.

As example:  include('wt_data_inc.php');

You have to change it for some thing like: include('../data/wt_data_inc.php');

Regards,
Jacques
Please, consider supporting this site