Skip to content
Advertisement

Tag: glob

After changing name of a file it goes parent directory

I’m writing a PHP code that takes names from input.txt file and with those names it changes the names of files in the image folder. My code is: It works but at last, files in the ‘image’ folder go C:wamp64wwwReplace image names with input directory. (Parent directory) Any idea why this happens? Answer To make it more clear. Here is

Viewing Documents Stored Outside the Domain’s Folder [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question I’m trying to fetch the files in a folder that it outside the site’s path and, with the help of @Marwane Ezzaze and some programming

Is There A Way To glob() Only Files?

I know that glob can look for all files or only all directories inside a folder : But I didn’t found something to find only files in a single line efficiently. Works well but reads directory twice (even if there are some optimizations that make the second browsing quicker). Answer I finally found a solution : But take care, array_filter

Advertisement