If you have apache compiled as a module, most ISPs do. then try the following:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
virtual ('cgitoexecute.cgi');
[/code]
I think I remember reading that it was slightly quicker to use virtual.
------------------
Karl Austin KDA Web Services
"Everyone has a photographic memory. Some just don't have film."
Hi,
On one of my new servers,(it's a virtual server), my hosting company recently moved to php4. I thought Wonderful!
I ran into a problem however that the call
virtual ('cgitoexecute.cgi');
didn't work!
I emailed support and they told me that php was installed as cgi rather than apache module---so the virtual() call will not work.
Does anyone know of a workaround? I really will appreciate the help/input.
I need to be able to add polls etc. Thanks in advance, there's got to be a workaround?
Now, I know the poll script works, when inserted into an html page via ssi, it works like a champ.
I'm stumped....any more ideas? (btw, I already have requests into the host to install PHP4 as an apache module---doesn't mean they'll do it---I'm hoping...) Still, I would like to know a solution, surely this has happened to someone else? I hope someone else can benefit from my troubles.
Just to make Kevins code a bit more portable you can use this instead:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
passthru ( getenv ( 'DOCUMENT_ROOT' ).'/cgi-bin/cgi-script.pl' );
[/code]
As for the reason it is not working I don't know, what result is the passthru returning e.g. place echo in front of passthru and see what it prints out.
------------------
Karl Austin KDA Web Services
"Everyone has a photographic memory. Some just don't have film."
Bookmarks