Sr. PHP Programmer Question:

What is the purpose of _FILE_ constant?

Tweet Share WhatsApp

Answer:

_FILE_ − The full path and filename of the file. If used inside an include,the name of the included file is returned. Since PHP 4.0.2, _FILE_ always contains an absolute path whereas in older versions it contained relative path under some circumstances.

Download Senior PHP Programmer PDF Read All 202 Senior PHP Programmer Questions
Previous QuestionNext Question
How will you define a constant in PHP?require_once(), require(), include(). What is difference between them?