j'avais besoin d'une fonction permettant de separer les "valeurs" des "index" d'une variable passee en format CSV pour generer une query SQL.... Lire la suite
Cette petite fonction permet de créer un répertoire, mais en mieux lol. Exemple : créer "/essai1/essai2/essai3/" Si essai1/ n'existe pas, on le crée Si... Lire la suite
Comme je vois que c'est la mode des fonctions sur les fichiers ;-) avec 2 jolies fonctions pour créer des dossiers, je me lance aussi ! Voici une... Lire la suite
Toujours pour suivre la mode des fonctions sur fichiers :-) voici une fonction permettant de supprimer un ou plusieurs répertoires, et tout ce qu'ils... Lire la suite
Ceci est un exemple très succint, commenté, montrant une manière d'obtenir un site traduit en plusieurs langues, sans avoir à utiliser une copie du... Lire la suite
Bonjour, ceci est la première astuce que je poste sur ce site. Je viens de passer une nuit à cause d'un problème tout bête dont j'ai du trouver la... Lire la suite
Fonction basique qui affiche les fichiers et les sous-dossiers (mais pas leur contenu) d'un dossier, avec des liens créés automatiquement. Les... Lire la suite
Voici un petit bout de code sans prétention mais qui est bien utile quand 40% des mails avec l'encodage quoted printable ne respecte pas la RFC. Vous... Lire la suite
Il est difficle de reussir a envoyer des mails html qui ne soient pas supprimés par hotmail ou qui arrivent vides. (de nombreuses questions dans les forums... Lire la suite
Se script permet de vérifier si le port choisie est ouvert sur la machine choisie. avec fsockopen(); Source / Exemple : ... ... Lire la suite
Voila pour un agenda, j'avais besoin de lister les dates entres 2 dates, n'ayant trouvé que des sources permettant de calculer seulement... Lire la suite
Ce script est, en fait, celui de LiTtleBuBu (http://www.phpcs.com/code.aspx?ID 22574) que j'ai mis à jour. Certains problèmes ont été résolus et des... Lire la suite
Mon code sert a uploader un nombre illimiter de fichier en meme temps (dans la limite du serveur notament "upload_max_filesize" dans le php.ini) et de les... Lire la suite
Ce script comme indiqué dans le titre permet lors d'une inscription a un jeu, d'envoyer un mail au webmaster avec les informations necessaire pour... Lire la suite
Quand on exporte du texte dans excel ou word (fichiers .csv renommés en .xls, fichiers .txt renommés en .doc ...), les caractères spéciaux sont remplacés... Lire la suite
Je vous soumets un code que j'ai développé, il y a quelque temps et qui tourne notamment sur mon site. Cette classe permet ainsi de sécuriser vos... Lire la suite
En faite spg partenaire c'est pour que le visiteur(e) puisse s'inscrire son site en partenaira avec votre site et c'est gratuit.. Lire la suite
Voila un petit code permettant de lister les emails d'un texte (pratique pour prévenir de ne pas laisser leurs emails sur des forums par exemple :D) Il... Lire la suite
Ben voila ce petit script sert a obtenir des information sur une ip, nom de domain, reseaux. Source / Exemple : ... ... Conclusion : Petit problem avec le... Lire la suite
Un forum en php qui n'est en aucun cas pour concurencé d'autre forum mais cette application m'a permis de me familiarisé avec le langage php... Lire la suite