$rt = new WordPHP(true);
$rt = new WordPHP(false); or $rt = new WordPHP();
$rt = new WordPHP(false, OUTPUT_ENCODING);
$text = $rt->readDocument(FILENAME);
To load images, please create a tmp folder where images can be extracted and saved from the document. Don't forget to change the permissions in that folder so that the user that runs this class can write the images in it.