Recent Pasties
Create a new one now.
Created on 10/03/2008 08:26 by Anonymous
function CheckFileExtension
($file,&
$Extension=
array()) {
{
// ON EXTRAIT L'EXTENSION
View complete code
Created on 10/03/2008 08:23 by Anonymous
///
function CheckFileExtension
($file,&
$Extension=
array()) {
{
// ON EXTRAIT L'EXTENSION---> l'extension sera définie même si
votre fichier se nomme myfile.config.inc, retourne inc
View complete code
Created on 07/03/2008 21:22 by Anonymous
.liens { font-family: Arial, Helvetica, sans-serif; font-size: 11px;
color: #4E4E4E; }
.liens12 { font-family: Arial, Helvetica, sans-serif; font-size: 12px;
color: #996666; }
.texte12gris { font-family: Arial, Helvetica, sans-serif; font-size:
12px; color: #666666; }
.texte11gris { font-family: Arial, Helvetica, sans-serif; font-size:
11px; color: #666666; }
.formsaisie {
font-family: Arial, Helvetica, sans-serif; font-size: 11px; color:
#333333;
background-color: #FCF7EF;
margin: 4px;
View complete code
/**
* cette fonction affiche les méthodes et propriétés d'un objet
(php5)
* exemple :
* $objet=new objetExemple();
* echo($objet);//appel implicite à __tostring
* @return
*/
function __tostring()
View complete code
//vérification d'extention
function checkExtention( $file){
$file = 'myfile.rar';
$ext_Array =
array("zip",
"rar",
"jpg",
"jpeg",
"gif",
"bmp");
// Check file
View complete code
Created on 02/02/2008 17:23 by
jano
echo dd;
View complete code
Décommenter HTML
SelectionEmbed('','','<--','','-->','')
View complete code
Created on 25/01/2008 17:55 by Anonymous
function to_time($value){
// SQL Date
$datefields =
explode('-',
$value);
// Must be an English date
if (count($datefields) !=
3){ $datefields =
explode('/',
$value);
View complete code
function array_get($arr, $key, $default = false) {
return $arr[$key];
} else {
return $default;
}
}
View complete code
function human_bytes($a) {
$unim =
array('B',
'KB',
'MB',
'GB',
'TB',
'PB');
$c = 0;
while ($a>=1024) {
$c++;
$a = $a/1024;
}
View complete code