Skip to content

Instantly share code, notes, and snippets.

@DarkVss
Created September 5, 2025 14:27
Show Gist options
  • Save DarkVss/b79607959ac0a80382a08bd94774ed6c to your computer and use it in GitHub Desktop.
Save DarkVss/b79607959ac0a80382a08bd94774ed6c to your computer and use it in GitHub Desktop.
Temporary php generation code
<?php
// Temp execution file
$temp = tmpfile();
var_dump(stream_get_meta_data($temp)["uri"]);
fwrite($temp, '<?php echo "исполнен код из временного файла в " . microtime(true) . "\n";');
fseek($temp, 0);
include stream_get_meta_data($temp)["uri"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment