PHP for Beginners

php script, hello friend

Sometimes you simply like to learn something from scratch. Here is your chance.

TOG proudly presents PHP for Beginners.

In 5 weeks we will cover the basics of PHP development. The classes are 2 and a half hours long. We’re keeping the class size small, with 5-7 participants. The course costs €30 for non-members and is free for TOG members. Participants must be at least 18 years old.

Sorry, but this class is full. Maybe you got more luck next time. Please contact us, if you would like to join our next class.

Here is an overview of what we would like to do during the weeks:

Openingweek: 27.10.09 at 7 pm

  • Getting to know you
  • Introduction to TOG
  • Payment
  • Tea, coffee & sweets

Week 1: 3.11.09 at 7:20 pm

  • Installation of APACHE and PHP
  • Introduction to the main config files
    • php.ini
    • httpd.conf
  • Simple php script “Hello Workshop!”
    • PHP delimiters <?php and ?>
    • echo and print
    • short open tags (+ php.ini)
  • Helpful variables and functions
    • $_SERVER
    • phpinfo()

Week 2: 10.11.09 at 7:20 pm

  • Firefox addons
    • Web Developer
    • Firebug
    • HTLM Developer
    • View Source Chart
  • Structure of a valid HTML file
 <!DOCTYPE>
 <html>
   <head><title></title></head>
   <body></body>
 </html>
  • Information about PHP
    • short history lesson
    • static vs dynamic
    • server side scripting language
    • no compiler
  • Improve your “Hello Workshop!” script
    • add HTML structure to it (independent task)
    • integer variables: $x + $y
    • function output: round()

Week 3:  17.11.09 at 7:20 pm

  • Input for your PHP script
    • via url –> $_GET
    • via forms –> $_POST
  • PHP variables
    • naming rules, case-sensitive
    • variable types
    • type not set by the programmer but rather by the system at runtime
    • using variables: $x+$y, $x/$y, $x.$y
  • Improve your “Hello Workshop!” script
    • $x and $y integers will be given through input fields and url
    • $x anf $y will be used to store first name and last name (indepentend task)

Week 4: 24.11.09 at 7:20 pm

  • Introduction to arrays
    • simple array: array(‘a’, ‘b’, ‘c’);
    • print_r()
    • key => value pairs
    • integer key and string key
    • show that $_SERVER is an array
    • print array content: $data[0], $data[‘name’]
  • Improve your “Hello Workshop!” script
    • store first name and last name in an array and display it
    • add birthdate and e-mail input fields and add it to your array (independent task)
  • Where to go from here?
    • Information could now be stored in database, textfile, …
    • This could be covered by another workshop

Week 5: 1.12.09 at 7:20 pm

  • Loops and Conditions
    • foreach – loop
    • for – loop
    • if else – condition
  • Improve your “Hello Workshop!” script
    • print the array with the help of foreach()
  • Guess the number – Do it yourself task
    • use rand() to create a random number
    • input field for the user to guess the number
    • if else – condition to figure out if guess was correct
    • display message on the screen

Error: Contact form not found.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.