SlideShare uma empresa Scribd logo
1 de 23
Baixar para ler offline
It's Alive



                        Add life to your static pages
                                                 --rev01--

                                      Wildan Maulana
                                  wildan.m@openthinklabs.com




© 2010, OpenThink Labs. All Rights Reserved
HTML is static and boring




© 2010, OpenThink Labs. All Rights Reserved
PHP brings web pages to life




© 2010, OpenThink Labs. All Rights Reserved
Form help us capture the data




© 2010, OpenThink Labs. All Rights Reserved
Forms are made of HTML



                      HTML acts on the Client and ....

                                PHP acts on the SERVER




© 2010, OpenThink Labs. All Rights Reserved
Use PHP to Access the Form Data


                           $_POST['var_name'] ...... [1]
                           $_GET_['var_name'] ...... [2]


1. http://php.net/manual/en/reserved.variables.post.php
2. http://php.net/manual/en/reserved.variables.get.php




© 2010, OpenThink Labs. All Rights Reserved
PHP scripts must live on a server!




src: http://www.flickr.com/photos/keith324/185799373/

© 2010, OpenThink Labs. All Rights Reserved
Get your PHP scripts to the server



 Copy the example scripts to the root directory of the
                   server, or .....
          You can setup a new virtual host




© 2010, OpenThink Labs. All Rights Reserved
The server turns PHP into HTML




© 2010, OpenThink Labs. All Rights Reserved
Deconstructing Owen's PHP scripts




       //open : examples/ch01/final/aliens/report.php




© 2010, OpenThink Labs. All Rights Reserved
A few PHP rules to code by
 ●   PHP code always enclosed by <?php and ?>
 ●   Every PHP statement must end with semicolon (;)
 ●   If there is any PHP code in a web page, it's a
     good idea to name the file on the web with .php
     not .html
 ●   PHP variable must begin with a dollar sign ($)




© 2010, OpenThink Labs. All Rights Reserved
Finding the perfect variable name
 ●   The first character must be a dollar sign ($)
 ●   A variable name must be at least one character in length
 ●   The first character after the dollar sign can be a letter or an
     underscore (_), and characters after that can be a letter, an
     underscore, or a number
 ●   Spaces and special character other than _ and $ are not
     allowed in any part of variable name
 ●   (+) Use lowercase for variable name
 ●   (+) Separate words in a multi-word variable name with
     under score



© 2010, OpenThink Labs. All Rights Reserved
Variables are for storing script data
 ●   $where = “at home”
 ●   $_POST[“email”] = “twetme@someplace.com”




     //see : slide 6, for more information about $_POST and $_GET variable




© 2010, OpenThink Labs. All Rights Reserved
Sending Email with PHP

     bool mail ( string $to , string $subject , string $message [, string
        $additional_headers [, string $additional_parameters ]] )




              //see : http://id2.php.net/manual/en/function.mail.php




© 2010, OpenThink Labs. All Rights Reserved
What have you learned already




© 2010, OpenThink Labs. All Rights Reserved
●   #svnadmin create /home/svn/training
 ●   #apt-get install libapache2-svn
                                      <Location /svn/training>
                                         DAV svn
                                         SVNPath /home/svn/training
                                         AuthType Basic
                                         AuthName "Training subversion repository"
                                         AuthUserFile /etc/subversion/passwd
                                         <LimitExcept GET PROPFIND OPTIONS REPORT>
                                           Require valid-user
                                         </LimitExcept>
                                      </Location>

 ●   svn mkdir -m "created default directory structure"
     http://training.o2labs/svn/training/trunk
     http://training.o2labs/svn/training/tags
     http://training.o2labs/svn/training/branches
© 2010, OpenThink Labs. All Rights Reserved
Creating Apache Alias

           Alias /headfirst/ "/path/to/examples"
           <Directory "/path/to/examples">
              Options Indexes MultiViews FollowSymLinks
              AllowOverride None
           </Directory>




