Ingo Foerster
asked on
PHP- Call a querystring with json answer
Hello,
on server 1 I have a PHP script with json output. I call this script with an querysting to get the result.
I want to call this PHP script from another PHP script by calling the commandline.
So I want to call from the PHP script of server one the script on server 2 by calling this
http://www.myserver.com/customscripts/insert.php?username=$x&license=$x&email=$x
How can I do this?
on server 1 I have a PHP script with json output. I call this script with an querysting to get the result.
I want to call this PHP script from another PHP script by calling the commandline.
So I want to call from the PHP script of server one the script on server 2 by calling this
http://www.myserver.com/customscripts/insert.php?username=$x&license=$x&email=$x
How can I do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Works great.
Glad to help.
If you try Dave's solution and still have troubles, please post the PHP script that you're trying to call and we can look for an alternative method (probably cURL).