{"id":4314,"date":"2020-10-30T22:35:57","date_gmt":"2020-10-30T21:35:57","guid":{"rendered":"https:\/\/webhosting.de\/?p=4314"},"modified":"2025-02-19T18:34:31","modified_gmt":"2025-02-19T17:34:31","slug":"php","status":"publish","type":"post","link":"https:\/\/webhosting.de\/fr\/php\/","title":{"rendered":"PHP"},"content":{"rendered":"<p>PHP est l'abr\u00e9viation d'un langage de script appel\u00e9 Hypertext Preprocessor. Cette abr\u00e9viation PHP a longtemps signifi\u00e9 Personal Home Page Tool, ce qui \u00e9tait le cas \u00e0 l'origine. Le langage de script ou langage de programmation est une syntaxe s'appuyant sur Perl et C. Ces programmes sont indispensables pour la cr\u00e9ation de pages web dynamiques et d'applications web. Le pr\u00e9processeur hypertexte est ici un logiciel libre, la licence PHP \u00e9tant librement disponible et \u00e9galement diffus\u00e9e. Le PHP est indispensable par le support d'une large base de donn\u00e9es et l'int\u00e9gration de protocoles Internet et par la disponibilit\u00e9 de nombreuses biblioth\u00e8ques de fonctions. Le paquet de logiciels peut \u00e9galement \u00eatre inclus avec Squid.<\/p>\n<h3>Comment a-t-il \u00e9t\u00e9 distribu\u00e9 et comment fonctionne le PHP ?<\/h3>\n<p>Au d\u00e9but de l'ann\u00e9e 2013, PHP \u00e9tait utilis\u00e9 sur environ 244 millions de sites web. Le paquet de logiciels peut aussi \u00eatre inclus en plus avec Squid. En 2015, il y avait 82% des sites web qui \u00e9taient contr\u00f4l\u00e9s par ce langage de programmation. Le pr\u00e9processeur hypertexte est le langage de programmation le plus utilis\u00e9 sur la plan\u00e8te car il est facile \u00e0 apprendre et simple. Le programme peut cr\u00e9er des pages web et est en outre souvent d\u00e9j\u00e0 install\u00e9 chez les h\u00e9bergeurs. Avec le syst\u00e8me PHP, les codes peuvent fonctionner c\u00f4t\u00e9 serveur. Le code source ne peut donc pas \u00eatre envoy\u00e9 \u00e0 un navigateur web. Ce code source est envoy\u00e9 \u00e0 un interpr\u00e8te depuis le serveur web. L'interpr\u00e9teur v\u00e9rifie le code source et envoie ensuite la sortie au navigateur. Cette sortie de l'interpr\u00e9teur PHP appara\u00eetra \u00e9galement \u00e0 la fin. L'interpr\u00e9teur envoie un document HTML au navigateur, celui-ci peut \u00eatre g\u00e9n\u00e9r\u00e9 avec PHP avec d'autres fichiers comme des images et des fichiers PDF. Le syst\u00e8me qui ex\u00e9cute les applications web avec un fichier PHP est <a href=\"https:\/\/webhosting.de\/wp-content\/uploads\/2017\/02\/plesk_icons_php-einstellungen.png\"><img decoding=\"async\" class=\"size-full wp-image-2154 aligncenter\" src=\"https:\/\/webhosting.de\/wp-content\/uploads\/2017\/02\/plesk_icons_php-einstellungen.png\" alt=\"param\u00e8tres php\" width=\"224\" height=\"62\" \/><\/a>est absolument n\u00e9cessaire. Le syst\u00e8me doit imp\u00e9rativement pouvoir traiter les instructions contenues dans le fichier. Une interface (par ex. ISAPI ou CGI) aide l'interpr\u00e8te \u00e0 ex\u00e9cuter un d\u00e9mon serveur ou d'autres services serveur (par ex. Apache ou IIS). Un m\u00e9lange de syst\u00e8me d'exploitation, comme Linux, Windows et macOS, d'un serveur web comme Apache et de PHP est appel\u00e9 LAMP pour Linux. Pour Windows, le paquet est appel\u00e9 WAMP et pour macOs, il est appel\u00e9 MAMP. Dans le projet XAMPP, des paquets sont d\u00e9velopp\u00e9s pour rendre inoffensifs les paquets provenant d'Internet. Ces versions ne sont toutefois utilisables que dans des environnements de test. Hypertext Preprocessor ne fonctionne en fait que dans un environnement de serveur web, de m\u00eame que PHP est soumis au HTTP. Chaque page PHP appel\u00e9e contribue \u00e0 la charge du serveur web. De plus, l'interpr\u00e9teur travaille en plus avec le texte source. Ainsi, la charge augmente et la vitesse de r\u00e9action diminue. Pour que la vitesse de r\u00e9action soit \u00e0 nouveau am\u00e9lior\u00e9e, diff\u00e9rents caches de bytecode sont mis \u00e0 disposition. Les caches sont mis \u00e0 disposition pour stocker temporairement le programme et acc\u00e9l\u00e9rer l'acc\u00e8s lors du prochain appel du fichier. Le programme PHP permet d'\u00e9crire des scripts qui sont orient\u00e9s ligne de commande. Ceux-ci sont en outre ind\u00e9pendants de l'internaute. Un autre logiciel libre utilisant le code PHP s'appelle depuis 2010 Hip-Hop. Celui-ci a \u00e9t\u00e9 cr\u00e9\u00e9 apr\u00e8s plusieurs ann\u00e9es de recherche par <a href=\"https:\/\/webhosting.de\/fr\/facebook-likes-kaufen-der-koenigsweg-zur-kundenvertreibung\/\">Facebook<\/a> a \u00e9t\u00e9 d\u00e9velopp\u00e9 pour att\u00e9nuer la charge de 40% des serveurs de Facebook.<\/p>\n<h3>Sessions avec le programme PHP<\/h3>\n<p>Dans une requ\u00eate HTTP, seules des variables ordinaires sont disponibles. Et uniquement les fichiers enregistr\u00e9s. Dans le champ d'application de la requ\u00eate, apr\u00e8s l'appel de la page, c'est-\u00e0-dire \u00e0 la fin <a href=\"https:\/\/webhosting.de\/fr\/personenbezogene-daten-sozialen-netzwerken\/\">Donn\u00e9es<\/a>ou encore la m\u00e9moire est effac\u00e9e. Lorsqu'un utilisateur envoie une <a href=\"https:\/\/webhosting.de\/fr\/eine-eigene-webseite-fuer-ihr-unternehmen-ja-oder-nein\/\">site web<\/a> visit\u00e9s, cela repr\u00e9sente souvent plusieurs pages vues. Pour remplir un panier d'achat dans une boutique en ligne, on utilise des variables de session (session scope). PHP stocke des donn\u00e9es pour toutes les sessions, c'est une configuration standard (application scope). Celles-ci sont stock\u00e9es sur le serveur par d'autres moyens afin de ne pas perdre le contenu du panier virtuel \u00e0 chaque nouvelle page appel\u00e9e.<\/p>","protected":false},"excerpt":{"rendered":"<p>PHP ist die Abk\u00fcrzung f\u00fcr eine Skriptsprache namens Hypertext Preprocessor. Diese Abk\u00fcrzung PHP stand lange f\u00fcr Personal Home Page Tool, diese ist urspr\u00fcnglich so gewesen. Die Skriptsprache oder auch Programmiersprache ist Syntax angelehnt an Perl und C. Diese Programme sind f\u00fcr die Erstellung von dynamischen Webseiten und Webanwendungen unverzichtbar. Der Hypertext Preprocessor ist hierbei als [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":619,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_crdt_document":"","inline_featured_image":false,"footnotes":""},"categories":[732],"tags":[212],"class_list":["post-4314","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lexikon","tag-php"],"acf":[],"_wp_attached_file":null,"_wp_attachment_metadata":null,"litespeed-optimize-size":null,"litespeed-optimize-set":null,"_elementor_source_image_hash":null,"_wp_attachment_image_alt":null,"stockpack_author_name":null,"stockpack_author_url":null,"stockpack_provider":null,"stockpack_image_url":null,"stockpack_license":null,"stockpack_license_url":null,"stockpack_modification":null,"color":null,"original_id":null,"original_url":null,"original_link":null,"unsplash_location":null,"unsplash_sponsor":null,"unsplash_exif":null,"unsplash_attachment_metadata":null,"_elementor_is_screenshot":null,"surfer_file_name":null,"surfer_file_original_url":null,"envato_tk_source_kit":null,"envato_tk_source_index":null,"envato_tk_manifest":null,"envato_tk_folder_name":null,"envato_tk_builder":null,"envato_elements_download_event":null,"_menu_item_type":null,"_menu_item_menu_item_parent":null,"_menu_item_object_id":null,"_menu_item_object":null,"_menu_item_target":null,"_menu_item_classes":null,"_menu_item_xfn":null,"_menu_item_url":null,"_trp_menu_languages":null,"rank_math_primary_category":"0","rank_math_title":null,"inline_featured_image":null,"_yoast_wpseo_primary_category":null,"rank_math_schema_blogposting":null,"rank_math_schema_videoobject":null,"_oembed_049c719bc4a9f89deaead66a7da9fddc":null,"_oembed_time_049c719bc4a9f89deaead66a7da9fddc":null,"_yoast_wpseo_focuskw":"","_yoast_wpseo_linkdex":null,"_oembed_27e3473bf8bec795fbeb3a9d38489348":null,"_oembed_c3b0f6959478faf92a1f343d8f96b19e":null,"_trp_translated_slug_en_us":null,"_wp_desired_post_slug":null,"_yoast_wpseo_title":null,"tldname":null,"tldpreis":null,"tldrubrik":null,"tldpolicylink":null,"tldsize":null,"tldregistrierungsdauer":null,"tldtransfer":null,"tldwhoisprivacy":null,"tldregistrarchange":null,"tldregistrantchange":null,"tldwhoisupdate":null,"tldnameserverupdate":null,"tlddeletesofort":null,"tlddeleteexpire":null,"tldumlaute":null,"tldrestore":null,"tldsubcategory":null,"tldbildname":null,"tldbildurl":null,"tldclean":null,"tldcategory":null,"tldpolicy":null,"tldbesonderheiten":null,"tld_bedeutung":null,"_oembed_d167040d816d8f94c072940c8009f5f8":null,"_oembed_b0a0fa59ef14f8870da2c63f2027d064":null,"_oembed_4792fa4dfb2a8f09ab950a73b7f313ba":null,"_oembed_33ceb1fe54a8ab775d9410abf699878d":null,"_oembed_fd7014d14d919b45ec004937c0db9335":null,"_oembed_21a029d076783ec3e8042698c351bd7e":null,"_oembed_be5ea8a0c7b18e658f08cc571a909452":null,"_oembed_a9ca7a298b19f9b48ec5914e010294d2":null,"_oembed_f8db6b27d08a2bb1f920e7647808899a":null,"_oembed_168ebde5096e77d8a89326519af9e022":null,"_oembed_cdb76f1b345b42743edfe25481b6f98f":null,"_oembed_87b0613611ae54e86e8864265404b0a1":null,"_oembed_27aa0e5cf3f1bb4bc416a4641a5ac273":null,"_oembed_time_27aa0e5cf3f1bb4bc416a4641a5ac273":null,"_tldname":null,"_tldclean":null,"_tldpreis":null,"_tldcategory":null,"_tldsubcategory":null,"_tldpolicy":null,"_tldpolicylink":null,"_tldsize":null,"_tldregistrierungsdauer":null,"_tldtransfer":null,"_tldwhoisprivacy":null,"_tldregistrarchange":null,"_tldregistrantchange":null,"_tldwhoisupdate":null,"_tldnameserverupdate":null,"_tlddeletesofort":null,"_tlddeleteexpire":null,"_tldumlaute":null,"_tldrestore":null,"_tldbildname":null,"_tldbildurl":null,"_tld_bedeutung":null,"_tldbesonderheiten":null,"_oembed_ad96e4112edb9f8ffa35731d4098bc6b":null,"_oembed_8357e2b8a2575c74ed5978f262a10126":null,"_oembed_3d5fea5103dd0d22ec5d6a33eff7f863":null,"_eael_widget_elements":null,"_oembed_0d8a206f09633e3d62b95a15a4dd0487":null,"_oembed_time_0d8a206f09633e3d62b95a15a4dd0487":null,"_aioseo_description":null,"_eb_attr":null,"_eb_data_table":null,"_oembed_819a879e7da16dd629cfd15a97334c8a":null,"_oembed_time_819a879e7da16dd629cfd15a97334c8a":null,"_acf_changed":null,"_wpcode_auto_insert":null,"_edit_last":"1","_edit_lock":"1739986347:1","_oembed_e7b913c6c84084ed9702cb4feb012ddd":null,"_oembed_bfde9e10f59a17b85fc8917fa7edf782":null,"_oembed_time_bfde9e10f59a17b85fc8917fa7edf782":null,"_oembed_03514b67990db061d7c4672de26dc514":null,"_oembed_time_03514b67990db061d7c4672de26dc514":null,"rank_math_news_sitemap_robots":"index","rank_math_robots":["index"],"_eael_post_view_count":"10521","_trp_automatically_translated_slug_ru_ru":null,"_trp_automatically_translated_slug_et":null,"_trp_automatically_translated_slug_lv":null,"_trp_automatically_translated_slug_fr_fr":null,"_trp_automatically_translated_slug_en_us":null,"_wp_old_slug":null,"_trp_automatically_translated_slug_da_dk":null,"_trp_automatically_translated_slug_pl_pl":null,"_trp_automatically_translated_slug_es_es":null,"_trp_automatically_translated_slug_hu_hu":null,"_trp_automatically_translated_slug_fi":null,"_trp_automatically_translated_slug_ja":null,"_trp_automatically_translated_slug_lt_lt":null,"_elementor_edit_mode":null,"_elementor_template_type":null,"_elementor_version":null,"_elementor_pro_version":null,"_wp_page_template":"default","_elementor_page_settings":null,"_elementor_data":null,"_elementor_css":null,"_elementor_conditions":null,"_happyaddons_elements_cache":null,"_oembed_75446120c39305f0da0ccd147f6de9cb":null,"_oembed_time_75446120c39305f0da0ccd147f6de9cb":null,"_oembed_3efb2c3e76a18143e7207993a2a6939a":null,"_oembed_time_3efb2c3e76a18143e7207993a2a6939a":null,"_oembed_59808117857ddf57e478a31d79f76e4d":null,"_oembed_time_59808117857ddf57e478a31d79f76e4d":null,"_oembed_965c5b49aa8d22ce37dfb3bde0268600":null,"_oembed_time_965c5b49aa8d22ce37dfb3bde0268600":null,"_oembed_81002f7ee3604f645db4ebcfd1912acf":null,"_oembed_time_81002f7ee3604f645db4ebcfd1912acf":null,"_elementor_screenshot":null,"_oembed_7ea3429961cf98fa85da9747683af827":null,"_oembed_time_7ea3429961cf98fa85da9747683af827":null,"_elementor_controls_usage":null,"_elementor_page_assets":[],"_elementor_screenshot_failed":null,"theplus_transient_widgets":[],"_eael_custom_js":null,"_wp_old_date":null,"_trp_automatically_translated_slug_it_it":null,"_trp_automatically_translated_slug_pt_pt":null,"_trp_automatically_translated_slug_zh_cn":null,"_trp_automatically_translated_slug_nl_nl":null,"_trp_automatically_translated_slug_pt_br":null,"_trp_automatically_translated_slug_sv_se":null,"rank_math_analytic_object_id":"801","rank_math_internal_links_processed":null,"_trp_automatically_translated_slug_ro_ro":null,"_trp_automatically_translated_slug_sk_sk":null,"_trp_automatically_translated_slug_bg_bg":null,"_trp_automatically_translated_slug_sl_si":null,"litespeed_vpi_list":["webhostinglogo.png"],"litespeed_vpi_list_mobile":["webhostinglogo.png"],"rank_math_seo_score":"12","rank_math_contentai_score":{"keywords":"74.51","wordCount":"0","linkCount":"0","headingCount":"0","mediaCount":"0"},"ilj_limitincominglinks":"","ilj_maxincominglinks":"1","ilj_limitoutgoinglinks":"","ilj_maxoutgoinglinks":"1","ilj_limitlinksperparagraph":"","ilj_linksperparagraph":"1","ilj_blacklistdefinition":[],"ilj_linkdefinition":["php"],"_eb_reusable_block_ids":[],"rank_math_focus_keyword":null,"rank_math_og_content_image":{"check":"31180120b6f8403fc854285e1e620c10","images":[1100]},"_yoast_wpseo_metadesc":"","_yoast_wpseo_content_score":null,"_yoast_wpseo_focuskeywords":null,"_yoast_wpseo_keywordsynonyms":null,"_yoast_wpseo_estimated-reading-time-minutes":null,"rank_math_description":null,"surfer_last_post_update":null,"surfer_last_post_update_direction":null,"surfer_keywords":null,"surfer_location":null,"surfer_draft_id":null,"surfer_permalink_hash":null,"surfer_scrape_ready":null,"_thumbnail_id":"619","footnotes":null,"_links":{"self":[{"href":"https:\/\/webhosting.de\/fr\/wp-json\/wp\/v2\/posts\/4314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhosting.de\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhosting.de\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhosting.de\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webhosting.de\/fr\/wp-json\/wp\/v2\/comments?post=4314"}],"version-history":[{"count":1,"href":"https:\/\/webhosting.de\/fr\/wp-json\/wp\/v2\/posts\/4314\/revisions"}],"predecessor-version":[{"id":8427,"href":"https:\/\/webhosting.de\/fr\/wp-json\/wp\/v2\/posts\/4314\/revisions\/8427"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhosting.de\/fr\/wp-json\/wp\/v2\/media\/619"}],"wp:attachment":[{"href":"https:\/\/webhosting.de\/fr\/wp-json\/wp\/v2\/media?parent=4314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhosting.de\/fr\/wp-json\/wp\/v2\/categories?post=4314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhosting.de\/fr\/wp-json\/wp\/v2\/tags?post=4314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}