Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #328

Re: a program to read/compare the size of files on some websites?

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 <rogerarm@freeuk.com>
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 <dc053cd751.rogerarm@rogerarm.freeuk.com> (permalink)
References <e3d16bd651.rogerarm@rogerarm.freeuk.com> <mpro.lljh0e011nvq801iz.news@stevefryatt.org.uk> <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

Show key headers only | View raw


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.

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

a program to read/compare the size of files on some websites? Roger Darlington <rogerarm@freeuk.com> - 2011-05-20 17:23 +0100
  Re: a program to read/compare the size of files on some websites? Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-05-20 21:17 +0100
    Re: a program to read/compare the size of files on some websites? Roger Darlington <rogerarm@freeuk.com> - 2011-05-20 21:45 +0100
      Re: a program to read/compare the size of files on some websites? Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-05-20 22:49 +0100
      Re: a program to read/compare the size of files on some websites? Roger Darlington <rogerarm@freeuk.com> - 2011-05-22 07:28 +0100
        Re: a program to read/compare the size of files on some websites? Steve Fryatt <news@stevefryatt.org.uk> - 2011-05-22 13:28 +0100
          Re: a program to read/compare the size of files on some websites? Roger Darlington <rogerarm@freeuk.com> - 2011-05-22 16:19 +0100
      Re: a program to read/compare the size of files on some webs jgh@arcade.demon.co.uk (Jonathan Graham Harston) - 2011-05-22 17:30 +0100
        Re: a program to read/compare the size of files on some webs Roger Darlington <rogerarm@freeuk.com> - 2011-05-24 14:36 +0100
  Re: a program to read/compare the size of files on some websites? Steve Fryatt <news@stevefryatt.org.uk> - 2011-05-21 10:29 +0100
    Re: a program to read/compare the size of files on some websites? Andrew Hodgkinson <ahodgkin@rowing.org.uk> - 2011-05-21 10:39 +0100
    Re: a program to read/compare the size of files on some websites? Roger Darlington <rogerarm@freeuk.com> - 2011-05-21 13:13 +0100
      Re: a program to read/compare the size of files on some websites? Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-05-22 03:37 +0200
        Re: a program to read/compare the size of files on some websites? Roger Darlington <rogerarm@freeuk.com> - 2011-05-22 07:17 +0100
          Re: a program to read/compare the size of files on some websites? "John Williams (News)" <UCEbin@tiscali.co.uk> - 2011-05-22 09:45 +0200
            Re: a program to read/compare the size of files on some websites? Steve Fryatt <news@stevefryatt.org.uk> - 2011-05-22 10:31 +0100
              Re: a program to read/compare the size of files on some websites? "John Williams (News)" <UCEbin@tiscali.co.uk> - 2011-05-22 12:57 +0200
                Re: a program to read/compare the size of files on some websites? Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-05-24 01:11 +0200
                Re: a program to read/compare the size of files on some websites? Alan Adams <alan@adamshome.org.uk> - 2011-05-24 17:30 +0100
              Re: a program to read/compare the size of files on some websites? Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-05-24 01:03 +0200
            Re: a program to read/compare the size of files on some websites? Roger Darlington <rogerarm@freeuk.com> - 2011-05-22 16:41 +0100
          Re: a program to read/compare the size of files on some websites? Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-05-24 00:57 +0200
            Re: a program to read/compare the size of files on some websites? Roger Darlington <rogerarm@freeuk.com> - 2011-05-24 14:14 +0100
      Re: a program to read/compare the size of files on some websites? Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-05-22 18:54 +0100
        Re: a program to read/compare the size of files on some websites? Roger Darlington <rogerarm@freeuk.com> - 2011-05-23 07:08 +0100
          Re: a program to read/compare the size of files on some websites? jgharston <jgh@arcade.demon.co.uk> - 2011-05-23 08:01 -0700
          Re: a program to read/compare the size of files on some websites? Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-05-24 01:44 +0200
            Re: a program to read/compare the size of files on some webs jgh@arcade.demon.co.uk (Jonathan Graham Harston) - 2011-05-29 23:49 +0100
              Re: a program to read/compare the size of files on some webs Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-05-30 12:11 +0200
                Re: a program to read/compare the size of files on some webs Frank de Bruijn <zuiderduin@hotmail.com> - 2011-05-31 07:45 +0200
              Re: a program to read/compare the size of files on some webs Frank de Bruijn <zuiderduin@hotmail.com> - 2011-05-31 07:38 +0200
  Re: a program to read/compare the size of files on some websites? Ron <beeb@woosh.co.nz> - 2011-05-29 20:50 +1200
  Re: a program to read/compare the size of files on some websites? Ron Briscoe <ron.briscoe@blueyonder.co.uk> - 2011-05-29 16:26 +0100

csiph-web