Ce script vous permettra de savoir combien de visiteurs sont connectés sur votre site. Le script utilise la fonction session_start() : si vous êtes hébergé... Lire la suite
Comment faire un enum en php ? http://fr.php.net/manual/en/language.oop5.php#73929 ici on pouvait trouver une solution qui semblait correcte et simple, mais... Lire la suite
Une quarantaine de lignes de codes que j'ai crée à partir d'une page blanche en exactement 30 minutes. Ces lignes sont d'une grande utilité... Lire la suite
Oui je sais, ca fait encore une de plus ! :) Mais personnellement je n'ai rien trouvé qui me convienne en Php5. Cette classe essaye au maximum... Lire la suite
Un wake on lan que j'ai déjà publié sur le forum. Je pense qu'il sera plus visible ici vu les difficultés que j'ai eu à trouver des... Lire la suite
Il s'agit de valider en un rien de temps un formulaire, quelque soit le nombre de champs. Le script vérifie le contenu de chaque champ en fonction ce... Lire la suite
Voici une fonction que j'ai écrit récemment et qui me permet de récupérer rapidement tous mes objets stockés dans ma session. Au chargement de mon... Lire la suite
Bonjour, Cette classe permet de couper une chaîne de caractère à une longueur donnée. La chaîne sera coupée entre deux mots et en dehors d'une balise.... Lire la suite
J'avais fait un peu de programmation objet en Java et j'ai voulu m'y mettre en PHP. J'ai donc décidé de faire une interface de... Lire la suite
Petite fonction permettant de renvoyer un dossier disponible de nom aléatoire dans le chemin précisé en paramètre. Source / Exemple : ... ... Lire la suite
XML-RPC Startup-Script est un petit script qui sert de base pour utiliser les requêtes XML-RPC. Il est conçu de tel sorte qu'il soit facile et rapide à... Lire la suite
J'ai fait cette classe pour me faire la main sur la POO PHP5 (car j'aime ça :). Cette classe sert à manipuler le fichier MapCache.ini de CnC Heure... Lire la suite
Class permettant d'ajouter des caches sur sont site simplement et rapidement. Donc juste le cache de pages (pas de demi cache, ...) Source / Exemple :... Lire la suite
Cette classe permet la gestion complète de plusieures langues à partir d'un fichier (de type INI) contenant les textes. Source / Exemple : ... ...... Lire la suite
Je reste dans la simplicité mais pour une Class de templates. Fonctions : - Plusieurs instanciations Possible, mais seule la première définit le template... Lire la suite
Ce script permet de générer, à la demande, des fichiers logs au format Apache. Vous pouvez ainsi générer des logs qui ne sont pas encombrés par les images,... Lire la suite
gérè l'inscription la vérification et l'envoi de mail si perdu Le tout gérer sous Codeingner FRAMEWORK. Il ya trois fichiers le controller Le... Lire la suite
Ce code permet d'enlever les balises html non désirable que l'on peut mettre dans une textarea. D'autre part tous code BBCode insérer dedans... Lire la suite
Ptite fonction toute simple qui n'apprendra rien aux coder confirmés mais qui reste pratique et que je n'ai pas croisé ici alors je post ;).... Lire la suite
Ceci est une classe permettant d'effectuer des statistiques mathématiques sur une ou plusieurs plages de données : calcul de moyenne, variance, écart... Lire la suite