Register user from other website
-
Hi.
I have a website with JSON API actived.This works fine
$url = 'https://www.mysite.com/api/get_nonce?controller='.$controller.'&method='.$method; $jsonfile = file_get_contents($url); $data = json_decode($jsonfile);
This doesn’t work
$url = 'https://www.mysite.com/api/user/register?username='.$username.'&nonce='.$nonce.'&email='.$email.'&display_name='.$display_name; $jsonfile = file_get_contents($url); $data = json_decode($jsonfile);
if launch the link from the browser work both. If launch from php only it works the first. Where am I wrong?
The plugin is installed in website1 and i launch the script from another website.
Thanks
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Register user from other website’ is closed to new replies.