Hello,

I've been going through this book because I'm fairly new to PHP. I've come to the section on p261 which indicates to download markdown.php, add it to the project and then add in the new code into helpers include file. I have done this but when I run it I get this error:

Fatal error: Call to undefined function Markdown() in C:\xampp\htdocs\includes\helpers.inc.php on line 17

I then downloaded the whole Michelf folder as suggested on the website and updated the path to account for this but I still have the same error. The code is:

function markdown2html($text)
{
$text = html($text);
include_once $_SERVER['DOCUMENT_ROOT'] . '/includes/Michelf/Markdown.php';
return Markdown($text);
}

Can anyone let me know where I am going wrong?

Thanks
Sarah