Section 17.5. Chapter 17 Questions


17.5. Chapter 17 Questions


Question 17-1.

Why not use <? and ?> to start and end your PHP code blocks?


Question 17-2.

What's the difference between using // comments and /* */ comments?


Question 17-3.

What's the advantage of using the include_once() and require_once() directives instead of include() and require()?


Question 17-4.

What's wrong with this code?

 <? if ($_GET[user_id] == 'Admin') echo ('Welcome to the control panel.'); else echo ('Welcome.'); ?> 

See the Appendix for the answers to these questions.



Learning PHP and MySQL
Learning PHP and MySQL
ISBN: 0596101104
EAN: 2147483647
Year: N/A
Pages: 135

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net