[PHP] Executing a Perl/CGI program from PHP

2002-12-15 Thread Troy May
Hello, I have a logging program I wrote in Perl that writes basic info to a MySQL database. I can't get it working from within PHP. I've tried: print !--#exec cgi='vislog.cgi'--; echo (!--#exec cgi='vislog.cgi'--); include(vislog.cgi); Nothing works. What am I missing? Thanks, Troy -- PHP

RE: [PHP] Executing a Perl/CGI program from PHP

2002-12-15 Thread John W. Holmes
I have a logging program I wrote in Perl that writes basic info to a MySQL database. I can't get it working from within PHP. I've tried: print !--#exec cgi='vislog.cgi'--; echo (!--#exec cgi='vislog.cgi'--); include(vislog.cgi); Maybe virtual() ? www.php.net/virtual ---John W.

Re: [PHP] Executing a Perl/CGI program from PHP

2002-12-15 Thread Jonathan Sharp
You're trying to mix two different things. SSI (Server Side Includes) and PHP. The page you're calling gets parsed ONLY by PHP. So echoing #exec won't work. Look at the virtual() function ~~ http://php.net/virtual -js On Sun, 15 Dec 2002 14:10:17 -0800 Troy May wrote: Hello, I have a