bonjour,

ma nouvelle erreur

sur le site quand je passe en php 5

il ne reconnais plus mon include

il me met en erreur:


Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home.10.9/cpsifran/www/croacroa/members/modules/mystats/index.php on line 3

Warning: include(http://croacroa.com/cfg.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home.10.9/cpsifran/www/croacroa/members/modules/mystats/index.php on line 3

Warning: include() [function.include]: Failed opening 'http://croacroa.com/cfg.php' for inclusion (include_path='.:/usr/local/lib/php') in /home.10.9/cpsifran/www/croacroa/members/modules/mystats/index.php on line 3



Mon fichier : index.php
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
 
<?php
$jour=date("d");
include('http://croacroa.com/cfg.php');
if($_COOKIE[$_SESSION[pseudo]]!=$jour)
{
	$day = date("d/m/Y");
 
	$fo = fopen($stats_path.'lastlog.stats','r+');
	$lastlog_content = fgets($fo, 255);
	if($day != $lastlog_content)
	{   fseek($fo, 0);  fputs($fo, date("d/m/Y"));  $daydiff = 'yes';   }
	else
	{   $daydiff = 'no';   }
	fclose($fo);
 
	$fo = fopen($stats_path.'total.stats','r+');
	$total = fgets($fo, 255);
	$total++;
	fseek($fo,0);
	fputs($fo,$total);
	fclose($fo);
 
	if($daydiff == 'no')
	{
		$fo = fopen($stats_path.'visits.stats','r+');
		$visits = fgets($fo, 255);
		$visits++;
		fseek($fo,0);
		fputs($fo,$visits);
		fclose($fo);
	}
	elseif($daydiff == 'yes')
	{
		$content_new = '';
		$a = '';
		$out = '';
 
		$fo = fopen($stats_path.'visits.stats', 'r+');
		$content = fgets($fo, 255);
		$content = explode(",", $content);
		if(count($content) >= '30')
		{
			for($a=1; $a<count($content); $a++)
			{
				if($a == '1')
				{   $content_new .= $content[$a];   }
				elseif($a != '1')
				{   $content_new .= ','.$content[$a];   }
			}
			$out = '1';
		}
		fseek($fo,0);
		fputs($fo,$content_new);
		fclose($fo);
 
		// --
 
		$fo = fopen($stats_path.'visits.stats','r+');
		$content = fgets($fo, 255);
		if($out == '1')
		{   $write = substr($content, 0, -3).',0001';   }
		else
		{   $write = $content.',0001';   }
		fseek($fo,0);
		fputs($fo,$write);
		fclose($fo);
	}
	setcookie($_SESSION[pseudo], $jour, time() + 3600*24);
}
?>
Merci d'avance pour l'aide

ayez de la compassion pour mon niveau de php puisque j'apprends et que pour moi c'est une nouvelle langue