14) php code for the extra interested

For the FemTech Cyberbear we are┬ácalling up several websites for information. However, for the Cyberbear to be able to use the information, we need it to return something simple. Therefore, we use different php scripts, which turn the information into yes or no. You can see the different websites we created at femtech.dk/cyberbear – you can also call them directly from a web-browser – Below is the php code for you to explore and enjoy!
It is not required or needed to know this code to make the CyberBear

isfriday.php

isnorain.php

cansnooze.php

lectio.php (please notice that this code includes simple_html_dom.php which you need as well if the code is going to work https://gist.github.com/pernillebjorn/697b81b04a8d9584d7004aceaf887224