Tags
PHP
Asked 2 years ago
19 Jul 2021
Views 199
Fatima

Fatima posted

Writing to php://stderr

how to write to php://stderr ?
shabi

shabi
answered Jul 19 '21 00:00

fopen() function is useful to write at stderr

$filepointer=fopen('php://stderr','w');
fwrite($filepointer,'error in php ');
fclose($filepointer); 
Post Answer