noorodeen Posted January 7, 2007 Share Posted January 7, 2007 Hello All,I've searched quite a bit to try to find answer to this but to no avail. I am hoping you can help me out here.I am including a remote script in my code and I want the remote script to return a value. How can I do that?Here's the snippet of code:$var = include 'http://www.example.com/file.php?var1=$var1&var2=$var2';Now, I have tried to get global variables in file.php, I tried using return $var....Any ideas on how I can this going?Thanks,noorodeen Link to comment https://forums.phpfreaks.com/topic/33219-returning-a-value-from-a-remote-php-script/ Share on other sites More sharing options...
trq Posted January 7, 2007 Share Posted January 7, 2007 There are xamples of how to acomplish this in the [url=http://php.net/include]manual[/url]. Link to comment https://forums.phpfreaks.com/topic/33219-returning-a-value-from-a-remote-php-script/#findComment-155086 Share on other sites More sharing options...
noorodeen Posted January 7, 2007 Author Share Posted January 7, 2007 The examples are of including local php files, not remote ones.The manual does mention cursorly that you can call a variable from the remote script, but I didn't find that to work.... Link to comment https://forums.phpfreaks.com/topic/33219-returning-a-value-from-a-remote-php-script/#findComment-155095 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.