implemented database, article cards, and parsing from markdown.
This commit is contained in:
@@ -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>
|
||||
';
|
||||
}
|
||||
Reference in New Issue
Block a user