1
I have a php application that will read return files from the database, for this, I need to know if the file exists on the system hard drive.
I tried it this way: if(file_exists("/caminho/do/arquivo/".$retorno))
,
the variable $retorno
contains the file name with the correct extension. When I run my application through the linux shell (php return.php), it understands that all the files exist, but when I check the folder, it is empty.
What could be going wrong?
is_file
no longer checks if the file exists?– Woss
You are correct @Andersoncarloswoss, I edited the answer. Vlws!
– Kayo Bruno
It worked! Thank you!
– ed_santana