Shortcut Navigation:

Quot Gt Quiz

Which of the following functions retrieve the entire contents of a file in such a way that it can be used as part of an expression? (Choose 2)

fgets() is used to read a file one line at a time

What is the difference between stat() and fstat()?

flock() is used to unlock a file so that two or more people do not get access to it at the same time.

Which of the following functions reads the entire contents of a file?

What is the purpose of basename() function?

ssuming that image.jpg exists and is readable by PHP, how will the following script be displayed if called directly from a browser? 
<?php
header ("Content-type: image/jpeg");
?>
<?php
readfile ("image.jpg");
?>

What should you do if your script is having problem recognizing file endings from a text file saved on a platform different from the one you’re reading it on?

The ............ function checks if the "end-of-file" (EOF) has been reached.

The ........... function is used to read a single character from a file.

Tagged as: image jpg, image jpg, file