Skip to content

Instantly share code, notes, and snippets.

@jack2jm
Created December 31, 2019 08:34
Show Gist options
  • Save jack2jm/f891c126fde7ed6f817cdf20fb56fe22 to your computer and use it in GitHub Desktop.
Save jack2jm/f891c126fde7ed6f817cdf20fb56fe22 to your computer and use it in GitHub Desktop.
*********
Open file path
--------------------
$myfile = fopen("data/finalized-ids.txt", "a+") or die("Unable to open file!");
Write something into file
--------------
fwrite($myfile, "event_ids,". PHP_EOL);
Close file
-------------------
fclose($myfile);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment