Sr. PHP Programmer Question:
How will you open a file in readonly mode?
Answer:
The PHP fopen() function is used to open a file. It requires two arguments stating first the file name and then mode in which to operate. "r" mode opens the file for reading only and places the file pointer at the beginning of the file.
Previous Question | Next Question |
How will you start a session in PHP? | How will you delete a cookie in PHP? |