yes I'm using SSO, my main site isn't wordpress. And the reason why I prefer JSON is that I want the output to be formatted using a different template.
what if I use fetch_file_contents? is it going to affect the current session?
it is better to use curl, but when you fetch something on the server side the 'person' fetching it is the server, it is unrelated to to the current user session, so you would need something capable of handling session and you would need to forward the session. I think this isn't a good solution IMO. It would be better to use the client-side/ajax.
Comments
yes I'm using SSO, my main site isn't wordpress. And the reason why I prefer JSON is that I want the output to be formatted using a different template.
what if I use fetch_file_contents? is it going to affect the current session?
awesome! I'm checking it now. thank you so much man. you helped me a lot!
it is better to use curl, but when you fetch something on the server side the 'person' fetching it is the server, it is unrelated to to the current user session, so you would need something capable of handling session and you would need to forward the session. I think this isn't a good solution IMO. It would be better to use the client-side/ajax.
grep is your friend.
none the widget probably uses json, in which case, only do that if you are going to strip the tags
grep is your friend.