{"id":310,"date":"2018-09-24T11:01:59","date_gmt":"2018-09-24T15:01:59","guid":{"rendered":"http:\/\/wfredk.com\/blog\/?p=310"},"modified":"2018-11-05T03:29:03","modified_gmt":"2018-11-05T08:29:03","slug":"humanmathtest-an-open-source-php-class","status":"publish","type":"post","link":"https:\/\/wfredk.com\/blog\/2018092411\/humanmathtest-an-open-source-php-class","title":{"rendered":"HumanMathTest, an open source PHP class"},"content":{"rendered":"<div class=\"reader-article-content\" dir=\"ltr\">\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium\" src=\"http:\/\/wfredk.com\/photos\/blog\/HumanMathTest-300x161.png\" alt=\"HumanMathTest illustration\" width=\"300\" height=\"161\" \/><\/p>\n<p>I&#8217;ve published my first contribution to the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Free_and_open-source_software\" target=\"_blank\" rel=\"nofollow noopener\">FOSS<\/a> community on <a href=\"https:\/\/github.com\/L5Software\/HumanMathTest\" target=\"_blank\" rel=\"nofollow noopener\">github<\/a>: <a href=\"https:\/\/github.com\/L5Software\/HumanMathTest\" target=\"_blank\" rel=\"nofollow noopener\"><strong>HumanMathTest<\/strong><\/a> implements a math test &#8216;bot deterrent PHP class for use in online forms.<\/p>\n<p>This class is used to create an image to be included in an online form that shows a simple math test the visitor must solve when submitting the form. The operands and operation are stored in the <strong><span style=\"font-family: monospace;\">$_SESSION<\/span><\/strong> data for the page. After submitting the form, the visitor&#8217;s answer is checked by calling the <strong><span style=\"font-family: monospace;\">verify()<\/span><\/strong> method to compare their entry vs. the session data. If an error is found, the form submission should be rejected.<\/p>\n<p>The <a href=\"https:\/\/fkeinternet.net\/FOSS\/PHP\/HumanMathTest\/\" target=\"_blank\" rel=\"nofollow noopener\">demo page<\/a> illustrates many of the options available, and includes a link to <a href=\"https:\/\/fkeinternet.net\/FOSS\/PHP\/HumanMathTest\/HumanMathTest.zip\" target=\"_blank\" rel=\"nofollow noopener\">download<\/a> the fully commented source code, including that of the demo and example pages.<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>To support my work, please <a href=\"https:\/\/RaceToSpaceProject.com\/shopping\/bookpreorder.php\" rel=\"external\">buy a pre-publication copy<\/a> of <span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/RaceToSpaceProject.com\/\" rel=\"external\"><em><strong>Race To Space<\/strong><\/em><\/a><\/span>. For more info about the project, see the <span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/RaceToSpaceProject.com\/\" rel=\"external\"><em><strong>Race To Space<\/strong><\/em><\/a><\/span> site, subscribe there to be kept abreast of its progress.<\/p>\n<hr \/>\n<p><strong>We are going to run out of oil.<\/strong> Before that happens, we <em>MUST<\/em> have a replacement source of energy and feed stock for our civilization that has become so dependent on plastic. The time to act is <em>NOW!!<\/em> Please visit <a title=\"Space Power Now! - for human survival\" href=\"http:\/\/SpacePowerNow.org\" rel=\"external\">SpacePowerNow.org<\/a> to help build a solution.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve published my first contribution to the FOSS community on github: HumanMathTest implements a math test &#8216;bot deterrent PHP class for use in online forms. This class is used to create an image to be included in an online form that shows a simple math test the visitor must solve when submitting the form. The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,14],"tags":[],"class_list":["post-310","post","type-post","status-publish","format-standard","hentry","category-software-development","category-web-development"],"_links":{"self":[{"href":"https:\/\/wfredk.com\/blog\/wp-json\/wp\/v2\/posts\/310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wfredk.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wfredk.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wfredk.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wfredk.com\/blog\/wp-json\/wp\/v2\/comments?post=310"}],"version-history":[{"count":4,"href":"https:\/\/wfredk.com\/blog\/wp-json\/wp\/v2\/posts\/310\/revisions"}],"predecessor-version":[{"id":327,"href":"https:\/\/wfredk.com\/blog\/wp-json\/wp\/v2\/posts\/310\/revisions\/327"}],"wp:attachment":[{"href":"https:\/\/wfredk.com\/blog\/wp-json\/wp\/v2\/media?parent=310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wfredk.com\/blog\/wp-json\/wp\/v2\/categories?post=310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wfredk.com\/blog\/wp-json\/wp\/v2\/tags?post=310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}