ExamVeda
Login
Home
1
The filesize() function returns the file size in ___________
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
2
Which one of the following PHP function is used to determine a file’s last access time?
Discuss
Answer & Solution
Answer: Option C
Solution:
The fileatime() function returns a file’s last access time in Unix timestamp format or FALSE on error.
3
Which one of the following function is capable of reading a file into an array?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
4
Which one of the following function is capable of reading a file into a string variable?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
5
Which one of the following function is capable of reading a specific number of characters form a file?
Discuss
Answer & Solution
Answer: Option A
Solution:
Its prototype is string fgets(resource handle [, int length]). If the optional length parameter is omitted, 1024 character is assumed.
6
Which one of the following function operates similarly to fgets(), except that it also strips any HTML and PHP tags form the input?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
7
Which one of the following function outputs the contents of a string variable to the specified resource?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
8
Which function sets the file filename’s last-modified and last-accessed times?
Discuss
Answer & Solution
Answer: Option C
Solution:
Its prototype is int touch(string filename [, int time [, int atime]]). It returns TRUE on success or FALSE on error.
9
Which function is useful when you want to output the executed command’s result?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
10
Which one of the following function reads a directory into an Array?
Discuss
Answer & Solution
Answer: Option A
Solution:
It returns an array consisting of files and directories found in directory or returns FALSE on error.