Validate File Exist Php

[Solved] Validate File Exist Php | Php - Code Explorer | yomemimo.com
Question : validate file exist php

Answered by : helpless-hamster-4lza2i2jlz5q

Input : echo file_exists('/user01/work/gfg.txt');
Output : 1
Input : $file_pointer = '/user01/work/gfg.txt'; if (file_exists($file_pointer)) { echo "The file $file_pointer exists"; }else { echo "The file $file_pointer does not exists"; }
Output : 1

Source : https://www.geeksforgeeks.org/php-file_exists-function/ | Last Update : Wed, 23 Feb 22

Answers related to validate file exist php

Code Explorer Popular Question For Php