Jump to content

get file contents with some php in?


frobak

Recommended Posts

Hi

 

Is it possible to use get_file_contents to retreive code(from the same server but different domain) without running the php code inside the included file. I want to use a local include inside the retreived contents. is it possible to stop the code running on the original server?

 

the following code works, pulling the content from the central file:

 

<?php $xx = file_get_contents("http://www.mkoneweb.co.uk/central_includes/test.inc.php"); echo $xx; ?></p>

 

but i want to have a local variable inside the contents of the retreived file:

 

<? include("includes/area.inc.php"); ?>

 

anyway to control when this code will run?

 

Any help would be much appreciated

 

cheers

 

 

Link to comment
https://forums.phpfreaks.com/topic/180132-get-file-contents-with-some-php-in/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.