I'm new to object orientation in PHP. The relevant bits are thus:
class Show {
var $date;
var $venue;
var $comments;
function Show($d, $v, $c) {
$this->date = $d;
// and for the others
}
function writeToFile($outputFile) {
fwrite($outputFile, $this->date);
// and for the others
}
}
When I call writeToFile(), I get a " fwrite(): supplied argument is not a valid stream resource..."
The heck does that mean?
Thanks.