PHP sample file
php_sample_file_1MB.php
1.0 MB
application/octet-stream
SHA256 verified
File details
Filename
php_sample_file_1MB.phpSize1.0 MB (1048576 bytes)
MIME type
application/octet-streamExtension
.phpSHA256
cd36afa942cd689fdf45e929506d4d128507e7f8d1b3894400cce3277b05e97cDownload commands
Use in scripts and tests
curl -L -o php_sample_file_1MB.php \
https://samplefile.com/samples/download/code/php/php_sample_file_1MB.php/
wget -O php_sample_file_1MB.php \
https://samplefile.com/samples/download/code/php/php_sample_file_1MB.php/
import requests
url = "https://samplefile.com/samples/download/code/php/php_sample_file_1MB.php/"
resp = requests.get(url)
with open("php_sample_file_1MB.php", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://samplefile.com/samples/download/code/php/php_sample_file_1MB.php/");
const buf = Buffer.from(await resp.arrayBuffer());
require("fs").writeFileSync("php_sample_file_1MB.php", buf);
# Download and verify SHA256
curl -L -o php_sample_file_1MB.php https://samplefile.com/samples/download/code/php/php_sample_file_1MB.php/
echo "cd36afa942cd689fdf45e929506d4d128507e7f8d1b3894400cce3277b05e97c php_sample_file_1MB.php" | shasum -a 256 -c
# Python
import hashlib, requests
data = requests.get("https://samplefile.com/samples/download/code/php/php_sample_file_1MB.php/").content
assert hashlib.sha256(data).hexdigest() == "cd36afa942cd689fdf45e929506d4d128507e7f8d1b3894400cce3277b05e97c"
More PHP files
Other PHP Sample Files
| Filename | Size | SHA256 | 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 |
php_sample_file_5MB.php |
5.0 MB | a2aa8c6dc33da861… |
Download |
Learn more