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 3 5007
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
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 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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+')
|
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:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipc/base/multithreaded_pipe_server.asp
and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipc/base/named_pipe_client.asp
Best...
|
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 surprise, I always
have to terminate the client to get the server in action, i.e. prints out
what I typed.
anything I missed? I am compiling...
|
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 exists a need
for that code to send some information to a new .Net service I am writing.
It is a relatively simple matter for the existing code to use...
|
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.
Does anybody know how I can write to the named pipe from a .NET program. I
have tried using the traditional file access methods, and it appears that...
| |
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 posix_mkfifo.
Is there any other way to create a named pipe and if so.... how?
Thanks in advance.
Peter.
--
|
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 exchanges text messages using named pipes. The internet resources
seem a bit scarce and the only Microsoft resource I can find is...
|
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 could be set to system minimum or system maximum,when assigned zero,the size is system default value.
My question is : how can I get these...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |