M
M
Maxim Dali2015-07-29 13:53:28
PHP
Maxim Dali, 2015-07-29 13:53:28

How to find a file using PHP?

You need to write a function in php to search for files. The function will look like this: The whole catch of solving this problem is that I don't even know how to do it. Could you help me with this.
search_file('articles.php');

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2015-07-29
Protko @Fesor

php.net/manual/en/class.recursivedirectoryiterator.php

V
Vitaly Inchin ☢, 2015-07-29
@In4in

Use modern things like Finder

W
Walt Disney, 2015-07-29
@ruFelix

look up the glob function in the manual

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question