Hallo,
Ik heb een txt bestand met daarin php variabelen. Hieronder zie je de inhoud van dit txt bestand:
BOF
$stationDate = "19/08/12";
$stationTime = "19:20";
$windDirection = "NW";
$sunriseTime = "06:40";
$sunsetTime = "20:59";
$outsideTemp = "28.1°C";
$hiOutsideTemp = "31.1°C";
$lowOutsideTemp = "21.8°C";
$lowOutsideTempTime = "06:33";
$hiOutsideTempTime = "14:22";
$lowMonthlyOutsideTemp = "14.2";
$hiMonthlyOutsideTemp = "32.1";
$hiYearlyOutsideTemp = "38.0";
$lowYearlyOutsideTemp = "-10.4";
$outsideHumidity = "64";
$lowHumidity = "54";
$hiHumidity = "80";
$lowHumTime = "16:26";
$hiHumTime = "07:48";
$hiMonthlyHumidity = "98";
$lowMonthlyHumidity = "48";
$hiYearlyHumidity = "100";
$lowYearlyHumidity = "25";
$outsideDewPt = "20.6°C";
$hiDewpoint = "23.8 °C";
$lowDewpoint = "16.9 °C";
$hiDewpointTime = "14:14";
$lowDewpointTime = "01:49";
$hiMonthlyDewpoint = "23.8";
$lowMonthlyDewpoint = "10.8";
$hiYearlyDewpoint = "28.8";
$lowYearlyDewpoint = "-14.1";
$windSpeed = "2.5 km/h";
$wind10Avg = "0.2 km/h";
$hiWindSpeed = "17.3 km/h";
$hiWindSpeedTime = "16:26";
$hiMonthlyWindSpeed = "25.9";
$hiYearlyWindSpeed = "46.4";
$windDir = "315 °";
$windDirection = "NW";
$windChill = "28.1°C";
$lowWindchill = "21.8 °C";
$lowWindchillTime = "06:33";
$lowMonthlyWindchill = "14.2";
$lowYearlyWindchill = "-13.8";
$outsideHeatIndex = "30.2°C";
$hiHeatindex = "36.4 °C";
$hiHeatindexTime = "14:22";
$hiMonthlyHeatindex = "36.4";
$hiYearlyHeatindex = "43.5";
$hiTHSWindex = "30.2";
$hiTHSWindexTime = "36.4";
$hiMonthlyTHSWindex = "36.4";
$hiYearlyTHSWindex = "41.4";
$barometer = "1020.2 hpa";
$barTrend = "Rising slowly";
$lowBarometer = "1018.9 hPa";
$hiBarometer = "1021.3 hPa";
$lowMonthlyBarometer = "1009.8";
$hiMonthlyBarometer = "1034.7";
$lowYearlyBarometer = "991.5";
$hiYearlyBarometer = "1045.1";
$lowBarometerTime = "18:14";
$hiBarometerTime = "00:25";
$dailyRain = " 0.0 mm";
$monthlyRain = "14.4 mm";
$totalRain = "446.7 mm";
$rainRate = "0.0";
$hiRainRate = "0.0";
$hiRainRateTime = "00:00";
$hiRainRateHour = "0.0";
$solarRad = "0";
$hiSolarRad = "-1";
$hiSolarRadTime = "";
$hiMonthlySolarRad = "0.0";
$hiYearlySolarRad = "0.0";
$uv = "0.0";
$hiUV = "-1.0";
$hiUVTime = "";
$hiMonthlyUV = "0.0";
$hiYearlyUV = "0.0";
$forecast = "";
$wdversion = "10.37R"
EOF
Nu is mijn vraag: Hoe kan ik deze gebruiken op een webpagina? Het is wellicht niet zo moeilijk maar ik zit muurvast.
Alvast bedankt voor de hulp.
7.144 views