I have a scheduled task[1] that runs
C:\wdisplay\wxtide32.exe
using the parameters
-textfile “webfiles~dcwWxTide.txt” -text
~dcwWxTide.txt is just my arbitrary choice for the output file name.
I then use WD’s “General FTP” option to upload that file to the server, renaming it to tideprediction.txt along the way. For convenience I have the file uploaded at the same times as my WXSIM forceast is updated (though the tide file is only recalculated once a day).
If I knew what parameters WD used with WxTide I could presemably produce a file that is “just the same”, the above however gives a slightly different format.
The significant things I needed to change were:
a) In my tideprediction.txt the date above each day includes the year, so I needed to tweak the date format parameters in the date call within the strstr to accommodate that, i.e.
$tidedate = strstr($tideD, date("l Y-m-d", $time+(86400*$numb)));
b) For the same reason I would have needed to tweak your code that does “// Convert date format to short day and full month names (UK format)”, however, I cheated and just used a further call of the date function instead, i.e.
$dformat = date("D d F", $time+(86400*$numb));
c) Because my tideprediction.txt includes GMTDT (GMT Daylight (saving) Time?) and GMTST (GMT Standard Time?) after the times I needed to increase the value of 188 that you use to shorten the text to “just the relevant day plus a little more” to 300 (not a precise choice of figure, something a bit smaller would probably work).
That’s all. 
[1] I use a Splinterware System Scheduler event, but MS Scheduled Tasks could be used.