Welcome to User’s blog Sites. This is your first post. Edit or delete it, then start writing!
PHP Session et Cookies: Exemple d’utilisation de session_start()
Session starter
">Next page
PHPSESSID =
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
";
}
?>