{"id":751,"date":"2012-09-10T23:37:24","date_gmt":"2012-09-10T23:37:24","guid":{"rendered":"http:\/\/www.sitekickr.com\/blog\/?p=751"},"modified":"2012-09-10T23:37:24","modified_gmt":"2012-09-10T23:37:24","slug":"cgi-php-perl-python","status":"publish","type":"post","link":"https:\/\/www.sitekickr.com\/blog\/cgi-php-perl-python\/","title":{"rendered":"CGI &#8211; why o why!"},"content":{"rendered":"<p>I&#39;m willing to bet that if you&#39;re reading this, you&#39;re a somewhat seasoned web developer but by some requirement, you are forced to create a CGI script. This may be required to add a plugin to your E-commerce platform, or a request by a really old-school, out of practice web project manager!<\/p>\n<p>There are definitions all over the place for CGI, I&#39;m not going to duplicate those efforts. Instead, I&#39;d like to explain why the term CGI is still around.<\/p>\n<p>The short answer is, because a CGI can be considered a general term for a script, written in any language, that can be interpreted by your web server and passed along to an appropriate interpreter (PHP, Python, Perl, etc.)<\/p>\n<p>For instance, the following is a perfectly valid CGI file:<\/p>\n<p><code>#!\/usr\/bin\/php<br \/>\n\techo &#39;hi, this is a CGI script&#39;<br \/>\n\t<\/code><\/p>\n<p>Call it <em>hello.cgi<\/em>, and depending on your server setup, you&#39;ve got a page that can be served by your web server, and accessed at <code>http:\/\/www.blahblah.com\/hello.cgi<\/code><\/p>\n<p>As you&#39;ve probably guessed, the very first line of the CGI file tells the web server which interpreter to use to run the file.<\/p>\n<p>So, next your E-commerce platform asks for the path to a CGI file for a custom shipping plugin, you can be at ease, knowing that your language of choice will most likely fit the bill.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#39;m willing to bet that if you&#39;re reading this, you&#39;re a somewhat seasoned web developer but by some requirement, you are forced to create a&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"amp_status":""},"categories":[16,97,41],"tags":[203],"_links":{"self":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts\/751"}],"collection":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/comments?post=751"}],"version-history":[{"count":1,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts\/751\/revisions"}],"predecessor-version":[{"id":752,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts\/751\/revisions\/752"}],"wp:attachment":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/media?parent=751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/categories?post=751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/tags?post=751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}