I'm trying to run a php function that's hosted on a different server. Here's the relevant code:
In firstdomain.com/handler.php:
include 'http://www.seconddomain.com/functions.php';
$disp_keyword = doQuery( 0, $keyword, null );
And in seconddomain.com/functions.php:
function doQuery( $code, $arg1, $arg2 ) {
mail( '[email protected]', 'doquery entered', 'test' );
}
How can I get this to work?
allow_url_fopenis enabled andallow_url_includeas well. Also make absolutely sure that you know the contents of the file you are including remotely, and it is trusted 100%.