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 7 Question 63 Discussion

Posted by Brice on Apr 20, 2024 at 11:12 AM

When uploading a file to a PHP script using the HTTP PUT method, where would the file data be found?

Suggested Answer: B

Get Premium 200-710 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
27 comments · newest first
DE
Deeanna 11 months ago
I thought it would be in the global variable scope.
JU
Jutta 12 months ago
Definitely php://input, that's the way to go!
CA
Candida 12 months ago
Wait, are you sure it's not in $_POST?
DA
Dana 1 year ago
Totally agree, $_FILES is for uploads via POST.
AM
Ammie 1 year ago
It's in the input stream php://input!
CA
Carmelina 1 year ago
I’m leaning towards the $_POST super-global, but I have a nagging feeling that it’s not the right one for file uploads.
JE
Jerlene 1 year ago
I feel like the answer could be php://input, but I can't recall if that's specifically for PUT requests or not.
AR
Aretha 1 year ago
I remember practicing a question like this, and I think it was about $_FILES, but that was for POST requests, right?
IZ
Izetta 1 year ago
I think the file data might be in the php://input stream, but I'm not entirely sure.
NI
Nieves 1 year ago
Okay, I think I've got it. Since the question is specifically about the HTTP PUT method, the file data would be in the input stream php://input, not the $_FILES or $_POST super-globals. I'm feeling pretty confident about that.
SH
Shizue 1 year ago
The question mentions the HTTP PUT method, so I'm guessing the file data would be in the input stream, not the $_FILES super-global. That's my best guess.
LA
Latonia 1 year ago
Hmm, I'm not sure about this one. I know the $_FILES super-global is used for file uploads, but I'm not sure if that applies to the HTTP PUT method specifically.
ME
Meghann 1 year ago
I think the file data would be in the input stream php://input, since that's where raw HTTP request data is typically stored.
BR
Brett 1 year ago
I'm a bit confused on this one. I know the $_POST super-global is used for form data, but I'm not sure if that applies to the PUT method. I'll have to think this through carefully.
AN
Annabelle 1 year ago
I'm a little stumped on this one. I know local governments have to get audits, but I can't recall the specific requirements. I'll have to make an educated guess here.
SO
Sommer 1 year ago
Alright, this seems straightforward enough. The version difference is the likely culprit here. I'll make sure to carefully check the Jira versions between my staging and production environments before attempting any workflow migrations in the future.
TW
Twanna 1 year ago
I feel like the local area network should be included because it supports connectivity, but I can't recall if it specifically helps in knowledge management.
CA
Casie 2 years ago
Alright, php://input it is then. Thanks for the clarification, everyone.
DI
Dino 3 years ago
I was confused at first, but makes sense now. Definitely not $_FILES or $_POST.
LA
Latonia 3 years ago
I've seen php://input used in a script before for PUT requests.
HE
Herman 3 years ago
I agree with you. Using PUT, data doesn't show up in $_FILES.
RH
Rhea 3 years ago
Yeah, it's not straightforward. I think it's B) the input stream php://input.
CA
Casie 3 years ago
This question about HTTP PUT and PHP is tricky.
ST
Stanford 3 years ago
No, it's in the input stream php://input.
TH
Thea 3 years ago
Is it not in the $_FILES super-global?
LA
Laurel 3 years ago
B) the input stream php://input
LI
Lindsey 3 years ago
When uploading a file to a PHP script using the HTTP PUT method, where would the file data be found?
0/2000 characters

Save Cancel