PHP is a server side scripting language,and a powerful tool for making dynamic and interactive
web pages.
Advantages of using PHP are:
Easy to learn, use, and implement
Free for access
Executes on any platform
Executes scripts from the command line and develops client-side GUI applications that can operate on any platform
Create a directory Under xamapp \htdocs for example hema
C:\xampp\htdocs\Hema
Saves with an extension, .php under the /Hema directory
For example, display a simple text in the browser
http://localhost:9090/hema/page1.php in the address bar. The output appears, as shown in the figure
Index of /hema
[ICO] Name Last modified Size Description
[PARENTDIR] Parent Directory -
[TXT] page1.php 2015-08-28 15:29 87
[TXT] page2.php 2015-08-28 15:45 57
Apache/2.4.10 (Win32) OpenSSL/1.0.1h PHP/5.4.31 Server at localhost Port 9090
For example, display a simple text Good Morning in the browser
<!DOCTYPE html>
<html>
<body>
<?php
echo "Good Morning ";
?>
</body>
</html>
For example, You want to show the location of the client
<?php
header(“Location: http://www.msn.com”);
exit;
?>
web pages.
Advantages of using PHP are:
Easy to learn, use, and implement
Free for access
Executes on any platform
Executes scripts from the command line and develops client-side GUI applications that can operate on any platform
Create a directory Under xamapp \htdocs for example hema
C:\xampp\htdocs\Hema
Saves with an extension, .php under the /Hema directory
For example, display a simple text in the browser
http://localhost:9090/hema/page1.php in the address bar. The output appears, as shown in the figure
Index of /hema
[ICO] Name Last modified Size Description
[PARENTDIR] Parent Directory -
[TXT] page1.php 2015-08-28 15:29 87
[TXT] page2.php 2015-08-28 15:45 57
Apache/2.4.10 (Win32) OpenSSL/1.0.1h PHP/5.4.31 Server at localhost Port 9090
For example, display a simple text Good Morning in the browser
<!DOCTYPE html>
<html>
<body>
<?php
echo "Good Morning ";
?>
</body>
</html>
For example, You want to show the location of the client
<?php
header(“Location: http://www.msn.com”);
exit;
?>
No comments:
Post a Comment