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 :: check if any values are the same in an array php 
Php :: stripe php sdk constants 
Php :: Form::select laravel 
Php :: php url variable xss sanitize 
Php :: wp wc php edit archive-product category page 
Php :: storefront remove sidebar from product page 
Php :: laravel date format valdiate 
Php :: php extend class 
Php :: PHP Parses a time string according to a specified format 
Php :: user order by role spatie laravel 
Php :: php take out 2 level array key value 
Php :: laravel digits between does not working 
Php :: check array has keys in php 
Php :: Laravel Secured Password 
Php :: debug bar laravel print array 
Php :: what is carriage return in php 
Php :: reindex after post api magento 2 
Php :: status code 301 
Php :: custom blade directive 
Php :: How to check if a session is expired or never was set in php 
Php :: php current page 
Php :: php preg match 
Php :: Token capabilities in vault 
Php :: How to remove from a multidimensional array all duplicate elements including the original 
Php :: PHP-cs-fixer: Executable Path Windows 
Php :: How do I ge the version of wordpress? 
Php :: laravel edit method 
Php :: laravel show method 
Php :: add filter in wordpress 
Php :: routing with php 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =