readfile() reads the contents of the specified file and sends them directly to the output buffer.
__FILE__ is a built-in PHP "magic" constant that contains the full path to the current source code file. (If you're inside an include file at that point, then it will be that file, not the "main" file that included it.)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Cool! How does this work, though? I'm not very familiar with PHP.
readfile()
reads the contents of the specified file and sends them directly to the output buffer.__FILE__
is a built-in PHP "magic" constant that contains the full path to the current source code file. (If you're inside an include file at that point, then it will be that file, not the "main" file that included it.)