I have a very old C++ program which is located in /cgi-bin/ directory.The problem is that the program is designed to work on the cgi-bin dir and I want to take the output of that program in order to create a simple HTML page with the help of PHP. I tried the system(), but system wants absolute path and seems that it cannot run a program as a cgi. So, I tried virtual. Again nothing. Any ideas?