1. PHP

PHP file_exists

Fungsi file_exists() digunakan untuk memeriksa ada atau tidaknya suatu file atau direktori

Syntax

<?php
file_exists (string $filename)
?>
ParameterDeskripsi
$filenamelokasi file yang akan dicek ada atau tidaknya.

Contoh:

<?php
$filename = 'file.txt';

if (file_exists($filename)) {
    echo "File $filename ada";
} 
else {
    echo "File $filename tidak ada";
}
?>
https://www.lab-informatika.com/
Comments to: PHP file_exists

Your email address will not be published. Required fields are marked *

Attach images - Only PNG, JPG, JPEG and GIF are supported.

Login

Welcome to Typer

Brief and amiable onboarding is the first thing a new user sees in the theme.
Join Typer
Registration is closed.