M7 Flashcards

1
Q

retrieves the contents of one cell from a MySQL result set

A

mysql_result()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

get the number of affected rows by the last SELECT, INSERT, UPDATE, REPLACE or DELETE query.

A

mysql_affected_rows()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

retrieves the number of rows from a result set. This command is only valid for statements like SELECT or SHOW that return an actual result set.

A

mysql_num_rows()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

syntax for file upload:

A

$_FILES[“file”][“index”]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

attempts to create an empty file. If the file already exists, its contents won’t be disturbed, but the modification date will be updated to reflect the time at which the function executed

A

touch()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

a function used to remove an existing file

A

unlink()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

is used to open a file for reading, writing or appending content

A

fopen()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

to read a line from a file

A

fgets()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

to tell the last line of a file

A

feof()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

to read a specified set of character in a file

A

fread()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

to read a file per character

A

fgetc()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

function accepts a file resource and a string, and then writes the string to the file

A

fwrite()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

function works in exactly the same way

A

fputs()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly