Algemeen forum ontrent de ontwikkelng, design en hosting van weergerelateerde websites (dit laatste om een beetje on topic te blijven)
Door ludo
#30756
Hallo Kees

werk ook niet.

deze bestanden worden door cumulus gemaakt dus in de map genaamd cumulus
dus het bestand cumulushist.php is de template zal ik het maar noemen
dan staat er in de zelfde map de data file's' realtime.txt en dayfile.txt die hij gebruikt voor de data aan te maken maar met dat include zie hij de template bestand

maar het bestand waar ik het mee aan wil roepen staat in de roet
dus het include bestand

zie zo doet hij het wel maar dit wil ik dan in mijn template van de website
hebben.

http://www.hetweeropurk.nl/cumulus/cumulushist.php

moet nog wel css bestand aan gekppeld worden.
Door tjabine
#30757
Dan doe je toch gewoon
Code: Selecteer alles
<?php include("http://www.hetweeropurk.nl/cumulus/cumulushist.php"); ?>


Gr Ron.
Door wsEpe
#30758
ludo schrijft:
ik heb in mijn root een map bv cumulus staan
daar staat een cumulushist.php bestand dat maakt weer gebruik
van 2 data bestanden (realtime.txt en dayfile.txt)die staan dus alle drie
in de zelfde map
http://www.hetweeropurk.nl/wxnewpage31.php

Luut, als ik het goed begrijp heb je 1 bestand in je root en 3 in de map cumulus.

in wxnewpage31.php gebruik je dan: include "cumulus/cumulushist.php";
in cumulushist.php gebruik je dan:
fopen ("cumulus/cumulushist.php",r);
file ("cumulus/dayfile.txt" );

De laatste 2 bestanden roep je eigenlijk aan in wxnewpage31.php en niet vanuit cumulushist.php. Dan moet je map erbij vermelden.
Door ludo
#30760
Ja de wxnewpage31.php staatin de root
en de andere 3 in de cumulus map
de cumulushist.php gebruikt 2 bestandjes voor de data
zo staat het in cumulushist.php

Location of the dayfile.txt
#
# This needs to point to where your dayfile.txt is relative to where this
# script is running.
#
# Normally... This will work because the daytime.txt and this script are
# in the same directory (folder)
$SITE['dayfile'] = './dayfile.txt';
#
# Need to know where the realtime.txt file is too. We look there to get
# the Unit types of the values for temp, wind, press, and rain...
#
# Normal would be something like
$SITE['realtime'] = './realtime.txt';
#
############################################################################
## OVERRIDE VALUES... REMOVE IF YOU ARE USING THIS SCRIPT
$SITE['realtime'] = './realtime.txt';
$SITE['dayfile'] = './dayfile.txt';
############################################################################

############################################################################
# Really shouldn't need to change anything below here unless you want to
# change the language...
############################################################################

weet je ook waar ik die moet neer zetten
fopen ("cumulus/cumulushist.php",r);
file ("cumulus/dayfile.txt" );

dan is er ook nog realtime.txt die hij gebruikt

Luut
Door wsEpe
#30763
oopsss. fout in de fopen-regel.. had moeten zijn: fopen ("cumulus/realtime.txt",r);
Maar volgens jouw tekst is het nog anders. de fopen en file worden ergens anders aangeroepen, dus niet in dit gedeelte. je hebt de cumulushist.php verwijderd, dus ik zie de foutmelding niet, maar vervang in jouw tekst eens alle
Code: Selecteer alles
$SITE['realtime'] = 'cumulus/realtime.txt';
$SITE['dayfile'] = 'cumulus/dayfile.txt';


in
Code: Selecteer alles
$SITE['realtime'] = 'cumulus/realtime.txt';
$SITE['dayfile'] = 'cumulus/dayfile.txt';


of alternatief als het niet werkt:
Code: Selecteer alles
$SITE['realtime'] = '../cumulus/realtime.txt';
$SITE['dayfile'] = '../cumulus/dayfile.txt';
Door wslangerak
#30764
Ik vind het vreemd dat de php-file de template is.... Normaal is de txt-file de template en de php-file het resultaat voorzien van data.
Toch?

Wie is je hostingprovider trouwens? Laat die fopen en include wel toe?
Door ludo
#30765
De txt files van cumulus zien er net zo uit als de clientraw in wd

hostingprovider webreus volgen mij laat die dat wel toe.
Door wslangerak
#30766
OK, dat moet dan goed zijn.

In WD is de txt-file de template, de php-file de output.

Dit is nu de foutmelding op je pagina:

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /var/www/vhosts/hetweeropurk.nl/httpdocs/wxnewpage31.php on line 51

Warning: include(http://www.hetweeropurk.nl/cumulus/cumulushist.php) [function.include]: failed to open stream: no suitable wrapper could be found in /var/www/vhosts/hetweeropurk.nl/httpdocs/wxnewpage31.php on line 51

Warning: include() [function.include]: Failed opening 'http://www.hetweeropurk.nl/cumulus/cumulushist.php' for inclusion (include_path='.:/usr/share/pear;' ) in /var/www/vhosts/hetweeropurk.nl/httpdocs/wxnewpage31.php on line 51

Misschien kun je die regel 51 van de wxnewpage31.php in zijn geheel hier plaatsen, want daar zit blijkbaar nog een foutje.