- file_get_contents: documentation ( source)
- strcmp: documentation ( source)
- glob: documentation ( source)
- file_put_contents: documentation ( source)
<?php
$filename1 = "\x41\x6d\xC3\xA9\x6c\x69\x65";
$filename2 = "\x41\x6d\x65\xCC\x81\x6c\x69\x65";
file_put_contents($filename1, "Hello\n");
echo file_get_contents($filename2);
$files = glob("Am*");
echo "There are ".count($files)."files\n";
foreach ($files as $fileOnDisk) {
echo "strcmp val ".strcmp($filename1, $fileOnDisk)."\n";
echo "strcmp val ".strcmp($filename2, $fileOnDisk)."\n";
}
exit(0);