Session starter
">Next page
PHPSESSID =
Author: user
PHP: Fermer un fichier avec la fonction fclosde()
int fclose (int filepointer)
$file = "data.txt";
if (file_exists($file)) :
$fh = fopen($file, "r");
fclose($fh);
else:
print "File $file does not exist!";
endif;
?>
PHP: Vérifier si un élément est un répertoire
Is the file a directory: is_dir()
";
return;
}
print "$f is ".(is_dir( $f )?"":"not ")."a directory
";
}
?>
PHP Session et Cookies: Supprimer les variables de session
";
unset($_SESSION['username']);
echo "Username now set to: ".$_SESSION['username'].".";
?>
PHP: Vérifier si Le fichier est accessible en écriture
Is the file writable: is_writable()
";
return;
}
print "$f is ".(is_writable( $f )?"":"not ")."writable
";
}
?>
PHP: Trouver la date de modification d’un fichier
File changed time
";
return;
}
print "$f was changed on ".date( "D d M Y g:i A", filectime( $f ) )."
";
}
?>