bonjour,
je voudrais partir sur de bonnes bases; qu'est-ce qui est le mieux comme extention pour le fichier "config"?
j'ai lu que couplé au fichier .ini, on peut coupler un fichier htaccess qui interdit
la lecture.
Version imprimable
bonjour,
je voudrais partir sur de bonnes bases; qu'est-ce qui est le mieux comme extention pour le fichier "config"?
j'ai lu que couplé au fichier .ini, on peut coupler un fichier htaccess qui interdit
la lecture.
Fichier ini :
+ Plus facilement lisible
+ Facilement modifiable via du code
- Demande une attention particulière pour ne pas qu'il soit visible de tous
- Demande à être parsé pour avoir accès au contenu
Fichier PHP :
+ Automatiquement interprété => pas de risque d'être lu
+ Plus rapide c'est pas possible
+ Peut accepter des structures de configuration complexe
- Moins évident à lire et modifier
ok et merci pour moi ce sera php