e-Commerce Answer the following: 1. $size= ROUND($file[‘size’]/1024); If( $size
ID: 3583605 • Letter: E
Question
e-Commerce
Answer the following:
1.
$size= ROUND($file[‘size’]/1024);
If( $size > 1024 ) {
$add_pdf_errors[‘pdf] = ‘The uploaded file was too large.’;
}
If (($file[‘type’] != ‘application/pdf’ ) && (substr($file[‘name’], -4) != ‘.pdf’)) {
$add_pdf_errors[‘pdf] = ‘The uploaded file was not a PDF.’;
}
The previous PHP code validates the uploaded files for not being bigger that ________ kilobytes and for having a _________ extension. If these two requirements are not meet errors messages are displayed.
True or False
2.The PHP code included in the renew.php file should only be available for logged-in users.
3. The last addition to the site that must be created is the ability to renew an account.
4. As part of the process of setting a payment system with Paypal, a test process has to be established. Paypal offers a test environment for trials. Arrange the steps for setting a testing account in the correct order.
a. creating a button
b. Registering at Paypal Sandbox
c. Add the button code where appropiate
d. Creating Test Accounts
5. The three levels of access that can be set for files and directories are:
a. Read b. Delete c. Write d. Execute e. Open
6. Select the correct instruction for creating an array for storing error messages:
a. Create_an_error_array();
b. Redirect_invalid_user();
c. $add_pdf_errors = array ();
d. None of the answers
7. There are three different PayPal-related sites. The first and most obvious is the real PayPal, at ___________________ .
8. PayPal is perhaps the biggest payment solution provider. Some of the advantages of using PayPal are: (Select four)
Transfer money directly into your bank account
Shipping calculators and shipping label service
No setup fees
No monthly costs for the basic payment option
e.
Fraud protections
c. $add_pdf_errors = array ();
Explanation / Answer
1.
uploaded files for not being bigger that 1024 kilobytes and for having a .pdf extension. If these two requirements are not meet errors messages are displayed.
2.
The PHP code included in the renew.php file should only be available for logged-in users.
True.
3.
The last addition to the site that must be created is the ability to renew an account.
True
4.
5.
The three levels of access that can be set for files and directories are:
1.Read 2. Write 3. Execute
Option a,c and d is correct choice.
6.
Instruction for creating an array for storing error messages :
$add_pdf_errors = array ();
Option c is correct choice.
7.
There are three different PayPal-related sites. The first and most obvious is the real PayPal, at www.paypal.com.
8.
Advantages of using PayPal are:
Option b,c,d and e is correct choice.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.