The two main options are, assuming that you have access to some scheduler (crontab, etc) on the machine that runs MATLAB..
1. You build a webpage with PHP script which uses some data file output-ed by your script to build the webpage content.
2. You generate the webpage directly with MATLAB.
In both cases though, the web server and MATLAB must run on the same machine, or you must use tools for performing automatic FTP (SFTP, WGET/PUT, etc) for transferring data files or web pages.
EDIT: to help you start, here is an example for generating an HTML page using MATLAB. If you don't know HTML, you can learn the basics here: http://www.w3schools.com/ Save the following function in your system:
function exportHTML(filename, nFiles1day, nFiles3day, nFiles7day, ...
lastLocation, latestFile, lastTruckMove)
fid = fopen(filename, 'w') ;
if fid < 0
error('Unable to open %s for writing.', filename) ;
end
fprintf(fid, '') ;
fprintf(fid, '<h1>Truck Tracking Tool by Jacqueline</h1>') ;
fprintf(fid, '*Exported on %s*<br/>', datestr(now)) ;
fprintf(fid, '<table border="1">') ;
fprintf(fid, '<tr><td># files last day</td><td>%d</td></tr>', nFiles1day) ;
fprintf(fid, '<tr><td># files last 3 days</td><td>%d</td></tr>', ...
nFiles3day) ;
fprintf(fid, '<tr><td># files last 7 days</td><td>%d</td></tr>', ...
nFiles7day) ;
fprintf(fid, '<tr><td>Last location</td><td>') ;
for k = 1 : length(lastLocation)
fprintf(fid, '%s<br/>', lastLocation{k}) ;
end
fprintf(fid, '</td></tr>') ;
fprintf(fid, '<tr><td>Latest file</td><td>%s</td></tr>', latestFile) ;
fprintf(fid, '<tr><td>Last truck move</td><td>%s</td></tr>', ...
lastTruckMove) ;
fprintf(fid, '</table>') ;
fprintf(fid, '') ;
end
Then run the following code, that emulates the output that you should get from your functions and calls the export function above:
nFiles1day = 3 ;
nFiles3day = 16 ;
nFiles7day = 48 ;
lastLocation = {'720 Aero Drive, Buffalo, NY 14225, USA', ...
'Buffalo, NY 14225, USA', 'Cheektowaga, NY, USA', ...
'Erie, NY, USA', 'New York, USA', 'United States'} ;
latestFile = '20130729_SPLBRENT3_081610.mat' ;
lastTruckMove = '29-Jul-2013 10:13:32' ;
filename = 'index.html' ;
exportHTML(filename, nFiles1day, nFiles3day, nFiles7day, lastLocation, ...
latestFile, lastTruckMove) ;
You will see that it creates a file index.html on your disk, which you can open with a browser.
Hope it helps