© 2010, OpenThink Labs. All Rights Reserved
Create Database
 ●   mysql> create database headfirst ;
 ●   mysql> grant all on headfirst.* to
     'headfirst'@'localhost' identified by 'jagungbakar' ;
 ●   mysql> flush privileges ;




© 2010, OpenThink Labs. All Rights Reserved
Add New Connection on Power Architect
 ●   Connection → Add Source Connection → New
     Connection




© 2010, OpenThink Labs. All Rights Reserved
Create new Table Schema




© 2010, OpenThink Labs. All Rights Reserved
Forward Engineer the Schema




© 2010, OpenThink Labs. All Rights Reserved
●   DOM – Document Object Model
      ●   CSS : CSS selector
            –   #firstname {background-color:red;font-wight:bold}
            –   .input → css class
      ●   JavaScript - jQuery
            –   $(“#firstname”).val() ;




© 2010, OpenThink Labs. All Rights Reserved
Q&A


                                              Thanks! ^_^




© 2010, OpenThink Labs. All Rights Reserved

Mais conteúdo relacionado

Mais procurados

On secure application of PHP wrappers
On secure application  of PHP wrappersOn secure application  of PHP wrappers
On secure application of PHP wrappers
Positive Hack Days
 
Auto-loading of Drupal CCK Nodes
Auto-loading of Drupal CCK NodesAuto-loading of Drupal CCK Nodes
Auto-loading of Drupal CCK Nodes
nihiliad
 
PHP Tips for certification - OdW13
PHP Tips for certification - OdW13PHP Tips for certification - OdW13
PHP Tips for certification - OdW13
julien pauli
 
The symfony platform: Create your very own framework (PHP Quebec 2008)
The symfony platform: Create your very own framework (PHP Quebec 2008)The symfony platform: Create your very own framework (PHP Quebec 2008)
The symfony platform: Create your very own framework (PHP Quebec 2008)
Fabien Potencier
 

Mais procurados (20)

PHP5.5 is Here
PHP5.5 is HerePHP5.5 is Here
PHP5.5 is Here
 
PECL Picks - Extensions to make your life better
PECL Picks - Extensions to make your life betterPECL Picks - Extensions to make your life better
PECL Picks - Extensions to make your life better
 
On secure application of PHP wrappers
On secure application  of PHP wrappersOn secure application  of PHP wrappers
On secure application of PHP wrappers
 
PHP7 is coming
PHP7 is comingPHP7 is coming
PHP7 is coming
 
jQuery secrets
jQuery secretsjQuery secrets
jQuery secrets
 
Real time server
Real time serverReal time server
Real time server
 
Streams, sockets and filters oh my!
Streams, sockets and filters oh my!Streams, sockets and filters oh my!
Streams, sockets and filters oh my!
 
Create your own PHP extension, step by step - phpDay 2012 Verona
Create your own PHP extension, step by step - phpDay 2012 VeronaCreate your own PHP extension, step by step - phpDay 2012 Verona
Create your own PHP extension, step by step - phpDay 2012 Verona
 
Auto-loading of Drupal CCK Nodes
Auto-loading of Drupal CCK NodesAuto-loading of Drupal CCK Nodes
Auto-loading of Drupal CCK Nodes
 
PHP BASIC PRESENTATION
PHP BASIC PRESENTATIONPHP BASIC PRESENTATION
PHP BASIC PRESENTATION
 
Clojure and the Web
Clojure and the WebClojure and the Web
Clojure and the Web
 
Php on the Web and Desktop
Php on the Web and DesktopPhp on the Web and Desktop
Php on the Web and Desktop
 
Php7 extensions workshop
Php7 extensions workshopPhp7 extensions workshop
Php7 extensions workshop
 
PHP Tips for certification - OdW13
PHP Tips for certification - OdW13PHP Tips for certification - OdW13
PHP Tips for certification - OdW13
 
The symfony platform: Create your very own framework (PHP Quebec 2008)
The symfony platform: Create your very own framework (PHP Quebec 2008)The symfony platform: Create your very own framework (PHP Quebec 2008)
The symfony platform: Create your very own framework (PHP Quebec 2008)
 
Introduction to PHP - Basics of PHP
Introduction to PHP - Basics of PHPIntroduction to PHP - Basics of PHP
Introduction to PHP - Basics of PHP
 
Php string function
Php string function Php string function
Php string function
 
PHP7 Presentation
PHP7 PresentationPHP7 Presentation
PHP7 Presentation
 
Php on the desktop and php gtk2
Php on the desktop and php gtk2Php on the desktop and php gtk2
Php on the desktop and php gtk2
 
Dispatch in Clojure
Dispatch in ClojureDispatch in Clojure
Dispatch in Clojure
 

Semelhante a Mastering PHP - it's alive (1)

02 servlet-basics
02 servlet-basics02 servlet-basics
02 servlet-basics
snopteck
 
01 overview-and-setup
01 overview-and-setup01 overview-and-setup
01 overview-and-setup
snopteck
 
Tips
TipsTips
Tips
mclee
 
20100730 phpstudy
20100730 phpstudy20100730 phpstudy
20100730 phpstudy
Yusuke Ando
 

Semelhante a Mastering PHP - it's alive (1) (20)

02 servlet-basics
02 servlet-basics02 servlet-basics
02 servlet-basics
 
01 overview-and-setup
01 overview-and-setup01 overview-and-setup
01 overview-and-setup
 
CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...
CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...
CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...
 
Php Tutorial
Php TutorialPhp Tutorial
Php Tutorial
 
PHP from soup to nuts Course Deck
PHP from soup to nuts Course DeckPHP from soup to nuts Course Deck
PHP from soup to nuts Course Deck
 
WT_PHP_PART1.pdf
WT_PHP_PART1.pdfWT_PHP_PART1.pdf
WT_PHP_PART1.pdf
 
Api Design
Api DesignApi Design
Api Design
 
Media mosa architecture - features -10 june 2010
Media mosa   architecture - features -10 june 2010Media mosa   architecture - features -10 june 2010
Media mosa architecture - features -10 june 2010
 
Tips
TipsTips
Tips
 
Web services tutorial
Web services tutorialWeb services tutorial
Web services tutorial
 
Node.js primer
Node.js primerNode.js primer
Node.js primer
 
Web Services Tutorial
Web Services TutorialWeb Services Tutorial
Web Services Tutorial
 
Node.js Workshop
Node.js WorkshopNode.js Workshop
Node.js Workshop
 
20100730 phpstudy
20100730 phpstudy20100730 phpstudy
20100730 phpstudy
 
Installing and Getting Started with Alfresco
Installing and Getting Started with AlfrescoInstalling and Getting Started with Alfresco
Installing and Getting Started with Alfresco
 
Lessons learned from upgrading Thymeleaf
Lessons learned from upgrading ThymeleafLessons learned from upgrading Thymeleaf
Lessons learned from upgrading Thymeleaf
 
Ran Mizrahi - Symfony2 meets Drupal8
Ran Mizrahi - Symfony2 meets Drupal8Ran Mizrahi - Symfony2 meets Drupal8
Ran Mizrahi - Symfony2 meets Drupal8
 
Massively Parallel Processing with Procedural Python by Ronert Obst PyData Be...
Massively Parallel Processing with Procedural Python by Ronert Obst PyData Be...Massively Parallel Processing with Procedural Python by Ronert Obst PyData Be...
Massively Parallel Processing with Procedural Python by Ronert Obst PyData Be...
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
Python tools for testing web services over HTTP
Python tools for testing web services over HTTPPython tools for testing web services over HTTP
Python tools for testing web services over HTTP
 

Mais de Wildan Maulana

Double for Nothing? Experimental Evidence on an Unconditional TeacherSalary I...
Double for Nothing? Experimental Evidence on an Unconditional TeacherSalary I...Double for Nothing? Experimental Evidence on an Unconditional TeacherSalary I...
Double for Nothing? Experimental Evidence on an Unconditional TeacherSalary I...
Wildan Maulana
 
Pengembangan OpenThink SAS 2013-2014
Pengembangan OpenThink SAS 2013-2014Pengembangan OpenThink SAS 2013-2014
Pengembangan OpenThink SAS 2013-2014
Wildan Maulana
 
ICA – AtoM : Retensi Arsip
ICA – AtoM : Retensi ArsipICA – AtoM : Retensi Arsip
ICA – AtoM : Retensi Arsip
Wildan Maulana
 
OpenThink Labs Workshop : Ketahanan Pangan Skala RT/RW
OpenThink Labs Workshop : Ketahanan Pangan Skala RT/RWOpenThink Labs Workshop : Ketahanan Pangan Skala RT/RW
OpenThink Labs Workshop : Ketahanan Pangan Skala RT/RW
Wildan Maulana
 
OpenThink Labs : Dengar Pendapat Komunitas ciliwung dengan kemen pu dan kemen...
OpenThink Labs : Dengar Pendapat Komunitas ciliwung dengan kemen pu dan kemen...OpenThink Labs : Dengar Pendapat Komunitas ciliwung dengan kemen pu dan kemen...
OpenThink Labs : Dengar Pendapat Komunitas ciliwung dengan kemen pu dan kemen...
Wildan Maulana
 
PostgreSQL BootCamp : Manajemen Master Data dengan SkyTools
PostgreSQL BootCamp : Manajemen Master Data dengan SkyToolsPostgreSQL BootCamp : Manajemen Master Data dengan SkyTools
PostgreSQL BootCamp : Manajemen Master Data dengan SkyTools
Wildan Maulana
 
Mensetup Google Apps sebagai IdP jenis openID dan Aplikasi Berbasis CakePHP ...
Mensetup Google Apps sebagai IdP jenis openID  dan Aplikasi Berbasis CakePHP ...Mensetup Google Apps sebagai IdP jenis openID  dan Aplikasi Berbasis CakePHP ...
Mensetup Google Apps sebagai IdP jenis openID dan Aplikasi Berbasis CakePHP ...
Wildan Maulana
 
Mensetup Google Apps sebagai IdP jenis openID dan Wordpress sebagai Sp
Mensetup Google Apps sebagai IdP jenis openID dan Wordpress sebagai SpMensetup Google Apps sebagai IdP jenis openID dan Wordpress sebagai Sp
Mensetup Google Apps sebagai IdP jenis openID dan Wordpress sebagai Sp
Wildan Maulana
 
Konfigurasi simpleSAMLphp dengan Google Apps Sebagai Identity Provider
Konfigurasi simpleSAMLphp  dengan Google Apps Sebagai Identity ProviderKonfigurasi simpleSAMLphp  dengan Google Apps Sebagai Identity Provider
Konfigurasi simpleSAMLphp dengan Google Apps Sebagai Identity Provider
Wildan Maulana
 
Instalasi simpleSAMLphp sebagai Identity Provider (IdP)
Instalasi simpleSAMLphp sebagai Identity Provider (IdP)Instalasi simpleSAMLphp sebagai Identity Provider (IdP)
Instalasi simpleSAMLphp sebagai Identity Provider (IdP)
Wildan Maulana
 
Instalasi dan Konfigurasi simpleSAMLphp
Instalasi dan Konfigurasi simpleSAMLphpInstalasi dan Konfigurasi simpleSAMLphp
Instalasi dan Konfigurasi simpleSAMLphp
Wildan Maulana
 
River Restoration in Asia and Connection Between IWRM and River Restoration
River Restoration in Asia and Connection Between IWRM and River RestorationRiver Restoration in Asia and Connection Between IWRM and River Restoration
River Restoration in Asia and Connection Between IWRM and River Restoration
Wildan Maulana
 
Penilaian Siswa di Finlandia - Pendidikan Dasar
Penilaian Siswa di Finlandia - Pendidikan DasarPenilaian Siswa di Finlandia - Pendidikan Dasar
Penilaian Siswa di Finlandia - Pendidikan Dasar
Wildan Maulana
 
Proyek Al-'Alaq : Electric Bicycles ; History, Characteristics, and Uses
Proyek Al-'Alaq : Electric Bicycles ; History, Characteristics, and UsesProyek Al-'Alaq : Electric Bicycles ; History, Characteristics, and Uses
Proyek Al-'Alaq : Electric Bicycles ; History, Characteristics, and Uses
Wildan Maulana
 
OpenThink SAS : Interaksi Antara Sekolah, Wali Kelas, Siswa dan Orang Tua
OpenThink SAS : Interaksi Antara Sekolah, Wali Kelas, Siswa dan Orang TuaOpenThink SAS : Interaksi Antara Sekolah, Wali Kelas, Siswa dan Orang Tua
OpenThink SAS : Interaksi Antara Sekolah, Wali Kelas, Siswa dan Orang Tua
Wildan Maulana
 

Mais de Wildan Maulana (20)

Hasil Pendataan Potensi Desa 2018
Hasil Pendataan Potensi Desa 2018Hasil Pendataan Potensi Desa 2018
Hasil Pendataan Potensi Desa 2018
 
Double for Nothing? Experimental Evidence on an Unconditional TeacherSalary I...
Double for Nothing? Experimental Evidence on an Unconditional TeacherSalary I...Double for Nothing? Experimental Evidence on an Unconditional TeacherSalary I...
Double for Nothing? Experimental Evidence on an Unconditional TeacherSalary I...
 
Ketahanan Pangan #1 : Gerakan Sekolah Menanam Melon
Ketahanan Pangan #1 : Gerakan Sekolah Menanam MelonKetahanan Pangan #1 : Gerakan Sekolah Menanam Melon
Ketahanan Pangan #1 : Gerakan Sekolah Menanam Melon
 
Pengembangan OpenThink SAS 2013-2014
Pengembangan OpenThink SAS 2013-2014Pengembangan OpenThink SAS 2013-2014
Pengembangan OpenThink SAS 2013-2014
 
ICA – AtoM : Retensi Arsip
ICA – AtoM : Retensi ArsipICA – AtoM : Retensi Arsip
ICA – AtoM : Retensi Arsip
 
OpenThink Labs Workshop : Ketahanan Pangan Skala RT/RW
OpenThink Labs Workshop : Ketahanan Pangan Skala RT/RWOpenThink Labs Workshop : Ketahanan Pangan Skala RT/RW
OpenThink Labs Workshop : Ketahanan Pangan Skala RT/RW
 
OpenThink Labs : Dengar Pendapat Komunitas ciliwung dengan kemen pu dan kemen...
OpenThink Labs : Dengar Pendapat Komunitas ciliwung dengan kemen pu dan kemen...OpenThink Labs : Dengar Pendapat Komunitas ciliwung dengan kemen pu dan kemen...
OpenThink Labs : Dengar Pendapat Komunitas ciliwung dengan kemen pu dan kemen...
 
PostgreSQL BootCamp : Manajemen Master Data dengan SkyTools
PostgreSQL BootCamp : Manajemen Master Data dengan SkyToolsPostgreSQL BootCamp : Manajemen Master Data dengan SkyTools
PostgreSQL BootCamp : Manajemen Master Data dengan SkyTools
 
Mensetup Google Apps sebagai IdP jenis openID dan Aplikasi Berbasis CakePHP ...
Mensetup Google Apps sebagai IdP jenis openID  dan Aplikasi Berbasis CakePHP ...Mensetup Google Apps sebagai IdP jenis openID  dan Aplikasi Berbasis CakePHP ...
Mensetup Google Apps sebagai IdP jenis openID dan Aplikasi Berbasis CakePHP ...
 
Mensetup Google Apps sebagai IdP jenis openID dan Wordpress sebagai Sp
Mensetup Google Apps sebagai IdP jenis openID dan Wordpress sebagai SpMensetup Google Apps sebagai IdP jenis openID dan Wordpress sebagai Sp
Mensetup Google Apps sebagai IdP jenis openID dan Wordpress sebagai Sp
 
Konfigurasi simpleSAMLphp dengan Google Apps Sebagai Identity Provider
Konfigurasi simpleSAMLphp  dengan Google Apps Sebagai Identity ProviderKonfigurasi simpleSAMLphp  dengan Google Apps Sebagai Identity Provider
Konfigurasi simpleSAMLphp dengan Google Apps Sebagai Identity Provider
 
Instalasi simpleSAMLphp sebagai Identity Provider (IdP)
Instalasi simpleSAMLphp sebagai Identity Provider (IdP)Instalasi simpleSAMLphp sebagai Identity Provider (IdP)
Instalasi simpleSAMLphp sebagai Identity Provider (IdP)
 
Instalasi dan Konfigurasi simpleSAMLphp
Instalasi dan Konfigurasi simpleSAMLphpInstalasi dan Konfigurasi simpleSAMLphp
Instalasi dan Konfigurasi simpleSAMLphp
 
River Restoration in Asia and Connection Between IWRM and River Restoration
River Restoration in Asia and Connection Between IWRM and River RestorationRiver Restoration in Asia and Connection Between IWRM and River Restoration
River Restoration in Asia and Connection Between IWRM and River Restoration
 
Optimasi Limpasan Air Limbah Ke Kali Surabaya (Segmen Sepanjang – Jagir) De...
Optimasi Limpasan Air Limbah  Ke Kali Surabaya (Segmen Sepanjang – Jagir)  De...Optimasi Limpasan Air Limbah  Ke Kali Surabaya (Segmen Sepanjang – Jagir)  De...
Optimasi Limpasan Air Limbah Ke Kali Surabaya (Segmen Sepanjang – Jagir) De...
 
Penilaian Siswa di Finlandia - Pendidikan Dasar
Penilaian Siswa di Finlandia - Pendidikan DasarPenilaian Siswa di Finlandia - Pendidikan Dasar
Penilaian Siswa di Finlandia - Pendidikan Dasar
 
Statistik Listrik
Statistik ListrikStatistik Listrik
Statistik Listrik
 
Proyek Al-'Alaq : Electric Bicycles ; History, Characteristics, and Uses
Proyek Al-'Alaq : Electric Bicycles ; History, Characteristics, and UsesProyek Al-'Alaq : Electric Bicycles ; History, Characteristics, and Uses
Proyek Al-'Alaq : Electric Bicycles ; History, Characteristics, and Uses
 
OpenThink SAS : Interaksi Antara Sekolah, Wali Kelas, Siswa dan Orang Tua
OpenThink SAS : Interaksi Antara Sekolah, Wali Kelas, Siswa dan Orang TuaOpenThink SAS : Interaksi Antara Sekolah, Wali Kelas, Siswa dan Orang Tua
OpenThink SAS : Interaksi Antara Sekolah, Wali Kelas, Siswa dan Orang Tua
 
Menggunakan AlisJK : Equating
Menggunakan AlisJK : EquatingMenggunakan AlisJK : Equating
Menggunakan AlisJK : Equating
 

Mastering PHP - it's alive (1)

  • 1. It's Alive Add life to your static pages --rev01-- Wildan Maulana wildan.m@openthinklabs.com © 2010, OpenThink Labs. All Rights Reserved
  • 2. HTML is static and boring © 2010, OpenThink Labs. All Rights Reserved
  • 3. PHP brings web pages to life © 2010, OpenThink Labs. All Rights Reserved
  • 4. Form help us capture the data © 2010, OpenThink Labs. All Rights Reserved
  • 5. Forms are made of HTML HTML acts on the Client and .... PHP acts on the SERVER © 2010, OpenThink Labs. All Rights Reserved
  • 6. Use PHP to Access the Form Data $_POST['var_name'] ...... [1] $_GET_['var_name'] ...... [2] 1. http://php.net/manual/en/reserved.variables.post.php 2. http://php.net/manual/en/reserved.variables.get.php © 2010, OpenThink Labs. All Rights Reserved
  • 7. PHP scripts must live on a server! src: http://www.flickr.com/photos/keith324/185799373/ © 2010, OpenThink Labs. All Rights Reserved
  • 8. Get your PHP scripts to the server Copy the example scripts to the root directory of the server, or ..... You can setup a new virtual host © 2010, OpenThink Labs. All Rights Reserved
  • 9. The server turns PHP into HTML © 2010, OpenThink Labs. All Rights Reserved
  • 10. Deconstructing Owen's PHP scripts //open : examples/ch01/final/aliens/report.php © 2010, OpenThink Labs. All Rights Reserved
  • 11. A few PHP rules to code by ● PHP code always enclosed by <?php and ?> ● Every PHP statement must end with semicolon (;) ● If there is any PHP code in a web page, it's a good idea to name the file on the web with .php not .html ● PHP variable must begin with a dollar sign ($) © 2010, OpenThink Labs. All Rights Reserved
  • 12. Finding the perfect variable name ● The first character must be a dollar sign ($) ● A variable name must be at least one character in length ● The first character after the dollar sign can be a letter or an underscore (_), and characters after that can be a letter, an underscore, or a number ● Spaces and special character other than _ and $ are not allowed in any part of variable name ● (+) Use lowercase for variable name ● (+) Separate words in a multi-word variable name with under score © 2010, OpenThink Labs. All Rights Reserved
  • 13. Variables are for storing script data ● $where = “at home” ● $_POST[“email”] = “twetme@someplace.com” //see : slide 6, for more information about $_POST and $_GET variable © 2010, OpenThink Labs. All Rights Reserved
  • 14. Sending Email with PHP bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] ) //see : http://id2.php.net/manual/en/function.mail.php © 2010, OpenThink Labs. All Rights Reserved
  • 15. What have you learned already © 2010, OpenThink Labs. All Rights Reserved
  • 16. #svnadmin create /home/svn/training ● #apt-get install libapache2-svn <Location /svn/training> DAV svn SVNPath /home/svn/training AuthType Basic AuthName "Training subversion repository" AuthUserFile /etc/subversion/passwd <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location> ● svn mkdir -m "created default directory structure" http://training.o2labs/svn/training/trunk http://training.o2labs/svn/training/tags http://training.o2labs/svn/training/branches © 2010, OpenThink Labs. All Rights Reserved
  • 17. Creating Apache Alias Alias /headfirst/ "/path/to/examples" <Directory "/path/to/examples"> Options Indexes MultiViews FollowSymLinks AllowOverride None </Directory> © 2010, OpenThink Labs. All Rights Reserved
  • 18. Create Database ● mysql> create database headfirst ; ● mysql> grant all on headfirst.* to 'headfirst'@'localhost' identified by 'jagungbakar' ; ● mysql> flush privileges ; © 2010, OpenThink Labs. All Rights Reserved
  • 19. Add New Connection on Power Architect ● Connection → Add Source Connection → New Connection © 2010, OpenThink Labs. All Rights Reserved
  • 20. Create new Table Schema © 2010, OpenThink Labs. All Rights Reserved
  • 21. Forward Engineer the Schema © 2010, OpenThink Labs. All Rights Reserved
  • 22. DOM – Document Object Model ● CSS : CSS selector – #firstname {background-color:red;font-wight:bold} – .input → css class ● JavaScript - jQuery – $(“#firstname”).val() ; © 2010, OpenThink Labs. All Rights Reserved
  • 23. Q&A Thanks! ^_^ © 2010, OpenThink Labs. All Rights Reserved