How to get current directory, filename and code line number in PHP
In PHP, there are several built-in functions that can be used to obtain information about the current script’s directory, filename, and code line number. Getting the Current Directory To get the absolute path of the directory containing the current script, you can use the dirname(__FILE__) function. For example: This will set the $current_directory variable to …
How to get current directory, filename and code line number in PHP Read More »