Use a php function that is in a different domain

0

Good. I need to use a function that is in a php file in a different domain link on another site that is link . What the function does is when it completes a form it sends an email to the person. Is there any way to do this? I have the allow_url_include in .ini active. I already tried with require (htp: //exx.example.com/folder/file_of_funcao.php) and below I called the function and did not give it. I've tried file_get_contents and I have not tried it either. Can someone help me?

    
asked by anonymous 05.07.2017 / 11:49

1 answer

0

You can do with include link

include('http://exx.exemplo.com/pasta/ficheio_da_funcao.php');

and in your file you can call the function

    
05.07.2017 / 15:48