Gah I'm about to start banging my head against a brick wall...
ilovejedd, when using your ffnet.source.php code printed a few messages above to try and create an epub using the cli I get the following error message:
Warning: Invalid argument supplied for foreach() in C:\...\html.codec.php on line 73
The line in question is:
foreach($story['meta']['chapters'] as $key => $title) {
I've tried it with every copy of html.codec.php I have and although the line numbers are different it falls over at the same bit of code everytime.
I tried changing $title to $chaptitle as it is in ffnet.source.php just in case it was something as simple as that with no joy.
Sorry to keep bothering you but I'm about to run out of already grabbed fics and I really don't want to have to go back to doing it manually plus your version of the script makes it look so much better.
TIA for any help.