SarkariResultess QA Bank

PHP file delete करने का function क्या है? को secure तरीके से कैसे implement करें?

Other 0 Views Verified
PHP file delete करने का function क्या है? को secure तरीके से कैसे implement करें? सही विकल्प चुनें और code/solution को समझें।
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified Correct Answer

unlink('old.txt');

unlink('old.txt');
Additional Explanation
unlink() file delete करता है। User input को trust न करें; validation, escaping और prepared statements context के अनुसार उपयोग करें।
Verified

file.delete('old.txt')

file.delete('old.txt')
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

delete_file('old.txt')

delete_file('old.txt')
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

remove_file('old.txt')

remove_file('old.txt')
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।