php-windows Digest 1 Sep 2004 04:41:26 -0000 Issue 2378
Topics (messages 24481 through 24483):
Persistant Socket Across Different Scripts
24481 by: Justin Borodinsky
Re: interacting with Java or C
24482 by: Oliver John V. Tibi
File upload permissions problem on Windows
24483 by: Justin.Baiocchi.csiro.au
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
I am trying to figure out if there is a way to have a socket persist
in different executions of the same script. My situation is as
follows; I have a Java program running and waiting for connections on
port 10000. When it receives a connection it reads a "device" id and
loads a device driver for it and then passes the stream to this
driver.
I would like to be able to communicate over this stream with the
client using a browser and PHP. I can open the stream when the script
runs for the first time, but each time the user gets the script again
the connection is being re-made. I tried pfsockopen but it seemed to
work the same of fsockopen.
Thanks very much,
Justin
--- End Message ---
--- Begin Message ---
Hi!
It would be possible to create a C or Java server that uses sockets to cater
a PHP client's request. This is the quickest and easiest solution...
OR...
You can create a C or Java HTTP client to receive responses from an XML file
generated in PHP (much like RSS readers and RSS feeds or SOAP services and
clients)...
Peace!
--
Running 'ojtibi' on '127.0.0.1' (BATCH_OPTIMISTIC mode).
"Live free() or die()."
--- End Message ---
--- Begin Message ---
Hi there,
I have a php script which successfully uploads a file to my Windows 2003
server. However the file has different permissions to the rest of the
files in the folder where it is uploaded to.
I don't quite understand why this is the case - when the file is
uploaded does it get the security permissions of the temporary upload
folder? These seem to be different from the permissions the file ends up
with in its final location.
I'd be happy to post the upload script but I'm not sure if it is a php
or Windows problem.
Thanks
Justin
--- End Message ---