473,513 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows API named pipe functionality in php

a
Hi everybody,

Is it possible to open a named pipe from a php script on Windows?

More specifically, I have a Windows service that receives commands through a
named pipe, and I'd like to open the client end of the pipe directly from
php rather than creating an intermediate process.

Thanks,

A

Feb 1 '06 #1
3 4991
a wrote:
Hi everybody,

Is it possible to open a named pipe from a php script on Windows?

More specifically, I have a Windows service that receives commands through
a named pipe, and I'd like to open the client end of the pipe directly
from php rather than creating an intermediate process.

Thanks,

A


Hi,

Yes you can.
Try FIFO or 'named pipe' search on www.php.net.

I think functions like popen and fopen could come in handy.
Read more at php.net, also some examples in there (most (l)inux-based).

Good luck,

Erwin Moller

Feb 1 '06 #2
Hi,

http://nl3.php.net/popen contains a few examples for windows in the
usercontributed notes too.
Check them out.

Good luck!
Regards,
Erwin Moller
Feb 1 '06 #3
a

http://nl3.php.net/popen contains a few examples for windows in the
usercontributed notes too.
Check them out.


I'll check them out. In the meantime I decided that in order to cover more
possible configurations and ensure cross platform portability, I would also
use tcp/ip to communicate with the service.

Thanks for your replies!

A
Feb 1 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
7445
by: Rajarshi Guha | last post by:
Hi, I'm having a little trouble when I read from a named pipe. I create a pipe by os.mkfifo('/tmp/mypipe') and then open it for reading with fin = open('/tmp/mypipe','r+')
6
10723
by: Srijit Kumar Bhadra | last post by:
Hello, Here is an example of Multithreaded Pipe Server and Client using the excellent ctypes library (Windows). Reference - MSDN:...
5
17408
by: richard | last post by:
I have a simple test to pass information from a client to a server using named pipe. what I really want is: when I type a line on the client, the server will output the line immediately. but to my...
4
7644
by: Ken Allen | last post by:
Is there any built-in facility for handling named pipes in C#/.Net, or must one use unsafe code to access the WIN32 API directly? There exists some code that uses named pipes heavily and there...
3
2626
by: EricR | last post by:
I am trying to use .NET to "tap into" a named pipe created by a non .NET 3rd party application. Specifically, the application is a table loading utility. It opens a named pipe and waits for input....
4
8002
by: Peter van Schie | last post by:
Hi all, I'm trying to create a named pipe to communicate with another application from a PHP application. The thing is that I cannot use any of the posix functions on Windows, including...
7
7606
by: andrewb | last post by:
Hi all, Having some trouble using named pipes and Visual Basic .NET and would appreciate and help you could offer. Essentially I am trying to develop a simple client/server application that...
1
12677
by: walsug | last post by:
hello, I created a named pipe by CreateNamedPipe(),but some bug arised in my application,which I think has something to do with the pipe buffer size(out buffer size and in buffer size),this size...
0
7269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
7123
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4756
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3248
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.