note 112501 added to function.socket-bind

From: Date: Sun, 23 Jun 2013 12:29:50 +0000
Subject: note 112501 added to function.socket-bind
Groups: php.notes 
Request: Send a blank email to php-notes+get-195328@lists.php.net to get a copy of this message
When doing Unix sockets, it might be necessary to chmod the socket file so as to give Write permission to Group and/or Others. Otherwise, only the owner is allowed to write data into the stream. Example: <?php $sockpath = '/tmp/my.sock'; socket_bind($socket, $sockpath); //here: write-only (socket_send) to others, only owner can fetch data. chmod($sockpath, 0702); ?> ---- Server IP: 69.147.83.199 Probable Submitter: 82.81.129.48 ---- Manual Page -- http://php.net/manual/en/function.socket-bind.php Edit -- https://master.php.net/note/edit/112501 Del: integrated -- https://master.php.net/note/delete/112501/integrated Del: useless -- https://master.php.net/note/delete/112501/useless Del: bad code -- https://master.php.net/note/delete/112501/bad+code Del: spam -- https://master.php.net/note/delete/112501/spam Del: non-english -- https://master.php.net/note/delete/112501/non-english Del: in docs -- https://master.php.net/note/delete/112501/in+docs Del: other reasons-- https://master.php.net/note/delete/112501 Reject -- https://master.php.net/note/reject/112501 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#195328) next »