Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend 200-710 Exam - Topic 9 Question 30 Discussion

Posted by Hillary on Jun 01, 2022 at 04:35 AM

An HTML form contains this form element:

When this form is submitted, the following PHP code gets executed:

move_uploaded_file(

$_FILES['myFile']['tmp_name'],

'uploads/' . $_FILES['myFile']['name']

);

Which of the following actions must be taken before this code may go into production? (Choose 2)

Suggested Answer: B, D

Get Premium 200-710 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
13 comments · newest first
KI
Kirk 1 year ago
Sanitizing the file name is essential because it could be forged, no doubt!
BE
Bettina 1 year ago
I thought charset encoding was only for text files, not uploads?
AL
Alonzo 1 year ago
Wait, isn't $HTTP_POST_FILES outdated?
NA
Naomi 1 year ago
I agree, checking with is_uploaded_file() is crucial too.
EL
Elli 1 year ago
Definitely need to sanitize the file name, it's a must!
TA
Tayna 1 year ago
I think we should sanitize the file name because browsers handle it differently, but I'm not entirely sure if that's the main reason.
KA
Kandis 1 year ago
I remember practicing a question about sanitizing file names because they can be forged. That seems really important here too.
LA
Lazaro 1 year ago
I think we definitely need to check if the file is valid with is_uploaded_file(), but I'm not sure about the other option.
LA
Lachelle 1 year ago
I feel like checking the charset encoding is less critical, but I can't recall if it was mentioned in any of the practice materials.
AL
Alonso 1 year ago
Ah, the ZFS Snapshots part - that's a good strategy for backups, I remember learning about that.
GL
Glennis 1 year ago
I'm pretty confident this is in the Event. Kubernetes will log the reason for why a Pod couldn't be scheduled there.
DA
Darnell 1 year ago
Okay, let's see. I know that Persistent Cache is important for improving performance, but I'm not sure if it's the best option here. I'll have to review the other choices.
ME
Melissia 1 year ago
Okay, let me see... The output shows some kind of directory or object information, so I'm guessing it's a command that displays that kind of data. I'll have to test out each option to see which one matches.
0/2000 characters

Save Cancel