Retourne le nombre de jours entre deux timestamp sans faire simplement la difference des timestamp, il evalue aussi le fait que la difference peut deborder... Lire la suite
ce code permet d'avoir une image qui montre ou sont les contours. plus c'est blanc, plus il y a de chance qu'on se trouve sur un contour...... Lire la suite
Bonjour à tous ! Cette classe est inspirée du code de Malalam (voir http://www.phpcs.com/code.aspx?ID 30110) qui permettait de corriger une chaîne contenant... Lire la suite
salut tout le monde mon premier script php poster sur phpsc.com je me suis inspirer de plusieur script. Voici un script anti aspirateur en php ce script... Lire la suite
Cette classe calcul un pourcentage d'apparition de certains mots pre-enregistre dans une base de donnees au format xml. Les mots sont classes par... Lire la suite
Voici un petit code sans grande prétention. Il se charge de traiter les données envoyées par formulaire dans les tableaux $_GET et $_POST pour éviter le XSS... Lire la suite
Tout petit source pour convertir une date d'un format anglais-français dans les deux sens, avec l'heure ou non derrière. J'ai fait ça pour... Lire la suite
Voici une classe PHP(5) de sessions. C'est le même principe que les sessions PHP sauf qu'ici, il y a une vérification de l'adresse IP et une... Lire la suite
Ce petit script permet d'afficher l'heure en fonction d'un fuseau horaire. Et l'heure d'été est calculée automatiquement. Par... Lire la suite
Salutations ! Je vous présente ce code (qui est ma première contribution pour phpcs). je l'ai codé suite à un cours sur le PGCD (Plus Grand Commun... Lire la suite
Deux petites fonctions php bien utiles pour générer aléatoirement du contenu... la première n'est pas de moi mais génère des mots aléatoires (elle peut... Lire la suite
Bonjour, Je viens de terminer la nouvelle version (25/06/2007). Cette version gère le téléchargement de fichiers et d'images ainsi que l'envoi des... Lire la suite
Salut J'avais fait une première version de cet espace membre, et après plusieurs demandes d'amélioration j'ai décidez d'en refaire une!!... Lire la suite
Salut, Bon bah voilà, je me demandais comment faire pour faire de la programmation événementielle en PHP, c'est-à-dire la possibilité de définir des... Lire la suite
Ce code est relativement ancien et servait pour mon ancien blog. Cela permet d'afficher une entête aléatoire pour vos visiteurs. Cela servait à mon... Lire la suite
Bonjour, C'est la première fois que je poste une source sur ce site, donc merci d'être indulgent. Je vous propose cette classe dans le but de... Lire la suite
Bonjour, Je viens de terminer la nouvelle version du logiciel de gestion dynamique de formulaire multi-pages en php. La principale modification réside dans... Lire la suite
Bijour bijour :) Bon, alors je reviens avec une énième version de wrapper MySQL... mais cette fois ci, j'ai fais plus large. J'ai utilisé comme... Lire la suite
Hello! Bon je ne sais pas si vous avez eu vent de l'étude qui a été réalisée il y a un bon moment par l'université de cambridge ? En fait elle... Lire la suite
Cette source est simplement une classe de logs paramétrée par un fichier xml : on peut y ajouter différents types de logs (debug, error, sql, etc...)... Lire la suite