Skip to main content

All Questions

Tagged with
0 votes
0 answers
55 views

php message queue based on named-pipe halts

i have the following (simplified) server + client message queue system. the core of the system is the named pipe, created with posix_mkfifo. there are 3 processes that use the client (publisher) to ...
andus4n's user avatar
3 votes
1 answer
1k views

Tailing named pipe in Docker to write to stdout

My Dockerfile: FROM php:7.0-fpm # Install dependencies, etc RUN \ && mkfifo /tmp/stdout \ && chmod 777 /tmp/stdout ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint....
Chris White's user avatar
0 votes
1 answer
590 views

run shell command over named pipes from php

I have an application in php that works on the docker. I would like to send a command from php through named pipes. If i go to container from console and run this command then that works, but from php ...
JanuszO's user avatar
  • 1,220
2 votes
2 answers
777 views

How to connect a PHP app to MySQL via pipes?

I have found glimpses of the fact that it is possible to connect PHP to MySQL via pipes in their documentation of MySQLi, but I cannot, for the life of me, find anyone explaining what is needed. The ...
Digital Ninja's user avatar
1 vote
0 answers
21 views

Rachet and named pipes in linux

I am using Rachet to create sockets, one of the update methods is something being written to a named pipe (mkfifo filename) The code below works $server = IoServer::factory( $application = new ...
exussum's user avatar
  • 18.5k
1 vote
1 answer
459 views

GNU Parallel as job queue with named pipes

I followed the sample code to create a gnu parallel job queue as below // create a job queue file touch jobqueue //start the job queue tail -f jobqueue | parallel -u php worker.php // in another ...
Waku-2's user avatar
  • 1,176
1 vote
0 answers
326 views

named pipe not working when exec() is used

I'm trying to send some data from php staight into a running cpp script. I'm trying to do this using a named pipe in a "send" application. Let me share some code first. loop.cpp main( int argc, char*...
Laurens Mathues's user avatar
1 vote
0 answers
358 views

PHP C# Named Pipes

I recently asked a question on IPC between C# and PHP and followed an answer up suggesting named pipes. For this, I searched the Internet for an appropriate example of named pipes using solely C# as ...
John's user avatar
  • 197
0 votes
1 answer
294 views

How to connect named pipe c# server to that of named pipe php client

For the php, i used, <?php $pipe = popen("water-Pipe",'r+'); $read = fread($pipe,10); echo $read; pclose($pipe); ?> It does not connect. In the c#, same file descriptor is used in ...
mohd emad's user avatar
0 votes
1 answer
1k views

Using a php named pipe

SITUATION: I have created a named pipe (in php) with the following code: $pipeFile = "/files/queue"; posix_mkfifo($pipefile,0666); and now I would like to be able to send and extract data to and ...
Webeng's user avatar
  • 7,140
0 votes
0 answers
1k views

MySQL: Trying to connect via Named Pipe but getting "open_basedir restriction in effect"

I am trying to connect to MySQL via Named Pipe (Windows) but it is not working. I tried with: $mysqli = new mysqli('.','user','password','db',null,'\\\\.\\pipe\\MySQL'); $mysqli = new mysqli('.','...
Jens Kirk's user avatar
  • 536
2 votes
0 answers
603 views

using named pipes to communicate c++/php on Windows

I want to use a pipe to send data from a php web application to a c++ running program. I am not sure of what is exactly a pipe and how to use it, and most of the documentation I find is for unix ...
Arcyno's user avatar
  • 4,473
0 votes
1 answer
2k views

Non-blocking open of pipe in PHP

I have to open a named fifo from a php script that needs to write to the fifo, but it may not always be opened on the read end. Now I'm using fopen, but it always blocks when the read end of the fifo ...
Victor Dodon's user avatar
  • 1,824
0 votes
1 answer
447 views

Trouble with Named Pipes

I am new to using php and python but I have a task that I am trying to complete and the test code I have does not seem to work. Basically I am trying to get data from an html form (using php) to a ...
AimSkyward's user avatar
1 vote
2 answers
3k views

Named pipe in php on Windows/Mac/Linux?

I'm currently using proc_open() in php to communicate with command line tools. It automatically creates up to 3 file descriptors for STDIN, STDOUT and STDERR because more than 3 pipes breaks Windows ...
Zack Morris's user avatar
  • 4,783

15 30 50 per page