Forum Moderators: coopster
If that is indeed the case, you might try copying the script to a new file and removing the fwrite($xmlFileName, "$results") and substituting it with an: echo $results;
Or if you do want the actual xml created for later use, just add the echo at the end of the script.
If the above doesnt cover it, maybe reply with some sample code and a bit more info on exactly what you are trying to accomplish.
Hope it helps,
IamStang