Imad Posted June 9, 2008 Share Posted June 9, 2008 Hi guys, quick question. I need a way to include an external file from a different address without using include or require. My goal is to import an external file from another one of my sites and compare the two files. I was just wondering if their is a specific function for including external files. Best Regards. Link to comment https://forums.phpfreaks.com/topic/109465-including-external-files/ Share on other sites More sharing options...
DarkWater Posted June 9, 2008 Share Posted June 9, 2008 As in get the contents of a file? It depends on the file. You can get the output of a file (like the HTML output of a PHP script) with file_get_contents(). Anything else will probably require FTP. Link to comment https://forums.phpfreaks.com/topic/109465-including-external-files/#findComment-561479 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.