Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-07-2013, 09:27 PM   PM User | #1
durangod
Senior Coder

 
Join Date: Nov 2010
Posts: 1,191
Thanks: 217
Thanked 31 Times in 30 Posts
durangod is on a distinguished road
using checksum on final php script folders.

How popular is using the checksum application in the final polish before script release.

One of the projects i am working on is a version control script but that is on the back burner right now as i have to get my other stuff up to date.

Normally what i do is once i get the test environment fully tested i just download those files and encrypt it, pack it up and its ready to go.

But in this case i thought i would try something different to learn something today, especially in the event of something getting corrupted in the process.

So i did some checking on using checksum application for windows on my entire script folder and wanting to make sure it matches the downloaded one.

I dont know honestly if this is common practice, or a necessary evil, or if i should use something else.

Just thought i would ask.

Last edited by durangod; 02-08-2013 at 04:35 PM..
durangod is offline   Reply With Quote
Old 02-07-2013, 10:46 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,741
Thanks: 4
Thanked 2,465 Times in 2,434 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
So long as I have a checksum available from the source, I always use a checksum to verify it. It just makes sure you get the file as expected, so it didn't download corrupt or intercepted and modified.
Typically these are things like packages though, not each individual file.
__________________
PHP Code:
header('HTTP/1.1 420 Enhance Your Calm'); 
Fou-Lu is offline   Reply With Quote
Old 02-07-2013, 11:14 PM   PM User | #3
durangod
Senior Coder

 
Join Date: Nov 2010
Posts: 1,191
Thanks: 217
Thanked 31 Times in 30 Posts
durangod is on a distinguished road
Yeah that was my plan is to use it on the final production copy just to make sure.

Can you checksum a zip or rar file or does it have to be uncompressed?
durangod is offline   Reply With Quote
Old 02-07-2013, 11:15 PM   PM User | #4
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,741
Thanks: 4
Thanked 2,465 Times in 2,434 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Quote:
Originally Posted by durangod View Post
Yeah that was my plan is to use it on the final production copy just to make sure.

Can you checksum a zip or rar file or does it have to be uncompressed?
You should be able to checksum any file. Checksum's are calculated by the binary within it, so it doesn't matter the format.
Note that that a compressed file will have a different checksum than an uncompressed file.
__________________
PHP Code:
header('HTTP/1.1 420 Enhance Your Calm'); 
Fou-Lu is offline   Reply With Quote
Users who have thanked Fou-Lu for this post:
durangod (02-08-2013)
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:24 AM.


Advertisement
Log in to turn off these ads.