Pour cela nous utiliseront simplement la fonction file_exists() :
dont voici un exemple:
// Si le fichier existe
if(file_exists("nom_fichier.txt"))
{
echo "Le fichier existe ";
}
else
{
echo "Le fichier n'existe pas ";
}
dont voici un exemple:
// Si le fichier existe
if(file_exists("nom_fichier.txt"))
{
echo "Le fichier existe ";
}
else
{
echo "Le fichier n'existe pas ";
}
No comments:
Post a Comment