richiejones24 Posted April 8, 2012 Share Posted April 8, 2012 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 Quote Link to comment https://forums.phpfreaks.com/topic/260559-execute-remote-code-on-server/ Share on other sites More sharing options...
Andy-H Posted April 8, 2012 Share Posted April 8, 2012 $curl_scraped_page = eval(file_get_contents('http://www.remote_server.com/script.txt')); Quote Link to comment https://forums.phpfreaks.com/topic/260559-execute-remote-code-on-server/#findComment-1335364 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.