Re: [PHP] checking users have the latest version of a file

2004-02-19 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote:
I dont understand what you are doing with the md5, and

i assume YOU will know which file is the latest version.

this is what i have to try and find out to prevent that.



How could i check for date modified on an uploaded file ?

Not possible. Uploaded files have modification times set to the time of 
upload.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] checking users have the latest version of a file

2004-02-19 Thread electroteque
I was considering my only last options is diff and filesize, but then i was
thinking say the latest file is a size of 1mb, the copy of the users machine
is 2mb but is still not in sync with the latest copy then . sorry to trouble
you about this, i would have intergrated php with cvs viewer, but this type
of infrastructure would be painful to get onto the public server, being that
i still dont have cvs on my development machine i insisted i get, therefore
the only way i could get it on in a short time would be to do it myself but
i doubt that can happen hehe ;)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] checking users have the latest version of a file

2004-02-19 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
on Wednesday, February 18, 2004 5:18 PM said:

 I dont understand what you are doing with the md5, and
 
 i assume YOU will know which file is the latest version.
 
 this is what i have to try and find out to prevent that.

the md5 thing will just give you an easy way to determine if two (or
more) files are different from each other. even if there's one byte
different within the files, you'll get a different hash from the md5
function.

if you don't know what an md5 hash is you can use this as an example:

?php

echo md5(stereolab).br/;
echo md5(stareolab).br/;

?


it's possible to perform an md5 hash on an entire file from the command
line so you'll need to figure out how to do that. if you so choose to do
that at all.



chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] checking users have the latest version of a file

2004-02-18 Thread daniel
Hi there i am developing a collaboration filespace, i was wondering if
there is any way either using diff or filesize to check if users have the
latest version of a file before uploading their copy ? Let me know thankyou.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] checking users have the latest version of a file

2004-02-18 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
on Wednesday, February 18, 2004 3:42 PM said:

 Hi there i am developing a collaboration filespace, i was wondering if
 there is any way either using diff or filesize to check if users have
 the latest version of a file before uploading their copy ?

md5 the file.

i assume YOU will know which file is the latest version. if their hash
does not match your hash they don't have the same file and should
therefore be updated.

 Let me know thankyou.

ok sure no problem.


chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] checking users have the latest version of a file

2004-02-18 Thread daniel
I dont understand what you are doing with the md5, and

i assume YOU will know which file is the latest version.

this is what i have to try and find out to prevent that.

 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
on Wednesday, February 18, 2004 3:42 PM said:

 Hi there i am developing a collaboration filespace, i was wondering if
 there is any way either using diff or filesize to check if users have
 the latest version of a file before uploading their copy ?

 md5 the file.

 i assume YOU will know which file is the latest version. if their hash
 does not match your hash they don't have the same file and should
 therefore be updated.

 Let me know thankyou.

 ok sure no problem.


 chris.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] checking users have the latest version of a file

2004-02-18 Thread daniel
 I dont understand what you are doing with the md5, and

 i assume YOU will know which file is the latest version.

 this is what i have to try and find out to prevent that.

 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
on Wednesday, February 18, 2004 3:42 PM said:


What i'm gonna ask is, would simply checking that the new file being upload
is larger than the latest file updated work ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] checking users have the latest version of a file

2004-02-18 Thread daniel
 I dont understand what you are doing with the md5, and

 i assume YOU will know which file is the latest version.

 this is what i have to try and find out to prevent that.


How could i check for date modified on an uploaded file ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] checking users have the latest version of a file

2004-02-18 Thread Jason Wong
On Thursday 19 February 2004 09:19, [EMAIL PROTECTED] wrote:

 What i'm gonna ask is, would simply checking that the new file being upload
 is larger than the latest file updated work ?

Only if the latest version is always larger than the previous versions.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Knocked, you weren't in.
-- Opportunity
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php