Hi!
I think it`s the 'src' attribute in the image tag you want to change.
A possible solution, but maybe not the best, is to buffering the output.
// First in the script.
ob_start();
//Include the html.
include('myHtml.html');
// Read the output into a string and clean the buffer.
$output = ob_get_contents();
ob_end_clean();
// The new image directory
$newImageDir = 'newDir';
// Replace the stuff.
$output = str_replace('<img src="oldImgDir', '<img src="'.$newImageDir, $output);
echo $output;
The best way is probaly to change your image directory structure so this isnt needed.