{"id":929,"date":"2013-03-13T14:29:09","date_gmt":"2013-03-13T14:29:09","guid":{"rendered":"http:\/\/www.withinweb.com\/info\/?p=929"},"modified":"2014-10-02T15:48:10","modified_gmt":"2014-10-02T15:48:10","slug":"using-different-php-versions-on-your-web-site","status":"publish","type":"post","link":"https:\/\/www.withinweb.com\/info\/using-different-php-versions-on-your-web-site\/","title":{"rendered":"Using different PHP versions on your web site"},"content":{"rendered":"<p>Sometimes it may be necessary to use a different version of PHP on a web folder rather than the default.\u00a0 This may be when you have an application that only works on later versions of PHP as it contains functions that only work on later versions of PHP.<\/p>\n<p>On some web servers this can be done using AddHandler in an htaccess file in the folder that you want a different version of PHP in.<\/p>\n<p>So for version PHP 5.1<\/p>\n<p>AddHandler application\/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml<br \/>\nAddType application\/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml<\/p>\n<p>You should check with your hosting to make sure that this will work of course.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes it may be necessary to use a different version of PHP on a web folder rather than the default.\u00a0 This may be when you have an application that only works on later versions of PHP as it contains functions<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"https:\/\/www.withinweb.com\/info\/using-different-php-versions-on-your-web-site\/\">Read more <span class=\"screen-reader-text\">Using different PHP versions on your web site<\/span><span class=\"meta-nav\"> &#8250;<\/span><\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-929","post","type-post","status-publish","format-standard","hentry","category-general-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using different PHP versions on your web site - PHP Web Applications<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.withinweb.com\/info\/using-different-php-versions-on-your-web-site\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using different PHP versions on your web site - PHP Web Applications\" \/>\n<meta property=\"og:description\" content=\"Sometimes it may be necessary to use a different version of PHP on a web folder rather than the default.\u00a0 This may be when you have an application that only works on later versions of PHP as it contains functions&hellip;Read more Using different PHP versions on your web site &#8250;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.withinweb.com\/info\/using-different-php-versions-on-your-web-site\/\" \/>\n<meta property=\"og:site_name\" content=\"PHP Web Applications\" \/>\n<meta property=\"article:published_time\" content=\"2013-03-13T14:29:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-10-02T15:48:10+00:00\" \/>\n<meta name=\"author\" content=\"paulv\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"paulv\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/using-different-php-versions-on-your-web-site\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/using-different-php-versions-on-your-web-site\\\/\"},\"author\":{\"name\":\"paulv\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\"},\"headline\":\"Using different PHP versions on your web site\",\"datePublished\":\"2013-03-13T14:29:09+00:00\",\"dateModified\":\"2014-10-02T15:48:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/using-different-php-versions-on-your-web-site\\\/\"},\"wordCount\":119,\"commentCount\":0,\"articleSection\":[\"General PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/using-different-php-versions-on-your-web-site\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/using-different-php-versions-on-your-web-site\\\/\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/using-different-php-versions-on-your-web-site\\\/\",\"name\":\"Using different PHP versions on your web site - PHP Web Applications\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\"},\"datePublished\":\"2013-03-13T14:29:09+00:00\",\"dateModified\":\"2014-10-02T15:48:10+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/using-different-php-versions-on-your-web-site\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/using-different-php-versions-on-your-web-site\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/using-different-php-versions-on-your-web-site\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using different PHP versions on your web site\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\",\"name\":\"PHP Web Applications\",\"description\":\"Information and support for products of WithinWeb.com\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\",\"name\":\"paulv\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/author\\\/paulv\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using different PHP versions on your web site - PHP Web Applications","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.withinweb.com\/info\/using-different-php-versions-on-your-web-site\/","og_locale":"en_US","og_type":"article","og_title":"Using different PHP versions on your web site - PHP Web Applications","og_description":"Sometimes it may be necessary to use a different version of PHP on a web folder rather than the default.\u00a0 This may be when you have an application that only works on later versions of PHP as it contains functions&hellip;Read more Using different PHP versions on your web site &#8250;","og_url":"https:\/\/www.withinweb.com\/info\/using-different-php-versions-on-your-web-site\/","og_site_name":"PHP Web Applications","article_published_time":"2013-03-13T14:29:09+00:00","article_modified_time":"2014-10-02T15:48:10+00:00","author":"paulv","twitter_card":"summary_large_image","twitter_misc":{"Written by":"paulv","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.withinweb.com\/info\/using-different-php-versions-on-your-web-site\/#article","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/using-different-php-versions-on-your-web-site\/"},"author":{"name":"paulv","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c"},"headline":"Using different PHP versions on your web site","datePublished":"2013-03-13T14:29:09+00:00","dateModified":"2014-10-02T15:48:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.withinweb.com\/info\/using-different-php-versions-on-your-web-site\/"},"wordCount":119,"commentCount":0,"articleSection":["General PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.withinweb.com\/info\/using-different-php-versions-on-your-web-site\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.withinweb.com\/info\/using-different-php-versions-on-your-web-site\/","url":"https:\/\/www.withinweb.com\/info\/using-different-php-versions-on-your-web-site\/","name":"Using different PHP versions on your web site - PHP Web Applications","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/#website"},"datePublished":"2013-03-13T14:29:09+00:00","dateModified":"2014-10-02T15:48:10+00:00","author":{"@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c"},"breadcrumb":{"@id":"https:\/\/www.withinweb.com\/info\/using-different-php-versions-on-your-web-site\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.withinweb.com\/info\/using-different-php-versions-on-your-web-site\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.withinweb.com\/info\/using-different-php-versions-on-your-web-site\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.withinweb.com\/info\/"},{"@type":"ListItem","position":2,"name":"Using different PHP versions on your web site"}]},{"@type":"WebSite","@id":"https:\/\/www.withinweb.com\/info\/#website","url":"https:\/\/www.withinweb.com\/info\/","name":"PHP Web Applications","description":"Information and support for products of WithinWeb.com","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.withinweb.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c","name":"paulv","url":"https:\/\/www.withinweb.com\/info\/author\/paulv\/"}]}},"_links":{"self":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/comments?post=929"}],"version-history":[{"count":2,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/929\/revisions"}],"predecessor-version":[{"id":1007,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/929\/revisions\/1007"}],"wp:attachment":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/media?parent=929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/categories?post=929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/tags?post=929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}