SarkariResultess QA Bank

PHP __DIR__ magic constant क्या देता है? को secure तरीके से कैसे implement करें?

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

Answer & Explanation

4 Answers
Verified Correct Answer

Current PHP file की directory

Current PHP file की directory
Additional Explanation
__DIR__ current script directory देता है। User input को trust न करें; validation, escaping और prepared statements context के अनुसार उपयोग करें।
Verified

Current URL

Current URL
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

Current class

Current class
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

Current database

Current database
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।