2 shyam answered Jul 19 '21 00:00 stdout is used to Write to standard output you can pass the php://stdout instead of filename in fopen $fp=fopen('php://stdout','w') use fwrite to write now to standard output fwrite($fp,'hello world'); Edit Answer