note 125030 added to function.fopen

From: Date: Wed, 20 May 2020 10:19:49 +0000
Subject: note 125030 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-214657@lists.php.net to get a copy of this message
There is an undocumented mode for making fopen non-blocking (not working on windows). By adding 'n' to the mode parameter, fopen will not block, however if the pipe does not exist an error will be raised. $fp = fopen("/tmp/debug", "a"); //blocks if pipe does not exist $fp = fopen("/tmp/debug", "an"); //raises error on pipe not exist ---- Server IP: 45.112.84.4 Probable Submitter: 103.51.166.36 (proxied: 85.246.34.150) ---- Manual Page -- http://php.net/manual/en/function.fopen.php Edit -- https://master.php.net/note/edit/125030 Del: integrated -- https://master.php.net/note/delete/125030/integrated Del: useless -- https://master.php.net/note/delete/125030/useless Del: bad code -- https://master.php.net/note/delete/125030/bad+code Del: spam -- https://master.php.net/note/delete/125030/spam Del: non-english -- https://master.php.net/note/delete/125030/non-english Del: in docs -- https://master.php.net/note/delete/125030/in+docs Del: other reasons-- https://master.php.net/note/delete/125030 Reject -- https://master.php.net/note/reject/125030 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#214657) next »