<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>web Server Archives - Artificial Intelligence</title>
	<atom:link href="https://www.aiuniverse.xyz/tag/web-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.aiuniverse.xyz/tag/web-server/</link>
	<description>Exploring the universe of Intelligence</description>
	<lastBuildDate>Thu, 08 Feb 2024 12:10:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>How to run PHP code in XAMPP</title>
		<link>https://www.aiuniverse.xyz/how-to-run-php-code-in-xampp/</link>
					<comments>https://www.aiuniverse.xyz/how-to-run-php-code-in-xampp/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Thu, 08 Feb 2024 11:36:53 +0000</pubDate>
				<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Code execution]]></category>
		<category><![CDATA[Development environment]]></category>
		<category><![CDATA[How to run PHP code in XAMPP]]></category>
		<category><![CDATA[Htdocs directory]]></category>
		<category><![CDATA[Localhost]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP files]]></category>
		<category><![CDATA[Testing environment]]></category>
		<category><![CDATA[web Server]]></category>
		<category><![CDATA[XAMPP]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=18600</guid>

					<description><![CDATA[<p>To run PHP code in XAMPP, you&#8217;ll need to follow these steps: 2. Start XAMPP Control Panel: Once XAMPP is installed, start the XAMPP Control Panel. On <a class="read-more-link" href="https://www.aiuniverse.xyz/how-to-run-php-code-in-xampp/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-run-php-code-in-xampp/">How to run PHP code in XAMPP</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>To run PHP code in XAMPP, you&#8217;ll need to follow these steps:</p>



<ol class="wp-block-list">
<li><strong>Install XAMPP</strong>: If you haven&#8217;t already installed XAMPP, download it from the Apache Friends website (<a href="https://www.apachefriends.org/index.html">https://www.apachefriends.org/index.html</a>) and follow the installation instructions for your operating system (Windows, macOS, or Linux). You can find instructions here on how to download the XAMPP server for Windows. Click the link below.-<a href="https://www.aiuniverse.xyz/how-to-setup-xampp-in-windows-10/">https://www.aiuniverse.xyz/how-to-setup-xampp-in-windows-10/</a></li>
</ol>



<p><strong>2. Start XAMPP Control Panel</strong>: Once XAMPP is installed, start the XAMPP Control Panel. On Windows, you can typically find it in the Start menu or by searching for &#8220;XAMPP Control Panel&#8221;. On macOS, you can find it in the &#8220;Applications&#8221; folder.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="979" height="366" src="https://www.aiuniverse.xyz/wp-content/uploads/2024/02/image-26.png" alt="" class="wp-image-18601" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2024/02/image-26.png 979w, https://www.aiuniverse.xyz/wp-content/uploads/2024/02/image-26-300x112.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2024/02/image-26-768x287.png 768w" sizes="(max-width: 979px) 100vw, 979px" /></figure>



<p><strong>3. Start Apache Server</strong>: In the XAMPP Control Panel, click the &#8220;Start&#8221; button next to Apache to start the Apache web server. Apache is the web server that will serve your PHP files.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="829" height="535" src="https://www.aiuniverse.xyz/wp-content/uploads/2024/02/image-27.png" alt="" class="wp-image-18602" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2024/02/image-27.png 829w, https://www.aiuniverse.xyz/wp-content/uploads/2024/02/image-27-300x194.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2024/02/image-27-768x496.png 768w" sizes="(max-width: 829px) 100vw, 829px" /></figure>



<p><strong>4. Write PHP Code</strong>: Create or open a PHP file using a text editor. You can use any plain text editor such as Notepad (Windows), TextEdit (macOS), or any code editor like Visual Studio Code, Sublime Text, or Atom. For example, create a file named <code><strong>hello.php</strong></code> and add the following code:</p>



<pre class="wp-block-code"><code>   &lt;?php
   echo "Hello, world!";
   ?&gt;</code></pre>



<p><strong>5. Save PHP File</strong>: Save the PHP file in the<strong> <code>htdocs</code></strong> directory inside the XAMPP installation directory. By default, on Windows, this directory is <code><strong>C:\xampp\htdocs</strong></code>, and on macOS, it&#8217;s <code><strong>/Applications/XAMPP/htdocs</strong></code>.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="862" height="518" src="https://www.aiuniverse.xyz/wp-content/uploads/2024/02/image-29.png" alt="" class="wp-image-18604" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2024/02/image-29.png 862w, https://www.aiuniverse.xyz/wp-content/uploads/2024/02/image-29-300x180.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2024/02/image-29-768x462.png 768w" sizes="(max-width: 862px) 100vw, 862px" /></figure>



<p><strong>6. Access PHP File in Browser</strong>: Open your web browser and navigate to <code><a href="http://localhost/php-programs/hello.php">http://localhost/hello.php</a></code>. This URL corresponds to the <code>hello.php</code> file located in the <code>htdocs</code> directory of your XAMPP installation. You should see <strong>&#8220;Hello, world!&#8221;</strong> displayed in your browser, indicating that your PHP code is running successfully.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="586" height="306" src="https://www.aiuniverse.xyz/wp-content/uploads/2024/02/image-30.png" alt="" class="wp-image-18605" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2024/02/image-30.png 586w, https://www.aiuniverse.xyz/wp-content/uploads/2024/02/image-30-300x157.png 300w" sizes="auto, (max-width: 586px) 100vw, 586px" /></figure>



<p>That&#8217;s it! You&#8217;ve now successfully run PHP code in XAMPP. You can create more PHP files and access them in the browser using similar steps. Remember to stop the Apache server from the XAMPP Control Panel when you&#8217;re done testing your PHP code to conserve system resources.</p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-run-php-code-in-xampp/">How to run PHP code in XAMPP</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-run-php-code-in-xampp/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PHP Tutorial For Beginners Step By Step With Example Session-1</title>
		<link>https://www.aiuniverse.xyz/php-tutorial-for-beginners-step-by-step-with-example-secession-1/</link>
					<comments>https://www.aiuniverse.xyz/php-tutorial-for-beginners-step-by-step-with-example-secession-1/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Wed, 05 Jan 2022 12:38:51 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Environment]]></category>
		<category><![CDATA[Internal Data]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Structure]]></category>
		<category><![CDATA[variable]]></category>
		<category><![CDATA[Variable Initialization]]></category>
		<category><![CDATA[web Server]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15624</guid>

					<description><![CDATA[<p>What is PHP PHP is Open Source server-side programming / Scripting language that is especially suited for web development and can be embedded into HTML. PHP stands <a class="read-more-link" href="https://www.aiuniverse.xyz/php-tutorial-for-beginners-step-by-step-with-example-secession-1/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/php-tutorial-for-beginners-step-by-step-with-example-secession-1/">PHP Tutorial For Beginners Step By Step With Example Session-1</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading"><strong>What is PHP</strong></h1>



<p>PHP is Open Source server-side programming / Scripting language that is especially suited for web development and can be embedded into HTML.</p>



<p>PHP stands for Hypertext Preprocessor but it’s original name, Personal Home Page. It was created by Ramsum Lerdorf in 1994.</p>



<p>PHP runs on various platforms Windows, Linux, Unix, Mac OS X, etc.</p>



<p>PHP is compatible with almost all servers Apache, IIS, etc.</p>



<p>At Present in 2017 Php 7.2.0 is latest version of PHP</p>



<p>PHP File Extension .php</p>



<h1 class="wp-block-heading"><strong>What we can do with PHP</strong></h1>



<ul class="wp-block-list"><li>Generate Dynamic Page</li><li>Handle button clicks, radio button</li><li>Create Database Application</li><li>Client/server Application</li><li>Student Registration</li><li>Online Course</li><li>Online Shopping cart</li><li>Chat Rooms</li></ul>



<h1 class="wp-block-heading"><strong>Example</strong></h1>



<script src="https://gist.github.com/dharmu9898/7608a2d732e79bccb7d4dfa3ab3d7dee.js"></script>



<h1 class="wp-block-heading"><strong>How PHP Works</strong></h1>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="884" height="423" src="https://www.aiuniverse.xyz/wp-content/uploads/2022/01/Work-for-php.jpg" alt="" class="wp-image-15626" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2022/01/Work-for-php.jpg 884w, https://www.aiuniverse.xyz/wp-content/uploads/2022/01/Work-for-php-300x144.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2022/01/Work-for-php-768x367.jpg 768w" sizes="auto, (max-width: 884px) 100vw, 884px" /></figure>



<h1 class="wp-block-heading"><strong>Development Environment</strong></h1>



<ul class="wp-block-list"><li>Operating System – Windows, Linux, Mac etc.</li><li>Web Server – XAMP, WAMP, MAMP etc.<ul><li>§XAMP – Apache + MariaDB + PHP + Perl</li></ul></li></ul>



<ul class="wp-block-list"><li>Editor/IDE – NotePad, NotePad ++, NetBeans, Brackets, Eclipse etc.</li><li>Web Browser – Chrome, Firefox etc.</li></ul>



<h1 class="wp-block-heading"><strong>Basic Structure of PHP</strong></h1>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="905" height="338" src="https://www.aiuniverse.xyz/wp-content/uploads/2022/01/structure.jpg" alt="" class="wp-image-15627" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2022/01/structure.jpg 905w, https://www.aiuniverse.xyz/wp-content/uploads/2022/01/structure-300x112.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2022/01/structure-768x287.jpg 768w" sizes="auto, (max-width: 905px) 100vw, 905px" /></figure>



<h1 class="wp-block-heading"><strong>Basic Structure of PHP</strong></h1>



<script src="https://gist.github.com/dharmu9898/486ed97281f2f20193510bc665ab686c.js"></script>



<h1 class="wp-block-heading"><strong>Variable</strong></h1>



<p>Variables are containers which is used to store information.</p>



<h2 class="wp-block-heading">Type of Variables: &#8211;</h2>



<ul class="wp-block-list"><li>Local Variable</li><li>Global Variable</li><li>Static Variable</li></ul>



<h1 class="wp-block-heading"><strong>Variable Declaration</strong></h1>



<p><strong>In PHP, variable names begin with $ sign, followed by a name.</strong></p>



<p><strong>Ex: &#8211;</strong></p>



<ul class="wp-block-list"><li>$roll</li><li>$price</li><li>$name</li></ul>



<h1 class="wp-block-heading"><strong>Rules</strong></h1>



<ul class="wp-block-list"><li>Variable starts with $ sign.</li><li>Variable name only starts with a letter, an underscore ( _ ).</li><li>Variable name cannot start with a number.</li><li>It is case sensitive which implies that the variable <strong>num</strong> in lowercase is different from variable <strong>NUM</strong> in uppercase.</li><li>Do not use Predefined constant name e.g. PHP_VERSION , PHP_OS etc.</li><li>Do not use reserved keywords. e.g. else, if etc.</li></ul>



<h1 class="wp-block-heading"><strong>Variable Initialization</strong></h1>



<p>PHP can store all type of data in variables. Before using a variable in PHP, assign a value to it so PHP will create that variable and store data in it. That means we have to assign data to a variable before attempting to read a variable’s value.</p>



<h1 class="wp-block-heading">Ex: &#8211;</h1>



<ul class="wp-block-list"><li>$roll = 256;</li><li>$price = 25.50;</li><li>$name = “Geeky Shows”;</li></ul>



<p>Note &#8211; If a variable is created without a value, it is automatically assigned a value of NULL.</p>



<h1 class="wp-block-heading"><strong>Internal Data Types</strong></h1>



<p>In other language, you need to specify the exact data format of each variable, but PHP handles that for you.</p>



<ul class="wp-block-list"><li>Integer – It can hold whole number. Ex: 12, 0, -34 etc.</li><li>Float/Double – It can hold floating point number. Ex: 25.2654, 2.12 etc.</li><li>String – It can hold text or group of characters. Ex: &#8211; “Geeky Shows” etc.</li><li>Boolean – It can hold true/false value.</li><li>Array – It can hold multiple values in one single variable.</li><li>Object – It can hold programming objects.</li><li>Resource – It is special variable that hold references to resources external to PHP.</li><li>NULL – It can hold only one value – NULL .</li></ul>
<p>The post <a href="https://www.aiuniverse.xyz/php-tutorial-for-beginners-step-by-step-with-example-secession-1/">PHP Tutorial For Beginners Step By Step With Example Session-1</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/php-tutorial-for-beginners-step-by-step-with-example-secession-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
