List Info

Thread: note 74573 added to function.posix-mkfifo




note 74573 added to function.posix-mkfifo
user name
2007-04-17 18:58:22
<?php
/**
 * Taken from: http://www.
phpdig.net/ref/rn49re1056.html
**/

$fifo = '/tmp/testfifo';
if (file_exists($fifo) || $login = posix_mkfifo($fifo,
0666)) {
    echo "Testing FIFO:n";
    $result = `cat < $fifo & echo "Hi
there" > $fifo`;
    echo "Got back '$result'n";
} else {
    echo "Could not create FIFO.n";
}
?>

You will note that FIFOs are *not* asynchronous, so your
script will hang until it receives something! If anyone
knows how to do this, I'd really like to hear!
----
Server IP: 69.147.83.197
Probable Submitter: 74.13.202.232
----
Manual Page -- http://www.php.net/manual/en/function.posix-mkfifo.php

Edit        -- https://master
.php.net/note/edit/74573
Del: integrated  -- h
ttps://master.php.net/note/delete/74573/integrated
Del: useless     -- http
s://master.php.net/note/delete/74573/useless
Del: bad code    -- htt
ps://master.php.net/note/delete/74573/bad+code
Del: spam        -- https:/
/master.php.net/note/delete/74573/spam
Del: non-english -- 
https://master.php.net/note/delete/74573/non-english
Del: in docs     -- http
s://master.php.net/note/delete/74573/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/74573
Reject      -- https://mast
er.php.net/note/reject/74573
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )