PHP starter install variable function call array for-loop sum if Wouter van der Ploeg, CMD, 2010
PHP starter http://www.php5.org/ apache: http://httpd.apache.org/download.cgi#apache22 php: http://windows.php.net/download/ configuration: http://www.thesitewizard.com/php/install-php-5-apache-windows.shtml important: httpd.conf in /.../apache2.2/conf and php-files in /.../apache2.2/htdocs OR http://www.wampserver.com/en/index.php php-files in /.../wamp/www Wouter van der Ploeg, CMD, 2010
PHP starter every php program  <?php   //start // body ?>  //end Wouter van der Ploeg, CMD, 2010
PHP example 1 <html>  <head>  <title>PHP Test</title>  </head>  <body>  <?php echo '<p>Hello World</p>'; ?>  </body>  </html> Output: Wouter van der Ploeg, CMD, 2010
PHP example 2 <?php  echo '<p>Hello World</p>';  ?>  Output: Wouter van der Ploeg, CMD, 2010 put text example2 in a file &quot;hello2.php&quot; put the file &quot;hello2.php&quot; in /../../htdocs (or if wamp in /.../wamp/www) address browser = localhost/hello2.php
PHP example 3 <?php  phpinfo();  ?>   Output: Wouter van der Ploeg, CMD, 2010
PHP starter - function <?php phpinfo();  ?> Wouter van der Ploeg, CMD, 2010 function call
PHP starter - variable <?php $number = 2; $text = 'voorbeeld'; echo $text; echo $number;  ?> Wouter van der Ploeg, CMD, 2010 variable value show value of $text  Output ?
PHP starter - variable <?php $num1 = 3; $num2 = 7; echo $num1+$num2; echo $num1*$num2;  ?> Wouter van der Ploeg, CMD, 2010 Output ?
PHP starter - variable <?php $num1 = 3; $num2 = 7; echo 'the sum is: '; echo $num1+$num2; echo '<br />'; echo 'the product is: '; echo $num1*$num2;  ?> Wouter van der Ploeg, CMD, 2010 Output ?
PHP starter - array <?php $nums = array(1,2,3,4,5,6,7,8); print_r($nums);  ?> Wouter van der Ploeg, CMD, 2010 Output ?
PHP starter - array Wouter van der Ploeg, CMD, 2010 Output: Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6 [6] => 7 [7] => 8 ) value index
PHP starter - for-loop Wouter van der Ploeg, CMD, 2010 Output ? for-loop block for ($tel = 1; $tel <=10; $tel++) {  echo $tel*$tel, ' ';  }   start end count
PHP starter - for-loop - sum Wouter van der Ploeg, CMD, 2010 Output ? $sum =0;  for ($tel = 1; $tel <=10; $tel++) {  $sum = $sum + $tel; }  echo 'total sum =',$sum;
PHP starter - for-loop & array Wouter van der Ploeg, CMD, 2010 Output ? $nameArray = array('jan', 'kees', 'pieter', 'klaas', 'gerben'); for ($tel = 0; $tel <=4; $tel++) {  echo $nameArray[$tel];  }
PHP starter - if Wouter van der Ploeg, CMD, 2010 Output ? <?php $number = 4; if ($number > 3) { echo $number, 'is larger then 3'; }   ?>
PHP starter - if Wouter van der Ploeg, CMD, 2010 Output ? <?php $number = 4; if ($number > 3) { echo $number, 'is larger then 3'; }  elseif ($number < 3)  { echo $number, ' is smaller then 3'; }  else  { echo $number, ' is equal to 3'; } ?>
PHP starter - for-loop - if Wouter van der Ploeg, CMD, 2010 Output ? for ($tel = 1; $tel <=10; $tel++) {  if ($tel % 2 == 0) { echo $tel*$tel, ' '; }  }
PHP starter - for-loop - if Wouter van der Ploeg, CMD, 2010 Output ? function even($num)  { if ($num % 2 == 0) return true; else return false;  }  for ($tel = 1; $tel <=10; $tel++) {  if (even($tel)) { echo $tel*$tel, ' '; }  }
PHP starter - if Wouter van der Ploeg, CMD, 2010 Output ? $nameArray = array('jan', 'kees', 'pieter', 'klaas', 'gerben'); for ($tel = 0; $tel <=4; $tel++) {  $naam = $nameArray[$tel]; if (substr($naam, 0, 1) == 'k') { echo $nameArray[$tel]; };   }
PHP starter - assignments Wouter van der Ploeg, CMD, 2010 $nameArray = array('jan', 'kees', 'pieter', 'klaas', 'gerben'); write 3rd-powers of numbers from 1-99 show squares of even numbers (1-99) show name if name is shorter then 5 char's give list of names and their length. (look for function length of string) give all the names in capitals count names shorter then 5 char's
GWT Google Web Toolkit how to program for all browsers Wouter van der Ploeg, CMD, 2010
GWT JDK (java) Apache Ant   GWT SDK Wouter van der Ploeg, CMD, 2010
Pyjamas (port of GWT) Python (>=2.4)  pyjamas Wouter van der Ploeg, CMD, 2010
RubyJS (port of GWT) Ruby  rubyjs Wouter van der Ploeg, CMD, 2010
GWT installation Wouter van der Ploeg, CMD, 2010 http://code.google.com/webtoolkit/gettingstarted.html download & unpack  gwt-2.0.3.zip  (SDK) download & install (if needed) JDK >= 1.5  download & unpack Ant 1.8.1  http://ant.apache.org/bindownload.cgi Add the bin directory to your path (e.g. add to path  ;D:\GWT\apache-ant-1.8.1\bin  ) Set the ANT_HOME environment variable (e.g.  ANT_HOME = D:\GWT\apache-ant-1.8.1   ) try in shell  D:\ ant if the answer is:   Buildfile: build.xml does not exist! Build failed All is OK, ant is installed test GWT go to http://code.google.com/intl/nl-NL/webtoolkit/gettingstarted.html

More Related Content

PDF
The Ring programming language version 1.5.4 book - Part 9 of 185
PDF
The Ring programming language version 1.5.3 book - Part 9 of 184
PPTX
Introducing PHP Latest Updates
PDF
The Ring programming language version 1.5.1 book - Part 8 of 180
PDF
What's new in PHP 5.5
PDF
Implementing Software Machines in Go and C
PDF
OSDC.TW - Gutscript for PHP haters
PDF
Implementing Software Machines in C and Go
The Ring programming language version 1.5.4 book - Part 9 of 185
The Ring programming language version 1.5.3 book - Part 9 of 184
Introducing PHP Latest Updates
The Ring programming language version 1.5.1 book - Part 8 of 180
What's new in PHP 5.5
Implementing Software Machines in Go and C
OSDC.TW - Gutscript for PHP haters
Implementing Software Machines in C and Go

What's hot (20)

ODP
Отладка в GDB
KEY
Anatomy of a PHP Request ( UTOSC 2010 )
PPS
36 gotas de-sabiduria
DOCX
Programa en C++ ( escriba 3 números y diga cual es el mayor))
PDF
What's New in PHP 5.5
PDF
Xdebug - Derick Rethans - Barcelona PHP Conference 2008
PDF
The new features of PHP 7
ODP
Caching and tuning fun for high scalability @ FrOSCon 2011
PDF
Perl IO
ODP
The why and how of moving to PHP 5.5/5.6
PPTX
Php7 HHVM and co
PDF
Going Loopy: Adventures in Iteration with Go
PDF
An introduction to PHP 5.4
ODP
The why and how of moving to PHP 5.4/5.5
PDF
Go for the paranoid network programmer
PPT
Buffer OverFlow
KEY
Kansai.pm 10周年記念 Plack/PSGI 入門
ODP
The why and how of moving to php 5.4/5.5
PDF
Quick tour of PHP from inside
Отладка в GDB
Anatomy of a PHP Request ( UTOSC 2010 )
36 gotas de-sabiduria
Programa en C++ ( escriba 3 números y diga cual es el mayor))
What's New in PHP 5.5
Xdebug - Derick Rethans - Barcelona PHP Conference 2008
The new features of PHP 7
Caching and tuning fun for high scalability @ FrOSCon 2011
Perl IO
The why and how of moving to PHP 5.5/5.6
Php7 HHVM and co
Going Loopy: Adventures in Iteration with Go
An introduction to PHP 5.4
The why and how of moving to PHP 5.4/5.5
Go for the paranoid network programmer
Buffer OverFlow
Kansai.pm 10周年記念 Plack/PSGI 入門
The why and how of moving to php 5.4/5.5
Quick tour of PHP from inside
Ad

Viewers also liked (20)

PPTX
прикладные направления геохимии ландшафта квасникова з.н.
PPT
Gwt wouter
PPT
Sovereign racing
KEY
Frasco de woolf
PPTX
Презентация Итог
PDF
Oasy swater
PPTX
PPTX
Medical procedures
PDF
Manifiesto para un gobierno local fuerte y eficaz. Irlanda del Norte
PDF
phd switzerland - peugeot 308 driving experience - case study 2014
PPTX
Ландшафты
PDF
Poultry Insights (Jan-Mar - 2015) - Aim For The Sky From Better Floor
PDF
Pashudhan march 2016 curved
PDF
Ppv december 2015 curved
PPT
Staunton Performing Arts Slide Show
PPTX
Endocrine system suffixes
PPT
2.1 cell function by SAS
PPTX
понятие о геохимии ландшафта квасникова з.н.
PDF
Ppv february 2016 curved
прикладные направления геохимии ландшафта квасникова з.н.
Gwt wouter
Sovereign racing
Frasco de woolf
Презентация Итог
Oasy swater
Medical procedures
Manifiesto para un gobierno local fuerte y eficaz. Irlanda del Norte
phd switzerland - peugeot 308 driving experience - case study 2014
Ландшафты
Poultry Insights (Jan-Mar - 2015) - Aim For The Sky From Better Floor
Pashudhan march 2016 curved
Ppv december 2015 curved
Staunton Performing Arts Slide Show
Endocrine system suffixes
2.1 cell function by SAS
понятие о геохимии ландшафта квасникова з.н.
Ppv february 2016 curved
Ad

Similar to Gwt_Wouter1 (20)

PPT
Introduction To Lamp
ODP
Php Learning show
PPT
Php Training
PPT
P H P Part I, By Kian
PPT
PPT
PHP-01-Overview.pptfreeforeveryonecomenow
PPT
Introduction to PHP
PPT
What Is Php
 
PPT
Php Chapter 1 Training
PPT
02 Php Vars Op Control Etc
PPT
Phpwebdevelping
PPT
course slides -- powerpoint
PPT
Phpwebdev
PPT
PPT
Basic PHP
PDF
How to run PHP code in XAMPP.docx (1).pdf
PPT
Php Crash Course
PPT
PHP - RAQ (Rarely Asked Questions!)
PPT
Introduction to PHP
Introduction To Lamp
Php Learning show
Php Training
P H P Part I, By Kian
PHP-01-Overview.pptfreeforeveryonecomenow
Introduction to PHP
What Is Php
 
Php Chapter 1 Training
02 Php Vars Op Control Etc
Phpwebdevelping
course slides -- powerpoint
Phpwebdev
Basic PHP
How to run PHP code in XAMPP.docx (1).pdf
Php Crash Course
PHP - RAQ (Rarely Asked Questions!)
Introduction to PHP

Recently uploaded (20)

PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
My India Quiz Book_20210205121199924.pdf
PPTX
Climate Change and Its Global Impact.pptx
PDF
HVAC Specification 2024 according to central public works department
PDF
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
PDF
semiconductor packaging in vlsi design fab
PDF
LEARNERS WITH ADDITIONAL NEEDS ProfEd Topic
PDF
Complications of Minimal Access-Surgery.pdf
PPTX
What’s under the hood: Parsing standardized learning content for AI
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
PDF
CRP102_SAGALASSOS_Final_Projects_2025.pdf
PPTX
Core Concepts of Personalized Learning and Virtual Learning Environments
PDF
Journal of Dental Science - UDMY (2020).pdf
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PPTX
Computer Architecture Input Output Memory.pptx
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
My India Quiz Book_20210205121199924.pdf
Climate Change and Its Global Impact.pptx
HVAC Specification 2024 according to central public works department
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
semiconductor packaging in vlsi design fab
LEARNERS WITH ADDITIONAL NEEDS ProfEd Topic
Complications of Minimal Access-Surgery.pdf
What’s under the hood: Parsing standardized learning content for AI
Unit 4 Computer Architecture Multicore Processor.pptx
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
CRP102_SAGALASSOS_Final_Projects_2025.pdf
Core Concepts of Personalized Learning and Virtual Learning Environments
Journal of Dental Science - UDMY (2020).pdf
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
Environmental Education MCQ BD2EE - Share Source.pdf
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Computer Architecture Input Output Memory.pptx
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
B.Sc. DS Unit 2 Software Engineering.pptx

