I need to include to my php script external php code which is situated for example by link http://site.com/code.php How could I do it? I tryed all ways which I found in internet but no one works. All methods are good to include text but not php script.
Share
You can only include the code if it is served as text: otherwise everyone would be able to see / use your code.
So the options you have:
includeorrequirecurlit. You won’t get the source (cannot use its functions etc) but any actions it performs (make file? add something to the database) will be run.