Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file exists bug #10

Closed
ChezRD opened this issue May 15, 2014 · 0 comments
Closed

file exists bug #10

ChezRD opened this issue May 15, 2014 · 0 comments

Comments

@ChezRD
Copy link

ChezRD commented May 15, 2014

yes of course it can be rare event but it is...
file based on md5(any data) must be checked out in cycle like
do
{
$file_name = md5( data string );
}
while( file_exists( SITE_ROOT . '/files/' . $file_name ) );

one way or another you NEED to check exists of data when you use hash function like md5, sha1 and so on.

ziggi added a commit that referenced this issue Jun 25, 2014
@ziggi ziggi closed this as completed Jun 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants