{"id":7498,"date":"2020-01-18T10:07:05","date_gmt":"2020-01-18T10:07:05","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=7498"},"modified":"2021-11-13T10:06:32","modified_gmt":"2021-11-13T10:06:32","slug":"php-tutorial-for-beginners-2","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/php-tutorial-for-beginners-2\/","title":{"rendered":"PHP Tutorial for Beginners"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">What is PHP?<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>It is an open-source general-purpose scripting language that is especially suited for web development.<\/li><li>Code executed on the server.<\/li><li>It can be embedded in HTML.<\/li><li>You should learn HTML before you start learning PHP.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">What can PHP do?<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Generate dynamic page content<\/li><li>Create, Open, read, write, delete and close files on the server<\/li><li>Collect Form Data<\/li><li>Send &amp; Receive cookies<\/li><li>Interact with Different Databases (Eg: MySQL, PostgreSQL, Oracle, MongoDB, etc.)<\/li><li>Encrypt Data<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Why use PHP?<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>It&#8217;s Free<\/li><li>Cross-Platform (Linux, Windows, OSX)<\/li><li>Compatible with Most Servers (Apache, IIS)<\/li><li>Compatible with Many Databases (MySQL, PostgreSQL, MongoDB)<\/li><li>Large Community<\/li><\/ul>\n\n\n\n<p><strong>Sample Program embed in Html<\/strong> :<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/cmschandan\/3266976dcdcbda67a65221fb903debd4.js\"><\/script>\n\n\n\n<p>These are the supported Databases in PHP :<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>MySQL<\/li><li>PostgreSQL<\/li><li>Oracle<\/li><li>Sybase<\/li><li>Informix<\/li><li>MS SQL Server<\/li><li>MongoDB &#8211; MongoDB Driver<\/li><li>MaxDB<\/li><li>SQLite \/ SQLite3<\/li><li>dBase<\/li><\/ul>\n\n\n\n<p><strong>Supported Protocols &amp; Wrappers<\/strong> :<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>File:\/\/<\/li><li>Http:\/\/<\/li><li>ftp:\/\/<\/li><li>Php:\/\/<\/li><li>Zlib:\/\/<\/li><li>Data:\/\/<\/li><li>Glob:\/\/<\/li><li>Rar:\/\/<\/li><li>Phar:\/\/<\/li><li>Ssh2:\/\/<\/li><li>Ogg:\/\/<\/li><li>Expect:\/\/<\/li><li>IMAP<\/li><li>POP3<\/li><\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_34233\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_45122\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_34233\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>What is PHP? It is an open-source general-purpose scripting language that is especially suited for web development. Code executed on the server. It can be embedded in HTML. You should learn HTML before you start learning PHP. What can PHP do? Generate dynamic page content Create, Open, read, write, delete and close files on the&#8230;<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[5150],"tags":[1570,170,3619,177,5493,104],"class_list":["post-7498","post","type-post","status-publish","format-standard","hentry","category-php","tag-beginners","tag-community","tag-databases","tag-php","tag-platform","tag-tutorials"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/7498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=7498"}],"version-history":[{"count":4,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/7498\/revisions"}],"predecessor-version":[{"id":25061,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/7498\/revisions\/25061"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=7498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=7498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=7498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}