Thanks for that but not quite what i mean.
I need to get the result of either an echo or a print into a variable, if thats possible.
in otherwords my script outputs to a webpage, however i want to take that output put it into a variable, perform a couple of tasks on it, Then send it back to the webpage.
many thanks