220 likes | 331 Views
Web Programming PHP MySql Ikbal Jamaludin. Powerpoint Templates. Introduction. PHP is a server-side scripting language that integrates with HTML to create dynamic web pages.
E N D
Web Programming PHP MySql Ikbal Jamaludin Powerpoint Templates
Introduction • PHP is a server-side scripting language that integrates with HTML to create dynamic web pages. • The purpose of a server-side scripting is the syntax and commands given will be fully executed on the server but is included in the HTML document.
This web is a combination of PHP itself as a programming language and HTML as a web page builder. • When a user opens a site that uses facilities scripting PHP server-side, then the first server in question will process all orders PHP on the server and then sends the results in HTML format to the user's web browser Internet
Why PHP ? Php has advantages such as • PHP is Open Source software and be able to cross-platform • can be used with the operating system and any web server • PHP can run on Windows and some Linux distros
- It has a lot of support for database • PHP offers good connections to multiple databases, including • Oracle, • sybase, • mSQL, • MySQL, • solid, • PostgreSQL, • Adabas, • FilePro, • Velocis, • dBase, • Unix dbm and not to mention all the ODBC database interfaces
before we write a php we must first install a web • server such as apache. in this course, we will • install appserv apache via AppServ software • Applications. • download appserv at • www.stmik-tasikmalaya.ac.id
www.stmik-tasikmalaya.ac.id IntstallApache Webserverthrough appserv Applications
Check Successful Installation: Open Web Browser Type "localhost" in the Address Bar If Shown Information about the application that we installed, the installation successfully.
to write php, we can use an application like notepad, notepad + +, Dreamweaver etc. • Open youre Notebook • Windows Start • All Programs • Acessoris • Notepad • Start – Run – Notepad - Enter
Embeded Script <html> <head> <title> Embedded Script </title> </head> <body> <?php Echo “Hello, ini PHP Pertamaku..php pasti akan menyenangkan”; ?></body> </html>
2. NonEmbeded Script <?php echo "<html>"; echo "<head>"; echo "<title>Mengenal PHP </title>"; echo "</head>"; echo "<body>"; echo "Hello, ini PHP Pertamaku..php pasti akan menyenangkan"; echo "</body>"; echo "</html>"; ?>
Example <html> <head> <title>Example</title> </head> <body> <?php • // This is an example of writing information (comments) • // in php script Echo “ This is My First PHP Script!”; ?> </body> </html>
Save the project in the folder C:\AppServ\www \ name of your project • to see the results, open the browser like internet explorer, mozillafirefox, chrome etc. • Type “Localhost/your project name” in the Address Bar on you’re bowser
The first meeting is finished, you can download these materials at www.stmik-tasikmalaya.ac.id, download the menu, the course material ( filename = PHPMySQL1,Kamboja.) thank you see you at the next meeting