Joeybouwen.nl
Berichten: 968
Hallo,
Ik heb het rap script van Nillas hier op CP gedownload en ik ben een paar fouten tegen komen die k heb opgelost maar nu zit ik met een probleem waar ik niet uit kom, namelijk deze fouten;
1
2
3
4
5
6
7
|
Warning: fopen(include/bezdata.php) [function.fopen]: failed to open stream: Permission denied in /home/maffia/domains/maffiastarsz.nl/public_html/rap/include/bez.php on line 23
Warning: fputs(): supplied argument is not a valid stream resource in /home/maffia/domains/maffiastarsz.nl/public_html/rap/include/bez.php on line 24
Warning: fputs(): supplied argument is not a valid stream resource in /home/maffia/domains/maffiastarsz.nl/public_html/rap/include/bez.php on line 32
Warning: fclose(): supplied argument is not a valid stream resource in /home/maffia/domains/maffiastarsz.nl/public_html/rap/include/bez.php
|
|
|
Dit is ; bez.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
<?php
// Verander de variabelen hieronder:
$SecondenMeetellen = 600;
// Na hoeveel seconden een bezoeker niet meer mee wordt geteld.
$IPadres = $_SERVER["REMOTE_ADDR"];;
// De variabele voor het IP adres van de bezoeker.
// Standaard $_SERVER["REMOTE_ADDR"];
$BezoekersDataBestand = "include/bezdata.php";
// Het PHP bestand waar alle informatie in opgeslagen wordt.
// Ga er vanuit dat dit pad vanuit de hoofddirectory is.
// Hierna hoeft niets veranderd te worden.
$time = time();
$Aantal = 1;
$Bestand = file($BezoekersDataBestand);
$OpenBestand = fopen($BezoekersDataBestand,"w");
fputs($OpenBestand,"<?php exit; ?>");
while(list($nr,$regel) = each($Bestand)) {
list($tijd,$ipadres) = explode("|",$regel);
if($tijd > $time-$SecondenMeetellen && $ipadres != $IPadres) {
fputs($OpenBestand,"n$tijd|$ipadres|");
$Aantal++;
}
}
fputs($OpenBestand,"n$time|$IPadres|");
fclose($OpenBestand);
if($Aantal == 1) {
echo("» <b>1</b> Bezoeker<br>");
}
else {
echo("» <b>$Aantal</b> Bezoekers<br>");
}
?>
|
|
|
Hopelijk weten jullie het probleem,
Thnx
11-08-2010 13:45
Dit topic is 158 keer bekeken door 27 verschillende leden