Skip to content

Commit 14afd38

Browse files
committed
http_response_code is deleted
1 parent ff54408 commit 14afd38

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

01/addRecord.php

-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@
1818
fclose($res);
1919

2020
header('Location:' . '/01/');
21-
http_response_code(302);
2221
exit;

02/saveImage.php

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
if ($isSuccess) {
2020
header('Location:' . '/02/');
21-
http_response_code(302);
2221
exit;
2322
} elseif (!$isImage) {
2423
?>Загруженный файл не является изображением<?php

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* uses `fopen()`, `fclose()`, `fgets()`, `fwrite()`, `scandir()`
1818
* uses `strpos()` & `implode()`
1919
* uses `mime_content_type()`
20-
* uses `header()` & `http_response_code()`
20+
* uses `header()`
2121

2222
## Credits
2323
* thanks to **Albert Stepantsev** and to his [awesome school](https://pr-of-it.ru/courses/php-1.html)

0 commit comments

Comments
 (0)