{"id":69893,"date":"2022-07-12T01:24:52","date_gmt":"2022-07-11T23:24:52","guid":{"rendered":"https:\/\/rmarketingdigital.com\/wiki\/php-2\/"},"modified":"2024-10-28T22:49:25","modified_gmt":"2024-10-28T21:49:25","slug":"php","status":"publish","type":"glossary","link":"https:\/\/rmarketingdigital.com\/en\/wiki\/php\/","title":{"rendered":"PHP"},"content":{"rendered":"<p><\/p>\n<div id=\"mw-content-text\" lang=\"es\" dir=\"ltr\" class=\"mw-content-ltr\">\n<p>The <b>PHP<\/b> is an open source, server-side scripting language with built-in HTML programming used to create dynamic web pages. The advantages of PHP are its <b>flexibility and its high compatibility<\/b> with other databases. At the same time, PHP is considered an easy language to learn.\n<\/p>\n<h2>\n<span class=\"mw-headline\" id=\"Funciones_de_PHP\">PHP functions<\/span><br \/>\n<\/h2>\n<p>PHP functions relate to server-side scripts. PHP can perform any task that any CGI (Common Gateway Interface) program can do and handles the exchange of data between the server and the software. In this way, <b>PHP can collect data or create dynamic content websites.<\/b>\n<\/p>\n<p>Three main functions distinguish PHP in particular:\n<\/p>\n<ul>\n<li> <b>Server-side programming<\/b>- This requires three components, which are a PHP parser, a web browser, and a web server. The latter is connected with a PHP installation. The web browser is used to access the PHP program. The browser displays web pages that are stored on the server and caused with PHP. Server-side scheduling is ideal for testing websites before publishing to the web.<\/li>\n<li> <b>Command line programming<\/b>: PHP scripts can be created without a browser or server. For this case, you will only need a PHP parser. These scripts are suitable for regular tasks carried out on a website.<\/li>\n<li> <b>Write desktop apps<\/b>- This feature is not used as often as web page programming. However, PHP is suitable for the development of desktop apps due to its complexity, which can also be used through different platforms.<\/li>\n<\/ul>\n<p>Example of a PHP script embedded in an HTML document:\n<\/p>\n<pre>\n &lt;!DOCTYPE HTML PUBLIC &quot;-\/\/W3C\/DTD HTML 4.01 Transitional\/\/EN\n &quot;http:\/\/www.w3.org\/TR\/html4\/loose.dtd&quot;&gt;\n &lt;html&gt;\n     &lt;head&gt;\n         &lt;title&gt;Page with PHP script &lt;\/title&gt;\n     &lt;\/head&gt;\n     &lt;body&gt;\n         &lt;?php\n         echo &quot;This is a PHP script&quot;;\n        &nbsp;?&gt;\n     &lt;\/body&gt;\n &lt;\/html&gt;\n<\/pre>\n<h2>\n<span class=\"mw-headline\" id=\"Beneficios_de_PHP\">PHP benefits<\/span><br \/>\n<\/h2>\n<p>The PHP scripting language can be used with all popular operating systems. At the same time, PHP is compatible with most web servers like Apache. The benefits for the user are:\n<\/p>\n<ul>\n<li> PHP can be used with any virtual operating system and any type of server.<\/li>\n<li> Apps can be programmed focused on the process or the project.<\/li>\n<li> HTML, images, PDFs, or flash files can be dynamically generated with PHP.<\/li>\n<li> PHP supports a large number of different databases, so this scripting language is ideal for creating database-based websites.<\/li>\n<li> PHP offers full support for server communication with other protocols.<\/li>\n<\/ul>\n<p>One small downside when programming with PHP is that it generates URLs that are usually cryptic to users and provide fewer keywords for search engines. But with a simple mod_rewrite the URLs generated in PHP can be converted to SEF URLs (Search Engine Friendly URLs).\n<\/p>\n<pre>\nwww.samplewebsite.com\/index.php?id=fotos&amp;foto=12456\n<\/pre>\n<p>becomes, for example\n<\/p>\n<pre>\nwww. samplewebsite.com \/vacation-at-the-Grand-Canyon.html\n<\/pre>\n<h2>\n<span class=\"mw-headline\" id=\"Beneficios_para_el_SEO\">SEO benefits<\/span><br \/>\n<\/h2>\n<p>PHP allows webmasters to deliver content without placing it directly in the source code since the content is parsed by a PHP script. Unlike JavaScript, the code runs on the server and is subsequently delivered to the client. From this dynamic, content can be deliberately hidden from crawlers. Consequently, the forms of the contests or surveys on customer satisfaction can be displayed without prejudice or diminish the content and its optimization in any way.\n<\/p>\n<p>Just addition <b>it is possible to review all HTML items by means of PHP<\/b>. In that case, the original data would be completely hidden. This method would only be beneficial if the content was not used for indexing.\n<\/p>\n<p><!-- \nNewPP limit report\nCached time: 20200502212906\nCache expiry: 86400\nDynamic content: false\nCPU time usage: 0.004 seconds\nReal time usage: 0.005 seconds\nPreprocessor visited node count: 38\/1000000\nPreprocessor generated node count: 76\/1000000\nPost\u2010expand include size: 0\/2097152 bytes\nTemplate argument size: 0\/2097152 bytes\nHighest expansion depth: 2\/40\nExpensive parser function count: 0\/100\n--><\/p>\n<p><!-- \nTransclusion expansion time report (%,ms,calls,template)\n100.00%    0.000      1 - -total\n--><\/p>\n<p><!-- Saved in parser cache with key es_:stable-pcache:idhash:425-0!*!0!!*!*!* and timestamp 20200502212906 and revision id 2414\n -->\n<\/div>","protected":false},"excerpt":{"rendered":"<p>El PHP es un lenguaje de scripting de c\u00f3digo abierto, del lado del servidor, con programaci\u00f3n HTML integrada que se usa para crear p\u00e1ginas web din\u00e1micas. Las ventajas de PHP&#8230;<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"template":"","glossary-cat":[],"class_list":["post-69893","glossary","type-glossary","status-publish"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v28.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>PHP - R Marketing Digital<\/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:\/\/rmarketingdigital.com\/en\/wiki\/php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP\" \/>\n<meta property=\"og:description\" content=\"El PHP es un lenguaje de scripting de c\u00f3digo abierto, del lado del servidor, con programaci\u00f3n HTML integrada que se usa para crear p\u00e1ginas web din\u00e1micas. Las ventajas de PHP...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rmarketingdigital.com\/en\/wiki\/php\/\" \/>\n<meta property=\"og:site_name\" content=\"R Marketing Digital\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-28T21:49:25+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/wiki\\\/php\\\/\",\"url\":\"https:\\\/\\\/rmarketingdigital.com\\\/wiki\\\/php\\\/\",\"name\":\"PHP - R Marketing Digital\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/#website\"},\"datePublished\":\"2022-07-11T23:24:52+00:00\",\"dateModified\":\"2024-10-28T21:49:25+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rmarketingdigital.com\\\/wiki\\\/php\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/#website\",\"url\":\"https:\\\/\\\/rmarketingdigital.com\\\/\",\"name\":\"R Marketing Digital\",\"description\":\"Agencia SEO | Publicidad redes sociales | Community Management\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rmarketingdigital.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"PHP - R Marketing Digital","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:\/\/rmarketingdigital.com\/en\/wiki\/php\/","og_locale":"en_US","og_type":"article","og_title":"PHP","og_description":"El PHP es un lenguaje de scripting de c\u00f3digo abierto, del lado del servidor, con programaci\u00f3n HTML integrada que se usa para crear p\u00e1ginas web din\u00e1micas. Las ventajas de PHP...","og_url":"https:\/\/rmarketingdigital.com\/en\/wiki\/php\/","og_site_name":"R Marketing Digital","article_modified_time":"2024-10-28T21:49:25+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/rmarketingdigital.com\/wiki\/php\/","url":"https:\/\/rmarketingdigital.com\/wiki\/php\/","name":"PHP - R Marketing Digital","isPartOf":{"@id":"https:\/\/rmarketingdigital.com\/#website"},"datePublished":"2022-07-11T23:24:52+00:00","dateModified":"2024-10-28T21:49:25+00:00","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rmarketingdigital.com\/wiki\/php\/"]}]},{"@type":"WebSite","@id":"https:\/\/rmarketingdigital.com\/#website","url":"https:\/\/rmarketingdigital.com\/","name":"R Digital Marketing","description":"SEO Agency | Advertising social networks | Community Management","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rmarketingdigital.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/glossary\/69893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/glossary"}],"about":[{"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/types\/glossary"}],"author":[{"embeddable":true,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":0,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/glossary\/69893\/revisions"}],"wp:attachment":[{"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/media?parent=69893"}],"wp:term":[{"taxonomy":"glossary-cat","embeddable":true,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/glossary-cat?post=69893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}