plznty Posted January 4, 2011 Share Posted January 4, 2011 I would like a part of my script to link to an external sites script It doesn't seem to be doing it though Othersite.com - index.php?name=hello&status=1 I would like my post.php to run that above. Can it be done? Link to comment https://forums.phpfreaks.com/topic/223386-how-to-run-a-external-php/ Share on other sites More sharing options...
BlueSkyIS Posted January 4, 2011 Share Posted January 4, 2011 <?php $output = file_get_contents("http://www.othersite.com/index.php?name=hello&status=1"); echo "output: $output "; ?> Link to comment https://forums.phpfreaks.com/topic/223386-how-to-run-a-external-php/#findComment-1154740 Share on other sites More sharing options...
plznty Posted January 4, 2011 Author Share Posted January 4, 2011 Didn't think that would work, I thought I'de need something like exec. Thanks! Link to comment https://forums.phpfreaks.com/topic/223386-how-to-run-a-external-php/#findComment-1154747 Share on other sites More sharing options...
plznty Posted January 4, 2011 Author Share Posted January 4, 2011 Done. Link to comment https://forums.phpfreaks.com/topic/223386-how-to-run-a-external-php/#findComment-1154762 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.