Find the location of a file

__FILE__ is a built-in php global variable that you can use to get the location of a file that’s executing.

Usage: echo __FILE__;

Result (Linux): /var/www/html/my-domain.com/TestDir/setExpiredDate.php

(Windows): C:\Documents and Settings\myname\My Documents\www\TestDir\setExpiredDate.php