How do I find the path of a file in PHP?

How do I find the path of a file in PHP? To get the exact path of file, then, you can use realpath(). In between the round brackets of the function, type the name of the file. $dir = dirname(“folder/myphp/fileDir. What is dirname (__ file __)? dirname(__FILE__) : dirname is a function in php which […]

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top