Sie sind auf Seite 1von 9

INTRO to PHP

Topics
What is PHP
PHP Development Tools
Running First PHP Script
What is PHP?
PHP is a Open-source, server-side scripting
system/language
PHP stands for "PHP: Hypertext Preprocessor
Very good for creating dynamic content
The PHP script embedded in the web page.
The script is run (interpreted) on your web server, and the
output from the process is inserted to the web page as a
part of the content before transmitted to the browser.
It supports many database management system (Oracle,
Postgre, DB2, Microsoft SQL Server, etc).
And its free and powerful, thats why PHP is very popular.

THE PHP DEVELOPMENT TOOLS
The text will refer the XAMPP compilation tools
for web development using Apache as the web
server, PHP as the server script interpreter and
MySQL as the database server.
These three major tools are provided in the
XAMPP and available for you in a single
installation.
XAMPP Control Server Panel
XAMPP application folder
htdocs the web root
(this is where we dump
all the HTML pages and
the PHP scripts)
mysql/data where
MySQL store the
database records
phpMyAdmin the web
based MySQL
administrator
Editors for PHP
Notepad
Macromedia Dreamweaver NOT FREE
Eclipse - FREE
TESTING YOUR FIRST PHP SCRIPT
Inserting PHP script inside HTML document.
The script below will display todays date as available in the
computer system.
<html>
<head><title>Today's Date</title></head>
<body>
Today's Date (according to this Web server) is <br>
<?php
echo( date("d/m/y") );
?>
</body>
</html>
Output:
Go to your favorite web browser and type the
address of your localhost plus the filename in
the address box. It would be;
http://localhost/test.php

Das könnte Ihnen auch gefallen