D
D
deniska_kuzmenko2015-11-08 01:03:12
PHP
deniska_kuzmenko, 2015-11-08 01:03:12

How to check if a deleted file exists?

How to check if a deleted file exists?
For example, does a file exist at such a link site.ru/file.php ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
D', 2015-11-08
@deniska_kuzmenko

Send a HEAD request and see the result of the response. If 200 - the file exists, if 404 - it doesn't.
But this is not a 100% option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question