Previous   -   Index


Tutorial Questions


  1. Use a text editor to create a file containing a single line...
    <?php phpinfo() ?>
    and save it to a file called info.php published by a webserver that runs PHP. Read through the list of information produced. Try and make sense of the information, consider how it could be used in an application? If there is something that you do not understand then try searching in the PHP documenation for an answer.

  2. Copy your info.php onto a different webserver. What is different about the returned information? (How can you easily diff the results?)

  3. Create a simple HTML form which submits to your info.php. Find your form data in the results. How can you simultaneously submit both GET and POST parameters to it?

  4. Copy the first.php example from the previous slide onto a suitable web server. Create a simple HTML form which submits to your first.php. How can your form and your first.php successfully run if they are each hosted on different webservers?

  5. How can you use the W3C validation service to validate the XHTML markup from both your form and the output from your PHP script?.

  6. Using first.php as an example create a PHP template for yourself in EditPlus.
    Hint: look carefully at the first few lines.

  7. Write a PHP script that simply displays all HTML form data.
    Hint: look at the foreach construct in the documentation.

  8. Follow the form input examples in forms.html to create a complex form which calls the php script you created in the previous exercise.

  9. Homework - Identify four significant commercial organisations that use Open Source software.
    In each case identify what software is used and how it is used. Investigate the reasons why, more often than not it is a financial decision. Comment on your findings.


Previous   -   Index

best viewed using Mozilla browsers
© k.mcmanus 2004
Valid XHTML 1.! . Valid CSS . WCAG priority 3 approved