PHP Sockets Question

Soldato
Joined
7 Apr 2004
Posts
4,212
Hi,

Im making a kind of media file server, and I will have apache running with php as the front end. Now all the information on the media files is going to be stored in an SQL database so they can be quickly searched & streamed/downloaded, and what i would like to do is create a program, probably in C++ that will listen on a given port for file information, once a connection is made it will compress the given file and write it out as a temp file in the apache directory where it can be downloaded over the lan. What i need to know before I do this is, is PHP capable/suitable for opening a socket to a program running locally? and have an open connection to the said program while any compression/file handling is carried out, or would i be better looking into web sevices/applications.

Thanks for any advice.
Jack
 
Back
Top Bottom