Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Roger Darlington Newsgroups: comp.sys.acorn.programmer Subject: Re: a program to read/compare the size of files on some websites? Date: Sun, 22 May 2011 07:17:40 +0100 Organization: home Lines: 60 Message-ID: References: <66c1d8d651.rogerarm@rogerarm.freeuk.com> <4dd868c6$0$14671$ba4acef3@reader.news.orange.fr> Injection-Info: mx04.eternal-september.org; posting-host="DdJcypH3744pyjlFdDal9Q"; logging-data="13146"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/kXJF6Fm7gcrF93NqjtWO40Yb3QHpvWfxcuNM+tAlKCA==" User-Agent: Messenger-Pro/6.01 (MsgServe/6.00) (RISC-OS/4.39) NewsHound/v1.50-32 X-Editor: EmailEdit 6.00 Cancel-Lock: sha1:BJCyprptMVmbnFlgMgVWwVpdGR8= Xref: x330-a1.tempe.blueboxinc.net comp.sys.acorn.programmer:328 On 22 May 2011, Rick Murray wrote: > On 21/05/2011 14:13, Roger Darlington wrote: >> But what do you do when the two get out of sync? > ...work out *why* they are out of sync first. Hacky DST changes throwing > the filestamps off by an hour? > I wrote a scanner for Win98, and when I migrated to XP, I was horrified > to discover that reading the file time stamp using the Win32 API > actually mucked the times in the switch to summer time. I don't have the > MSDN data on this machine, but I could have sworn the spec said dates > were UTC. Evidently not... >> Delete the lot off the website and re-upload everything?? > If you can nail down a cause, you can work around it. >> That is 100's of MB's, which may well use up my bandwidth for the >> month... > Fair enough. And it's also a total waste of time to upload what hasn't > changed. > Can you run PHP? Perhaps a little hidden webpage to scan the directory > contents and return the name, size, and some sort of checksum? > afile.html*49403*4E2F > index.html*2856*93A2 > resources*FOLDER* > stuff.html*14059*670A > xyzzy.jpeg*93840*819C > Shouldn't be too hard to do, and on your end you'll arrive at a list of > files, their size, and a value derived from the file contents. > Plus, a > list of folders for subsequent indexing... There's the bug-bear again. It seems I would have to run this PHP in every directory, of which there are hundreds... But I'm not even sure I can run PHP, I'd have to check first. > Oh, and in this way, you don't need to log in to anything, just call the > (hidden) PHP script and record the result. > Best wishes, > Rick. -- Cheers Roger If you feel weary after just 3 miles, you might be walking too slowly.