{"id":14872,"date":"2020-06-13T19:16:11","date_gmt":"2020-06-13T19:16:11","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=14872"},"modified":"2022-04-28T09:15:24","modified_gmt":"2022-04-28T09:15:24","slug":"how-to-work-stated-on-php","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/how-to-work-stated-on-php\/","title":{"rendered":"How to Work Stated on PHP"},"content":{"rendered":"\n<p>Install XAMPP on your PC to quickly create web applications with PHP database.<\/p>\n\n\n\n<p>If you want to create a dynamic web page using the first step, then first you write a code and have some knowledge of the matter and the case.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Setting Up a Local Web Server<\/h4>\n\n\n\n<p>The first script you want to execute code on the first web server running.<br>So before you start writing first programming, you have to install the following program on your computer.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The Apache Web server<\/li><li>The PHP engine<\/li><li>The MySQL database server<\/li><\/ul>\n\n\n\n<p>Xampp is a Windows web development environment. It allows you to create web applications with Apache 2, PHP and MySQL database.<\/p>\n\n\n\n<p>It will also provide the Mascal Safeguard tool PhpMyAdmin to easily access your database using a web browser.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Creating Your First PHP Script<\/h4>\n\n\n\n<p>First install XAMPP on your computer<\/p>\n\n\n\n<p>Now that you have successfully installed WampServer on your computer. In this section we will create a very simple PHP script that displays the text &#8220;Hello, world!&#8221; in the browser window.Now we have created an easy access page &#8220;Hello World!&#8221; In the browser window.<\/p>\n\n\n\n<p>Now open your code editor and create a new first file by typing the code below<\/p>\n\n\n\n<p><strong>Example<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/SushantSinghRajput03\/739df0ec4edb89a69ba63369e564eaea.js\"><\/script>\n\n\n\n<p>After this, now file your files in the project folder as &#8220;index.pah&#8221; (location on s: \\ samapp \\ world \\ project),And go to this URL and check your browser results. http:\/\/loclost\/dharmu\/index.php<\/p>\n\n\n\n<p>In a way, you can access the &#8220;index.app&#8221; file by selecting the localhost.<br>And then you can select the project folder from the menu on the taskbar.<\/p>\n\n\n\n<p>In a way, you embed the address inside the html web page, by this you can understand that your html file Inside you can write the first code,<\/p>\n\n\n\n<p>Like I have given the example below<\/p>\n\n\n\n<p><strong>Example<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/SushantSinghRajput03\/d6fa5cd301aef24f67760fb544a28048.js\"><\/script>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_88749\"><iframe loading=\"lazy\"  id=\"_ytid_72448\"  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_88749\"  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 class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Install XAMPP on your PC to quickly create web applications with PHP database. If you want to create a dynamic web page using the first step, then first you write&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5150],"tags":[],"class_list":["post-14872","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/14872","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=14872"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/14872\/revisions"}],"predecessor-version":[{"id":24767,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/14872\/revisions\/24767"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=14872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=14872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=14872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}