I've been playing with some php code run from the command line on Debian Linux that checks a pop3 email box then dumps to the screen. What I'm trying to do now is get the array output to dump to a text file. I don't care if it still outputs to the screen I just also want it to dump to a text file.
The way this is now all I get is literally the word ' array ' in my test.txt file.
I'm using php5 and Debian stable
// Parse message
$message = implode('', $message);
// Return array
$email = array();
$email['message'] = $message;
$email['headers'] = $headers;
$output = fopen("test.txt", "a");