I got some php code that i want to execute when the page is fully loaded and i only want it to execute one time and no more after clicking submit.
this is the php code i want to execute
$backup=fopen("backup/".time().".json", "w");
fwrite($backup, json_encode($list)); fclose($backup);
can someone tell me how to execute this code after page is loaded and only 1 time. If possible.