Gwt_Wouter1

  • 1. PHP starter install variable function call array for-loop sum if Wouter van der Ploeg, CMD, 2010
  • 2. PHP starter http://www.php5.org/ apache: http://httpd.apache.org/download.cgi#apache22 php: http://windows.php.net/download/ configuration: http://www.thesitewizard.com/php/install-php-5-apache-windows.shtml important: httpd.conf in /.../apache2.2/conf and php-files in /.../apache2.2/htdocs OR http://www.wampserver.com/en/index.php php-files in /.../wamp/www Wouter van der Ploeg, CMD, 2010
  • 3. PHP starter every php program <?php //start // body ?> //end Wouter van der Ploeg, CMD, 2010
  • 4. PHP example 1 <html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> </body> </html> Output: Wouter van der Ploeg, CMD, 2010
  • 5. PHP example 2 <?php echo '<p>Hello World</p>'; ?> Output: Wouter van der Ploeg, CMD, 2010 put text example2 in a file &quot;hello2.php&quot; put the file &quot;hello2.php&quot; in /../../htdocs (or if wamp in /.../wamp/www) address browser = localhost/hello2.php
  • 6. PHP example 3 <?php phpinfo(); ?> Output: Wouter van der Ploeg, CMD, 2010
  • 7. PHP starter - function <?php phpinfo(); ?> Wouter van der Ploeg, CMD, 2010 function call
  • 8. PHP starter - variable <?php $number = 2; $text = 'voorbeeld'; echo $text; echo $number; ?> Wouter van der Ploeg, CMD, 2010 variable value show value of $text Output ?
  • 9. PHP starter - variable <?php $num1 = 3; $num2 = 7; echo $num1+$num2; echo $num1*$num2; ?> Wouter van der Ploeg, CMD, 2010 Output ?
  • 10. PHP starter - variable <?php $num1 = 3; $num2 = 7; echo 'the sum is: '; echo $num1+$num2; echo '<br />'; echo 'the product is: '; echo $num1*$num2; ?> Wouter van der Ploeg, CMD, 2010 Output ?
  • 11. PHP starter - array <?php $nums = array(1,2,3,4,5,6,7,8); print_r($nums); ?> Wouter van der Ploeg, CMD, 2010 Output ?
  • 12. PHP starter - array Wouter van der Ploeg, CMD, 2010 Output: Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6 [6] => 7 [7] => 8 ) value index
  • 13. PHP starter - for-loop Wouter van der Ploeg, CMD, 2010 Output ? for-loop block for ($tel = 1; $tel <=10; $tel++) { echo $tel*$tel, ' '; } start end count
  • 14. PHP starter - for-loop - sum Wouter van der Ploeg, CMD, 2010 Output ? $sum =0; for ($tel = 1; $tel <=10; $tel++) { $sum = $sum + $tel; } echo 'total sum =',$sum;
  • 15. PHP starter - for-loop & array Wouter van der Ploeg, CMD, 2010 Output ? $nameArray = array('jan', 'kees', 'pieter', 'klaas', 'gerben'); for ($tel = 0; $tel <=4; $tel++) { echo $nameArray[$tel]; }
  • 16. PHP starter - if Wouter van der Ploeg, CMD, 2010 Output ? <?php $number = 4; if ($number > 3) { echo $number, 'is larger then 3'; } ?>
  • 17. PHP starter - if Wouter van der Ploeg, CMD, 2010 Output ? <?php $number = 4; if ($number > 3) { echo $number, 'is larger then 3'; } elseif ($number < 3) { echo $number, ' is smaller then 3'; } else { echo $number, ' is equal to 3'; } ?>
  • 18. PHP starter - for-loop - if Wouter van der Ploeg, CMD, 2010 Output ? for ($tel = 1; $tel <=10; $tel++) { if ($tel % 2 == 0) { echo $tel*$tel, ' '; } }
  • 19. PHP starter - for-loop - if Wouter van der Ploeg, CMD, 2010 Output ? function even($num) { if ($num % 2 == 0) return true; else return false; } for ($tel = 1; $tel <=10; $tel++) { if (even($tel)) { echo $tel*$tel, ' '; } }
  • 20. PHP starter - if Wouter van der Ploeg, CMD, 2010 Output ? $nameArray = array('jan', 'kees', 'pieter', 'klaas', 'gerben'); for ($tel = 0; $tel <=4; $tel++) { $naam = $nameArray[$tel]; if (substr($naam, 0, 1) == 'k') { echo $nameArray[$tel]; }; }
  • 21. PHP starter - assignments Wouter van der Ploeg, CMD, 2010 $nameArray = array('jan', 'kees', 'pieter', 'klaas', 'gerben'); write 3rd-powers of numbers from 1-99 show squares of even numbers (1-99) show name if name is shorter then 5 char's give list of names and their length. (look for function length of string) give all the names in capitals count names shorter then 5 char's
  • 22. GWT Google Web Toolkit how to program for all browsers Wouter van der Ploeg, CMD, 2010
  • 23. GWT JDK (java) Apache Ant GWT SDK Wouter van der Ploeg, CMD, 2010
  • 24. Pyjamas (port of GWT) Python (>=2.4) pyjamas Wouter van der Ploeg, CMD, 2010
  • 25. RubyJS (port of GWT) Ruby rubyjs Wouter van der Ploeg, CMD, 2010
  • 26. GWT installation Wouter van der Ploeg, CMD, 2010 http://code.google.com/webtoolkit/gettingstarted.html download & unpack gwt-2.0.3.zip (SDK) download & install (if needed) JDK >= 1.5 download & unpack Ant 1.8.1 http://ant.apache.org/bindownload.cgi Add the bin directory to your path (e.g. add to path ;D:\GWT\apache-ant-1.8.1\bin ) Set the ANT_HOME environment variable (e.g. ANT_HOME = D:\GWT\apache-ant-1.8.1 ) try in shell D:\ ant if the answer is: Buildfile: build.xml does not exist! Build failed All is OK, ant is installed test GWT go to http://code.google.com/intl/nl-NL/webtoolkit/gettingstarted.html