Edited to clarify some points:
I am in the process of switching my site over to PHP. This involves, among other things, replacing some SSI with equivalent PHP functions, and I have managed to solve this in all cases expect one:
Currently, I use <!--#exec cmd="/full server path/ratlog.cgi"--> in order to log referral stats for each page with Ratlog (http://www.mrrat.com/ratlog.html), and I am having trouble getting this to work with a PHP include.
Using include() doesn't seem to work on CGI, so I am having to use virtual(). However, I can only get virtual() to work with a path relative to root, not with the full path. And since I also plan to turn some sections of the site into subdomains, my understanding is that relative to root will only work for the main domain, not the subdomains.
Can CGI be included using PHP in any other fashion? Perhaps with an equivalent to 'exec cmd'?
Or is it perhaps a configuration issue with my host that is causing this problem? When I use include() for regular (non-CGI) files, they only work with full server path, not with a root relative path. The version of PHP on the server is 4.3.7.