I'm researching how I would go about building a CVS client in PHP, using a Web browser and Apache on Linux.
In Perl, the open2() function allows me to open a connection to a service on the Linux machine and send/read stuff to/from that service. An example of this for CVS is here:
http://www.cvshome.org/cyclic/cvs/dev-rann.pl
I'm trying to figure out how to emulate that functionality in PHP. Can I simply open a filehandle for writing to the server and a filehandle for reading? It can't be that easy. Should I try using sockets, and have Apache connect to the CVS server on the same machine via localhost, or (egad) IP?
Or, is there an easier way to go about this that I just haven't conceived?
Any advice is appreciated. Thanks,
John