(string) ShowFile($file='file', $nls='')
Arguments
(string) | $file | The name of the file in the file list. Default is 'file'. |
(string) | $nls | The two-letter ISO language code, e.g. 'en'. The default value is the current language. |
Shows the contents of the file. If the file has a mimetype that doesn't start with 'text/', and you've already sent the http headers (e.g. by echo-ing html), this method will print an error and exit. Use GetFile()
if you want the file returned as a string.