Hi - I have a php script on server A into which I can pass paramters via the URL. This script produces HTML which is then displayed in the users browser.
Server B has a page that want to make use of some of the info within this HTML.
My first solution was to use javascript and ajax. I issued an ajax request to the script on server A, including the parameters I wanted. The call responded with the HTML placed into a javascript variable on server B, which I could then parse to extract the info I wanted. This worked absolytely fine, however, this required running server side javascript.
I was wondering if there was any way to do this exclusively in PHP. I played around with output buffering, but couldn't find a solution that let me pass in the URL and to capture the output to a variable.
Any thoughts?
Cheers,
Ben
Server B has a page that want to make use of some of the info within this HTML.
My first solution was to use javascript and ajax. I issued an ajax request to the script on server A, including the parameters I wanted. The call responded with the HTML placed into a javascript variable on server B, which I could then parse to extract the info I wanted. This worked absolytely fine, however, this required running server side javascript.
I was wondering if there was any way to do this exclusively in PHP. I played around with output buffering, but couldn't find a solution that let me pass in the URL and to capture the output to a variable.
Any thoughts?
Cheers,
Ben