Search
 
SCRIPT & CODE EXAMPLE
 

PHP

PHP sha1 — Calculate the sha1 hash of a string

<?php
$str = 'apple';

if (sha1($str) === 'd0be2dc421be4fcd0172e5afceea3970e2f3d940') {
    echo "Would you like a green or red apple?";
}
?>
Comment

PHP sha1_file — Calculate the sha1 hash of a file

<?php
foreach(glob('/home/Kalle/myproject/*.php') as $ent)
{
    if(is_dir($ent))
    {
        continue;
    }

    echo $ent . ' (SHA1: ' . sha1_file($ent) . ')', PHP_EOL;
}
?>
Comment

PREVIOUS NEXT
Code Example
Php :: laravel eloquent get current sequence value 
Php :: upload video file in mysqli using php 
Php :: php make text id attribute safe 
Php :: set modes magento 2 
Php :: An expression was expected phpmyadmin 
Php :: eloquent complex queries 
Php :: phpImage 
Php :: laravel-filemanager not working 
Php :: calculate average in eager loading laravel 
Php :: pluck only category name and id from model in laravel 
Php :: search a file name and open that file phpstrom 
Php :: encode string for csv 
Php :: wordpress not recognizing function during plugin activation 
Php :: trying to change iframe location from javascript 
Php :: how to check null and empty array in laravel 8 
Php :: change php platform of composer 
Php :: get current page name for page active class 
Php :: php laravel convert blob type to string 
Php :: find only selected columns 
Php :: Relationship 1-n multiple BACKPACK Laravel 
Php :: image upload in cake 2 
Php :: PHP Installation broken - shows strange php code as response 
Php :: white labeling wordpress divi 
Php :: disableTimeRanges 
Php :: check if valid date format entered inside the excel import php 
Php :: php count result query 
Php :: Change initial country + add top countiries on Caldera forms 
Php :: how to add in massive php 
Php :: php delete acc 
Php :: vendor folder command for custom errors laravel 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =