Sorry for my bad English
Is it possible if I read text as code for a function on one server and execute it on another server?
For example, i have a code in my server1 index.php with domain1.com
<?php
function outputString()
{
echo "Test";
}
?>
And I want to call the function above on server2 for example index.php with domain2.com
I have tried using the code below but there is an error
<?php
require_once('http://domain1.com/index.php');
outputString()
?>
the error that appears
[25-Jan-2019 16:30:37 UTC] PHP Fatal error: Call to undefined function outputstring() in /home/website/domain2.com/index.php on line 3
So, can I call functions from other servers using other methods? Or is this impossible? Thank you