If you just want to display the output of the CI script, you can open the URL, read the contents and output them - or use readfile() . From the point of view of the CI application, the request will come from the server turned on (and not the end user), and for the transfer of cookies / vars sessions, you will need to use something like cURL.
If you really want to include the source code , this is possible, but a security risk. There are several questions in this thread:
They note (among other things) that to enable the source you need to make sure that the CI site is not executing the page, but simply displaying the contents of the php file and that in fact, including the code from the URL, it is surprisingly dangerous.
You essentially trust the included site (and all the servers that the request goes through) to provide (good) code that will enable the server, which will run without question.
source share