U.S. Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend 200-710 Exam - Topic 1 Question 83 Discussion

Your public web application needs to provide access to binary files for registered users only. How would you achieve this?
A) Host the files on a public external file sharing service.
B) Redirect to the file which resides in the server's document root
C) Use PHP to send the file to the client, using the header() function to set appropriate HTTP headers
D) PHP is used for service HTML content, not binary content

Zend 200-710 Exam - Topic 1 Question 83 Discussion

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

Your public web application needs to provide access to binary files for registered users only. How would you achieve this?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Elfrieda
7 months ago
B is risky, better to use C for security.
upvoted 0 times
...
Cordie
7 months ago
Surprised to see D, PHP can definitely serve binary content.
upvoted 0 times
...
Dana
7 months ago
A is a bad idea, files should be private!
upvoted 0 times
...
Denae
8 months ago
I disagree, D seems a bit off. PHP can handle binary.
upvoted 0 times
...
Nohemi
8 months ago
C is the way to go for binary files!
upvoted 0 times
...
Merilyn
8 months ago
Hosting files on a public service seems risky for registered users only. I don't think A is a good option at all.
upvoted 0 times
...
Geoffrey
8 months ago
I feel like I've seen a similar question before, and I think the answer was about using headers to control access. So, C might be the best choice.
upvoted 0 times
...
Carman
8 months ago
I'm not so sure about option D, though. I remember something about PHP being able to handle binary files, but I can't recall the details.
upvoted 0 times
...
Joni
9 months ago
I think option C sounds right since using PHP to handle file downloads seems like a common practice.
upvoted 0 times
...
Marva
9 months ago
This is a good question. I think C is the way to go - using PHP to handle the file transfer and setting the right headers is a solid approach for a secure, registered-user-only file access system.
upvoted 0 times
...
Whitley
9 months ago
I'm a bit confused by this question. Aren't there other ways to restrict access to binary files besides using PHP? I'll have to review my notes and see if I can come up with a more creative solution.
upvoted 0 times
...
Demetra
9 months ago
Option D is definitely wrong - PHP can absolutely be used to serve binary content, not just HTML. I'm leaning towards C as the best solution here.
upvoted 0 times
...
Jamie
9 months ago
Hmm, I'm a bit unsure about this one. Hosting the files on a public service seems risky for security, and I'm not sure if redirecting to the file is the best approach. I'll have to think this through carefully.
upvoted 0 times
...
Linwood
9 months ago
This seems like a straightforward question. I'd go with option C - using PHP to send the file to the client with the appropriate headers.
upvoted 0 times
...
Annice
1 year ago
While option A might be convenient, hosting files on a public file sharing service is a big security risk. C is the way to go.
upvoted 0 times
...
Adelina
1 year ago
Haha, option D is a real knee-slapper! PHP is only for HTML content? Someone needs to update their web development knowledge.
upvoted 0 times
Carli
1 year ago
D) PHP is used for service HTML content, not binary content
upvoted 0 times
...
Tresa
1 year ago
C) Use PHP to send the file to the client, using the header() function to set appropriate HTTP headers
upvoted 0 times
...
Cassie
1 year ago
B) Redirect to the file which resides in the server's document root
upvoted 0 times
...
Lauryn
1 year ago
A) Host the files on a public external file sharing service.
upvoted 0 times
...
...
Arthur
1 year ago
I'm not sure about option B. Redirecting to a file in the document root doesn't seem like a good idea, as it could expose the file to unauthorized users.
upvoted 0 times
...
Evette
1 year ago
Answer C looks like the right choice. Using PHP to send the file with appropriate headers is a secure way to provide access to binary files for registered users.
upvoted 0 times
Tarra
1 year ago
Yes, using PHP to set the appropriate HTTP headers is a good way to ensure only registered users can access the binary files.
upvoted 0 times
...
Eladia
1 year ago
I agree, option C seems like the most secure way to provide access to binary files for registered users.
upvoted 0 times
...
Gianna
1 year ago
I think option C is the best choice. Using PHP to send the file with the right headers is secure.
upvoted 0 times
...
...
Peggy
1 year ago
I'm not sure about option A, hosting files on a public external service seems risky in terms of security for registered users.
upvoted 0 times
...
Twana
1 year ago
I agree with Mabelle, option C using PHP to send the file with appropriate headers is the most secure way to provide access to binary files.
upvoted 0 times
...
Mabelle
1 year ago
I think option C is the best choice because it allows us to control access to the binary files for registered users.
upvoted 0 times
...

Save Cancel