Jump to content

Execute remote code on server?


richiejones24

Recommended Posts

I am trying to get a php script on a remote server to execute on my server but im having problems getting it to work, and i am not sure if it is even feasible

i have had a look on google but i cant find much information on it.

 

This is what i have tried up to now

 

I saved a php script as a txt file on y remote server.

then used

file_get_contents

on my home server

 

$curl_scraped_page = file_get_contents('http://www.remote_server.com/script.txt');

 

the content of the txt file was

 

$sum = 1+1;

 

then i tried to echo $sum on the home server but i did not work can anyone point me in the right direction or is what i am trying to do even feasible?

 

Thanks in advanced

 

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/260559-execute-remote-code-on-server/
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.