[ Team LiB ] Previous Section Next Section

Workshop

Quiz

1:

Can a user read the source code of PHP script you have successfully installed?

2:

What do the standard PHP delimiter tags look like?

3:

What do the ASP PHP delimiter tags look like?

4:

What do the script PHP delimiter tags look like?

5:

What syntax would you use to output a string to the browser?


Answers

A1:

No, the user sees only the output of your script.

A2:

. . . .<?php
. . . . // your code here
. . . . ?>.

A3:

. . . .<%
. . . .// your code here
. . . .%>.

A4:

. . . .<script language="php">
. . . .// your code here
. . . .</script>.

A5:

We would usually use print() to write to the browser, although we could use echo() with the same results.


    [ Team LiB ] Previous Section Next Section