Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Web サイトをデバッグしていて、fwrite() のターゲットを現在の HTML ページとファイルの間で切り替えたいと考えています。fopen("php://stdout", "w") を試しましたが、うまくいきません。
これを有効にする方法はありますか? fwrite の各行を echo に変更して、デバッグが終了したときに元に戻したくありません。私は PHP の初心者であり、Google の後で適切な解決策を見つけられませんでした。
php://output php://outputprint()は、および と同じ方法で出力バッファ メカニズムに書き込むことができる書き込み専用ストリームですecho()。 http://php.net/manual/en/wrappers.php.php
php://output
php://outputprint()は、および と同じ方法で出力バッファ メカニズムに書き込むことができる書き込み専用ストリームですecho()。
print()
echo()
http://php.net/manual/en/wrappers.php.php