tourbike Posted June 11, 2008 Share Posted June 11, 2008 hi I am just learning php and I am stuck on a problem basically I have two php programs running on different websites but i want to include one into the other I can move the programs into the same root directory using the include( dirname(__FILE__) . "/file.php"); but i want to change this to include( "http://www.example.com/file.php"); where www.example.com is a remote or separate site as i only want to include the file.php how can i make this possible with just line of code ???? I have looked at the manual but seem to be lost thanks for any feedback Quote Link to comment Share on other sites More sharing options...
Vizor Posted June 11, 2008 Share Posted June 11, 2008 You can't include remote PHP scripts, if you try that it will only return what the script generated. The only thing you can do is store a local copy of the script you want and include that. Quote Link to comment 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.