J'ai eu besoin de créer des tableau à l'aide de classes spécifique qui ne travaillaient qu'avec les positions numérique des cellules Ex : La... Lire la suite
Bonjour, Voilà, pour un de mes petit projet j'ai utilisé l'outil "tail" sous linux (debian, avec shell_exec) qui renvoi les x dernières lignes... Lire la suite
Ce script je l'ai crée pour mes besoins. C'est un script dynamique utilisant donc le Javascript pour la mise à jour du compteur sans recharger la... Lire la suite
Cette classe permet de générer des tags à partir d'une page HTML ou à partir d'une base de données. Actuellement, il gère un système de cache.... Lire la suite
Créer facilement un code en (PHP) et (JavaScript) qui affiche la date dans votre langue (préférée) sans avoir connaissance de programmation vous pouvez... Lire la suite
Fonction get http en php avec curl, récupère une page sur un site distant. Avec gestion des cookies. Source / Exemple : ... ... Conclusion : Très simple... Lire la suite
Une fonction qui trouve toutes les combinaisons de n caractères dans un charset donné. Une version récursive (plus jolie) et une version linéaire. Je ne... Lire la suite
La classe PHP tinyDoc permet générer des documents OpenOffice (OpenDocument) ou Word 2007 Pré-requis : - PHP 5.2 - ZipArchive Historique : La précédente... Lire la suite
Voici une classe simplifiée pour l'utilisation de moteur de template phpBB3. J'ai regroupé en une seule classe 'template.class.php' les... Lire la suite
C'est tout simplement un système d'inscription et qui répertorie les membres sur une page. Sur l'index le prog. affiche le dernier inscrit.... Lire la suite
Fonction equation en 50 lignes de code. Prend une équation (string $equation) en paramètre (ex.: 5+5*300/2-50) et renvoie le résultat en prenant en compte... Lire la suite
PHP 5.2 a introduit une classe DateTime très pratique. Cette classe étend l'objet DateTime natif d ePHP avec des fonctions de conversion entre formats... Lire la suite
Cette librairie vous permettra, à l'aide d'une seule fonction dont l'utilisation est très simple, de bloquer l'accès à certaines pages... Lire la suite
Voila un petit bout de script qui peut etre utile, j'ai vu qu'il y avait quelques questions à propos des connections à un serveur LDAP en PHP, ici... Lire la suite
Un petit script vite fait qui traduit des fichier de langue PHP via un traitement par lot en utilisant l'API Gtranslate de Google. Evidement,... Lire la suite
c'est un petit code pour faire rapidement un menu en php qui permet de changer l'apparence du menu sélectionné. Pratique pour savoir ou on est.... Lire la suite
Cette source vous permet de versionner ou synchroniser la structure de deux bases mysql en générant un fichier sql. Ce script est intéressant si vous... Lire la suite
Cette Source est surtout un exercice de style. Elle permet d'évaluer une expression par exemple : 2 + 4 ou encore 2*5 10. Elle supporte les opérateurs... Lire la suite
Classe en PHP permettant de générer un formulaire anti robots (les noms des champs sont crypter en md5 pour éviter la reconnaissance par les robots). Source... Lire la suite
Je souhaite vous faire part d'une fonction que j'ai écrite dans le cadre de mon stage pour permettre de trier facilement des noms en fonction de... Lire la suite