Ik heb nieuwe webhost, deze werkt met een nieuwe versie van PHP en nu blijkt mijn script vol fouten te zitten ;)
ik zou niet weten wat het is, mss kunnen julie mij verder helpen ...?
het script is zo:
-------------------
<?
function teller($ip)
{
if (!file_exists("teller/$ip.php"))
{
include("teller.php");
$bezocht++;
$file = fopen("teller.php","w");
fputs ($file,"<?
\$bezocht = $bezocht;
?>");
fclose($file);
$file = fopen("teller/$ip.php","w");
fputs ($file,"<?
\$bezocht = 1;
?>");
fclose($file);
}
}
function teller_uit()
{
include("teller.php");
return $bezocht;
}
?>
---------------
De foutmelding:
---------------
Warning: fopen(teller.php): failed to open stream: Permission denied in /home/ttb/www/html/function_teller.php on line 12
Warning: fputs(): supplied argument is not a valid stream resource in /home/ttb/www/html/function_teller.php on line 18
Warning: fclose(): supplied argument is not a valid stream resource in /home/ttb/www/html/function_teller.php on line 20
Warning: fopen(teller/.php): failed to open stream: No such file or directory in /home/ttb/www/html/function_teller.php on line 22
Warning: fputs(): supplied argument is not a valid stream resource in /home/ttb/www/html/function_teller.php on line 26
Warning: fclose(): supplied argument is not a valid stream resource in /home/ttb/www/html/function_teller.php on line 27
--------------------
Alvast bedankt!
1.016 views