Jump to content
  • Create New...

[PHP] Script affichage nombres de vote et place RPG


Recommended Posts

Ayant vu que de nombreux serveur dans le top 10 RPG l'utilisait je me suis dit pourquoi pas le donner car il ne me sert a rien .


Alors ,


Nombre de Votes :


   $srr = file_get_contents('http://url');
   if (preg_match('#Vote : ([0-9]+)#', $srr, $vote))
   echo $vote[1];
   }  ?>


Nombre de clics sortants :


    $str = file_get_contents('http://url');
   if (preg_match('#Clic Sortant : ([0-9]+)#', $str, $clics))
   echo $clics[1];
   }  ?>


Position :


   $syr = file_get_contents('http://url');
   if (preg_match('#Position ([0-9]+)#', $syr, $Pos))
   echo $Pos[1];
   }  ?>


Voila en esperant que sa vous seras plus utile qu'a moi ^^

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.