Fatal error: Call to undefined function get_option()

I don’t see any get_option() function on line 9 or anywhere else in your code.

After quick googling, my guess would be that your problem is the same as this question on stackoverflow

EDIT

As @Ray proposed at the linked question, paste this in your code to check if wp-includes/option.php is included:

$includedStuff = get_included_files();
print_r($includedStuff);

If it is not, include it yourself:

include_once('wp-includes\option.php');

If this works for you, don’t forget to upvote Ray’s answer.