Home > Articles > Business & Management > Personal Development

  • Print
  • + Share This
This chapter is from the book


The workshop is designed to help you review what you’ve learned and begin putting your knowledge into practice.


  1. Which PHP function sends mail?
  2. Why is $mysqli named as a global variable in Listing 19.1?
  3. What PHP function call causes the script to execute for as long as it needs to run?


  1. This is not a trick question. It’s the mail() function!
  2. Because the variable $mysqli is created and assigned a value in a function that is included in one script for use by another, the variable must be declared as global to ensure it is usable outside of the confines of the function in which it was created.
  3. set_time_limit(0)


  1. Modify the manage.php script to display the user’s email as part of the response message for any action that is taken.
  2. Modify the sendmymail.php script to add additional form fields that will correspond to section headings in the message string itself. Remember that when the form is submitted, those strings will have to be concatenated into one message string that is sent to the mail() function.
  • + Share This
  • 🔖 Save To Your Account