Hello guys I need a small help. Can anyone tell me how to call and store the output of a PHP script in a variable in another PHP script. I have a php script test.php which when run outputs some HTML page.. I want another PHP script which executes this above one and stores its HTML output in a $message variable which will be sent as a email. regards aditya
$message = file_get_contents("http://www.yoursite.com/test.php"); That should do it. Use file() to feed it into an array instead of as a string.