January 17, 200917 yr Hi, I'm trying to pull a cgi script into my php page and its not working. The code I'm using is <? virtual("http:www.paulwatt.info/mail/index.cgi") ?> and the error message i'm getting on the page is Fatal error: Call to undefined function: virtual() , any ideas? the page is at here Many thanks in advance
January 17, 200917 yr The undefined function probably indicates that the Apache-specific functions aren't available. Just to check, you deploying on Apache? In which case see if php_info() gives you any more indication of missing modules. You might also find some useful information in the Apache Functions section of the docs.
January 17, 200917 yr Author The undefined function probably indicates that the Apache-specific functions aren't available. Just to check, you deploying on Apache? In which case see if php_info() gives you any more indication of missing modules. You might also find some useful information in the Apache Functions section of the docs. Ah right, just checked, the module isnt available. Are there any alternatives to using (virtual)?
January 17, 200917 yr There might be some suggestions on the docs page I linked to. Or do a Google and see what comes up. Otherwise the cURL family might do it for you, if you're happy to just make a request to the resource as though it were another site visitor doing it. If these also aren't available, a request by raw sockets will do it, but that's messy and quite complicated.
Create an account or sign in to comment