{"id":129,"date":"2003-02-15T19:10:01","date_gmt":"2003-02-15T19:10:01","guid":{"rendered":"http:\/\/www.guyweb.co.uk\/?p=129"},"modified":"2003-02-15T19:10:01","modified_gmt":"2003-02-15T19:10:01","slug":"the-easy-way","status":"publish","type":"post","link":"https:\/\/guycarberry.co.uk\/guyweb\/2003\/02\/15\/the-easy-way\/","title":{"rendered":"The easy way"},"content":{"rendered":"<p>I couldn&#8217;t do what I wanted with PHP. So I&#8217;ve switched to ASP. Dean Allen suggested a method of getting my PHP includes to use virtual paths &#8211; use $__SERVER[&quot;DOCUMENT_ROOT&quot;];<\/p>\n<p>All servers doing what they&#8217;re supposed to do, this would have been fine and dandy. Unfortunately, this server doesn&#8217;t do what it&#8217;s supposed to do, as we have started to establish over the last month.<\/p>\n<p>So we&#8217;re back to the Microsoft server side language, ASP. Although it&#8217;s a fairly robust language that capably handles session variables and is used by many UK banks (see: <a href=\"http:\/\/www.if.com\">IF<\/a>), it&#8217;s not open source and wont run on anything but a Windows server. PHP can run on Unix or Windows. I&#8217;m getting used to crossing bridges when I come to them and I guess, when (if) I move to a Unix server I will change to PHP. At this point, the whole $_SERVER[&#8216;DOCUMENT_ROOT&#8217;]; thing will work.<\/p>\n<p>One bonus with ASP is that it&#8217;s easy for a non-programmer like me to get my head around. It&#8217;s an end to a means. I need server side scripting because I need to save time developing this personal site. Now all I need to do is understand how ASP interfaces with mySQL!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I couldn&#8217;t do what I wanted with PHP. So I&#8217;ve switched to ASP. Dean Allen suggested a method of getting my PHP includes to use virtual paths &#8211; use $__SERVER[&quot;DOCUMENT_ROOT&quot;]; All servers doing what they&#8217;re supposed to do, this would have been fine and dandy. Unfortunately, this server doesn&#8217;t do what it&#8217;s supposed to do, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[40],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-life","tag-life"],"_links":{"self":[{"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/posts\/129"}],"collection":[{"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":0,"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"wp:attachment":[{"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}