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

Actual exam question for Zend's 200-710 exam
Question #: 30
Topic #: 9
[All 200-710 Questions]

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)

Show Suggested Answer Hide Answer
Suggested Answer: B, D

Contribute your Thoughts:

0/2000 characters
Kirk
5 months ago
Sanitizing the file name is essential because it could be forged, no doubt!
upvoted 0 times
...
Bettina
5 months ago
I thought charset encoding was only for text files, not uploads?
upvoted 0 times
...
Alonzo
5 months ago
Wait, isn't $HTTP_POST_FILES outdated?
upvoted 0 times
...
Naomi
5 months ago
I agree, checking with is_uploaded_file() is crucial too.
upvoted 0 times
...
Elli
5 months ago
Definitely need to sanitize the file name, it's a must!
upvoted 0 times
...
Tayna
6 months 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.
upvoted 0 times
...
Kandis
6 months ago
I remember practicing a question about sanitizing file names because they can be forged. That seems really important here too.
upvoted 0 times
...
Lazaro
6 months 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.
upvoted 0 times
...
Lachelle
6 months 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.
upvoted 0 times
...
Alonso
6 months ago
Ah, the ZFS Snapshots part - that's a good strategy for backups, I remember learning about that.
upvoted 0 times
...
Glennis
6 months ago
I'm pretty confident this is in the Event. Kubernetes will log the reason for why a Pod couldn't be scheduled there.
upvoted 0 times
...
Darnell
6 months 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.
upvoted 0 times
...
Melissia
6 months 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.
upvoted 0 times
...

Save Cancel