file_stdin

Returns standard input.

Target function

Signature

1file_stdin()

Returns standard input.

file_stdin is a global callable that can be used wherever an expression is valid. file_stdin touches paths or filesystem data. Resolve paths deliberately and avoid mixing visitor-provided path fragments with trusted server paths without validation.

In web-serving modes, request-targeted application file access cannot escape the configured document_root. That boundary can come from the .ini file, the --docroot flag used by the LaiRu HTTP server or FPM process, or FastCGI values such as DOCUMENT_ROOT and SCRIPT_FILENAME supplied by nginx or Apache. See the web root directory, FastCGI options, and LaiRu FPM pages for the deployment side of that boundary.

Examples

Basic call

1file_stdin
The example assumes a trusted path. Validate or resolve any path built from visitor input.

Related