implemented database, article cards, and parsing from markdown.

This commit is contained in:
Joshua Ashton
2025-03-19 23:27:20 -06:00
parent 3b794ae87d
commit 5af0547864
16 changed files with 426 additions and 20 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
/*
* Reads in file contents and stores as a single string.
*/
function read_file_one_string($file_path)
{
$fs = fopen($file_path, 'r');
$string = fread($fs, filesize($file_path));
return $string;
}
function pretty_dump($arr)
{
return '
<pre>
' . print_r($arr) . '
</pre>
';
}