{"id":23470,"date":"2026-05-24T13:59:17","date_gmt":"2026-05-24T11:59:17","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=23470"},"modified":"2026-05-24T13:59:19","modified_gmt":"2026-05-24T11:59:19","slug":"php-und-die-welt-des-world-wide-webs-projekt-1-teil-3","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2026\/05\/24\/php-und-die-welt-des-world-wide-webs-projekt-1-teil-3\/","title":{"rendered":"PHP und die Welt des World Wide Webs (Projekt 1 \/ Teil 3"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">PHP ist eine der Sprachen, mit denen man Seiten dynamisch machen kann. Es hat leicht erlernbare Sprachelemente und man kann es auf 2 verschiedene Arten verwenden. Entweder man bringt den Code in statische Seiten ein und generiert dynamische Elemente oder man generiert &#8222;statische&#8220; Seiten, die dann nur f\u00fcr den Zeitraum der Abfrage existieren. <br>Diese Verfahren kann man jederzeit mischen. Es w\u00e4re sogar m\u00f6glich diese Programme in der Shell ablaufen zu lassen, also  au\u00dferhalb des Webservers. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Installiert wird es mit <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Derzeit ist php8.4 aktuell und es wird als Modul zum Apache hinzugef\u00fcgt und auch gleich aktiv gemacht. <br>Wenn ich jetzt eine kleine Seite im Verzeichnis \/var\/www\/html mit dem Namen info.php erstelle. der inhalt w\u00e4re dann diese 3 Zeilen.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n&lt;?php\nphpinfo();\n?&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">dann bekomme ich im Browser eine \u00dcbersicht \u00fcber meine Installation. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"578\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/05\/KuR-SC-Auswahl_007-1024x578.jpg\" alt=\"\" class=\"wp-image-23471\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/05\/KuR-SC-Auswahl_007-1024x578.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/05\/KuR-SC-Auswahl_007-150x85.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/05\/KuR-SC-Auswahl_007-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/05\/KuR-SC-Auswahl_007-768x434.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/05\/KuR-SC-Auswahl_007.jpg 1061w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nat\u00fcrlich kann ich das Programm auch mit &#8222;php info.php &#8220; in der Shell starten und sehe nur den Text.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Willkommen in der Welt des Programmes. 3 Zeilen sind geschafft und wir wissen, dass unsere Installation funktioniert.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"23470\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"23470\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>PHP ist eine der Sprachen, mit denen man Seiten dynamisch machen kann. Es hat leicht erlernbare Sprachelemente und man kann es auf 2 verschiedene Arten verwenden. Entweder man bringt den Code in statische Seiten ein und generiert dynamische Elemente oder man generiert &#8222;statische&#8220; Seiten, die dann nur f\u00fcr den Zeitraum der Abfrage existieren. Diese Verfahren [&hellip;]<\/p>\n","protected":false},"author":52,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-23470","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/23470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=23470"}],"version-history":[{"count":3,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/23470\/revisions"}],"predecessor-version":[{"id":23565,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/23470\/revisions\/23565"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=23470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=23470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=23470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}