Jump to content

Returning a value from a remote PHP script


noorodeen

Recommended Posts

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

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.