{"version":"1.0","provider_name":"123 Reg Blog: Small business tips, insight and advice","provider_url":"https:\/\/www.123-reg.co.uk\/blog","author_name":"123 Reg","author_url":"https:\/\/www.123-reg.co.uk\/blog\/author\/123-reg\/","title":"PHP: What is PHP? | 123 Reg Blog","type":"rich","width":600,"height":338,"html":"<blockquote class=\"wp-embedded-content\" data-secret=\"K7oBsdgJug\"><a href=\"https:\/\/www.123-reg.co.uk\/blog\/infographics\/php-what-is-php\/\">PHP: What is PHP?<\/a><\/blockquote><iframe sandbox=\"allow-scripts\" security=\"restricted\" src=\"https:\/\/www.123-reg.co.uk\/blog\/infographics\/php-what-is-php\/embed\/#?secret=K7oBsdgJug\" width=\"600\" height=\"338\" title=\"&#8220;PHP: What is PHP?&#8221; &#8212; 123 Reg Blog: Small business tips, insight and advice\" data-secret=\"K7oBsdgJug\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" class=\"wp-embedded-content\"><\/iframe><script>\n\/*! This file is auto-generated *\/\n!function(d,l){\"use strict\";l.querySelector&&d.addEventListener&&\"undefined\"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!\/[^a-zA-Z0-9]\/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret=\"'+t.secret+'\"]'),o=l.querySelectorAll('blockquote[data-secret=\"'+t.secret+'\"]'),c=new RegExp(\"^https?:$\",\"i\"),i=0;i<o.length;i++)o[i].style.display=\"none\";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute(\"style\"),\"height\"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):\"link\"===t.message&&(r=new URL(s.getAttribute(\"src\")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener(\"message\",d.wp.receiveEmbedMessage,!1),l.addEventListener(\"DOMContentLoaded\",function(){for(var e,t,s=l.querySelectorAll(\"iframe.wp-embedded-content\"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute(\"data-secret\"))||(t=Math.random().toString(36).substring(2,12),e.src+=\"#?secret=\"+t,e.setAttribute(\"data-secret\",t)),e.contentWindow.postMessage({message:\"ready\",secret:t},\"*\")},!1)))}(window,document);\n\/\/# sourceURL=https:\/\/www.123-reg.co.uk\/blog\/wp-includes\/js\/wp-embed.min.js\n<\/script>\n","thumbnail_url":"https:\/\/www.123-reg.co.uk\/blog\/wp-content\/uploads\/2017\/12\/Content-Creation-1440x460-1-scaled.jpg","thumbnail_width":2560,"thumbnail_height":818,"description":"PHP is a programming language that powers many of the world\u2019s websites, including those built with WordPress. It helps create the pages people see when they visit a website and can power many kinds of online tools and services. \u00a0 What is PHP? PHP stands for \u201cPHP: Hypertext Preprocessor\u201d. When you visit a page that uses PHP, your browser asks the web server for the page. The server runs the PHP code, which can look up a product\u2019s price, fetch the latest blog posts or work out the current year. It then sends the finished page to your browser as HTML. Here\u2019s a website heading written two ways, for example: HTML &lt;h1&gt;Events in 2026&lt;\/h1&gt; Here, the heading will only show Events in 2026 until you edit it. HTML with PHP &lt;h1&gt;Events in &lt;?= date('Y') ?&gt;&lt;\/h1&gt; In this case, PHP has been used to fill in the current year when the server builds the page, so the heading automatically updates to Events in 2027 when the year changes. \u00a0 What is PHP used for? PHP is used across the web for things like displaying content, processing contact forms, handling logins, managing online shops, and connecting websites to databases. It is used by many websites and platforms. WordPress is one particularly well-known example. If your site uses WordPress, PHP helps display posts and pages, process forms, and let people sign in. If you run a shop with WooCommerce, it also helps display products and process orders. How PHP compares with other web languages Language What it does Where it\u2019s used Example HTML Gives a web page its structure. Browser Marks up the product name, image and price. CSS Controls how a web page looks. Browser Sets the button colour and adjusts the layout for phones. JavaScript Makes pages interactive and can also run on the server. Browser and server Updates the basket total without reloading the page. PHP Builds pages and handles requests on the server. Server Fetches product details from the database and builds the page in a Woo shop. Python Powers web apps and processes data on the server. Server Finds matching products when someone searches a shop built with Python. \u00a0 Why does my PHP version matter? Supported versions of PHP continue to receive security fixes. If your site runs on an older version that is no longer supported, it may be more vulnerable to security problems, so it is worth updating. Before changing the version, check that your website software, theme, and plugins work with the version you plan to use. It is also sensible to take a full backup first, and make the change during a quieter time so any issue can be spotted quickly. WordPress currently recommends PHP 8.3 or newer, while noting that older versions may still run but can expose a site to security risks. PHP 8.2 and 8.3 are still receiving security updates, while versions such as PHP 8.1 and earlier have reached end of life. \u00a0 How do I check my PHP version in WordPress? In your WordPress dashboard, go to Tools \u2192 Site Health \u2192 Info \u2192 Server and look for PHP version. If you use 123 Reg Web Hosting with cPanel, follow our guide to check or change your PHP version. \u00a0 Note: Don\u2019t worry, if you\u2019re using a smart web building tool like Website Builder or Managed Hosting for WordPress, you\u2019ll probably never need to deal with coding languages like PHP directly. It all goes on in the background so you can focus on building your site and running your business. For more, check out: What is Javascript?"}