PHP sample file
php_sample_file_5MB.php
5.0 MB
application/octet-stream
SHA256 verified
File details
Filename
php_sample_file_5MB.phpSize5.0 MB (5242887 bytes)
MIME type
application/octet-streamExtension
.phpSHA256
a2aa8c6dc33da861636c37810cbe62cd37e1c17b012a628d1c7eca1f2e6ef3d5Download commands
Use in scripts and tests
curl -L -o php_sample_file_5MB.php \
https://samplefile.com/samples/download/code/php/php_sample_file_5MB.php/
wget -O php_sample_file_5MB.php \
https://samplefile.com/samples/download/code/php/php_sample_file_5MB.php/
import requests
url = "https://samplefile.com/samples/download/code/php/php_sample_file_5MB.php/"
resp = requests.get(url)
with open("php_sample_file_5MB.php", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://samplefile.com/samples/download/code/php/php_sample_file_5MB.php/");
const buf = Buffer.from(await resp.arrayBuffer());
require("fs").writeFileSync("php_sample_file_5MB.php", buf);
# Download and verify SHA256
curl -L -o php_sample_file_5MB.php https://samplefile.com/samples/download/code/php/php_sample_file_5MB.php/
echo "a2aa8c6dc33da861636c37810cbe62cd37e1c17b012a628d1c7eca1f2e6ef3d5 php_sample_file_5MB.php" | shasum -a 256 -c
# Python
import hashlib, requests
data = requests.get("https://samplefile.com/samples/download/code/php/php_sample_file_5MB.php/").content
assert hashlib.sha256(data).hexdigest() == "a2aa8c6dc33da861636c37810cbe62cd37e1c17b012a628d1c7eca1f2e6ef3d5"
More PHP files
Other PHP Sample Files
| Filename | Size | SHA256 | Download |
|---|---|---|---|
php_sample_file_1MB.php |
1.0 MB | cd36afa942cd689f… |
Download |
php_sample_file_200KB.php |
200.0 KB | 6f1c56b0815c89e8… |
Download |
php_sample_file_2MB.php |
2.0 MB | 0c6d53ddce0e102e… |
Download |
php_sample_file_500KB.php |
500.0 KB | 0b5f5f41662f8623… |
Download |
php_sample_file_50KB.php |
50.0 KB | 6f3655968087df2e… |
Download |
Learn more