Website A is a client site. It calls a php script on the server for website B, where our MySQL database resides, like this:
Code: Select all
<?php
// Unique Identifier for this client...
$id = "me";
// Request the data...
$Reply = file("http://www.website_b.ws/something/webservice.php?id=".$id);
// Return the data to the screen...
echo $Reply[0];
?>
On the Website B server we have the script which verifies that the client request is coming from a legitimate referrer, pulls the data set for that client from the db, formats the data with appropriate markup for the client site, and uses echo to send the data stream back to the server for website A.
Sometimes.
I doubt this is the 'cause' that makes things work, but it may give you a clue.
If I include
Code: Select all
error_reporting("E_ALL");I've been messing with php for several years now and have NEVER encountered anything like this. Then again, I've never tried to provide a webservice before either - so this just may be part of the 'learning curve'.
Anyone? Thoughts?
Thanks in advance for your help!
Jeff