Salut,
le warning de la version php est :
	
	Warning: file_get_contents(http://sharablemusic.free.fr/count.txt) [function.file-get-contents]: failed to open stream: Network is unreachable in /mnt/130/sdb/8/3/sharablemusic/page.php on line 128
 
sinon j'ai trouvé ca pour javascript :
	
	| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 
 | <script type="text/javascript">
<!--
var Fichier = function Fichier(fichier)
{
    if(window.XMLHttpRequest) obj = new XMLHttpRequest(); //Pour Firefox, Opera,...
 
    else if(window.ActiveXObject) obj = new ActiveXObject("Microsoft.XMLHTTP"); //Pour Internet Explorer 
 
    else return(false);
 
 
    if (obj.overrideMimeType) obj.overrideMimeType("text/xml"); //Évite un bug de Safari
 
 
    obj.open("GET", fichier, false);
    obj.send(null);
 
    if(obj.readyState == 4) return(obj.responseText);
    else return(false);
}
 
//-->
</script> | 
 
Mais la aussi j'ai un problème,
lorsque j'écris :
	
	<script LANGUAGE="JavaScript">var Contenu = Fichier("http://sharablemusic.free.fr/count.txt");document.write(Contenu);</script>
 j'ai un bon affichage  ('0')
mais lorsque j'écris
	
	<script LANGUAGE="JavaScript">var Contenu = Fichier("http://sharablemusics.free.fr/album47/count.txt");document.write(Contenu);</script>
 rien ne s'affiche
remarque : j'écris ca dans un fichier  http://sharablemusic.free.fr/page.php
						
					
Partager