MCQs > IT & Programming > PHP > Which would trigger the browser's 'Save As' prompt?

PHP MCQs

Which of the following would trigger the browser's "Save As" prompt?

Answer

Correct Answer: header('Content-type: application/txt'); header('Content-Disposition: attachment; filename="file.txt"'); echo "file contents";

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it