CakeFest 2025 Madrid: The Official CakePHP Conference

Voting

: three plus one?
(Example: nine)

The Note You're Voting On

kpierre at fit dot edu
23 years ago
The documention does not mention that passthru() will only display standard output and not standard error.

If you are running a script you can pipe the STDERR to STDOUT by doing

exec 2>&1

Eg. the script below will actually print something with the passthru() function...

#!/bin/sh
exec 2>&1
ulimit -t 60
cat nosuchfile.txt

<< Back to user notes page

To Top