2 Webpage to a Database_did_mat1_2variant

  • docx
  • 09.05.2020
Публикация на сайте для учителей

Публикация педагогических разработок

Бесплатное участие. Свидетельство автора сразу.
Мгновенные 10 документов в портфолио.

Иконка файла материала 2 Webpage to a Database_did_mat1_2variant.docx

Didactical material

Name __________________ Class ______________________

Objective: 10.3.3.3 link a webpage to a database

1.      Write a correct syntax to include a file named "footer.php".

<?php _____________________;?>

2.      Assume we have a file named "webdict.txt", write the correct syntax to open and read the file content.

echo ______________________________;

3.      Create a cookie named "username".

______________("username", "John", time() + (86400 * 30), "/");

4.      Open a file, and write the correct syntax to output one character at the time, until end-of-file.

$myfile = fopen("webdict.txt", "r");

while(!___________________($myfile)) {

  echo ____________________($myfile);

}