PHP Programming quiz, level Intermediate, question 7
| Question: | You can set a cookie (if the user is accepting them) |
| Answer 1: | From within your PHP page; you can set a cookie at any time if your server is configured to buffer your output, but you can only send it before any regular (HTML) data is send to the browser if your server is configured to NOT buffer (see php.ini) This was the CORRECT answer |
| Answer 2: | From within your PHP page, but only before it send out any data to the browser. |
| Answer 3: | From instructions held in the php.ini file |
| Answer 4: | From within your PHP page, at any time |
| Answer 5: | From within your PHP page, but only after you've completed sending out the body of the response page. |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|