How can I execute CGI files from PHP?
Posted
by Henri W
on Stack Overflow
See other posts from Stack Overflow
or by Henri W
Published on 2009-07-26T23:24:18Z
Indexed on
2010/03/24
1:03 UTC
Read the original article
Hit count: 340
I'm trying to make a web app that will manage my Mercurial repositories for me. I want it so that when I tell it to load repository X:
- Connect to a MySQL server and make sure X exists.
- Check if the user is allowed to access the repository.
- If above is true, get the location of X from a mysql server.
- Run a hgweb cgi script (python) containing the path of the repository.
Here is the problem, I want to: take the hgweb script, modify it, and run it. But I do not want to: take the hgweb script, modify it, write it to a file and redirect there. I am using Apache to run the httpd process.
© Stack Overflow or respective owner