Page 1 of 1
Call to undefined function: virtual()
Posted: Mon Jun 26, 2006 10:48 am
by tristanlee85
Code: Select all
<?php
virtual("/cgi-bin/filechucker/filechucker.cgi");
?>
That code executes just fine on my localhost server, but when I upload it to my website, I get this error:
Code: Select all
Fatal error: Call to undefined function: virtual() in /home/turbosat/public_html/plastikracing/upload/upload.php on line 2
Why am I getting this error?
Posted: Mon Jun 26, 2006 10:52 am
by feyd
Is your website server Apache? If it is, check the disabled functions list through
phpinfo()
Posted: Mon Jun 26, 2006 10:53 am
by Jenk
From the manual:
This function is only supported when PHP is installed as an Apache module.
Most hosts install PHP as CGI, which is probably why virtual() is not working

Posted: Mon Jun 26, 2006 10:56 am
by tristanlee85
I assume that "Virtual Directory Support: disabled" is the reason?
Posted: Mon Jun 26, 2006 11:02 am
by tristanlee85
Hmm. This seems to work:
Code: Select all
include('/cgi-bin/filechucker/filechucker.cgi');