query in popen

hai friends

I have written a tcp chat server in c.. I have designed a cgi program in c to control it... When i try to start the server from the cgi program, it is not starting. Why is that ? I have even tried giving the root ownership for all the programs.. Still its not.

I have used the popen function to start the server. But the popen function is working for the other exe files which does not involve sockets.

What should i do know

Thanks in advance
Collins

popen is not intended for use with sockets. Read the popen man page.