Call
whatsapp
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
Cisco Training in Trivandrum, Trinity Technologies

No.1 Training Institute in Kerala

PHP QUESTIONS : PART 33

Give the syntax for fpassthru( ) function

fpassthru(filepointer);

fpassthru() 

 fpassthru(path);

SHOW ANSWER

Give the correct Syntax for fread( )

fread(filepointer,filesize(file)); 

fread(filepointer); 

 fread(filesize(file));

SHOW ANSWER

Name the function in php to write to a file

fwrite( )

 write( )

 file_write()

SHOW ANSWER

Which attribute in the form tag is used for uploading a file in php ?

enctype 

src

 type

SHOW ANSWER

The value given for enctype attribute of the form tag is _________

multipart/form-data 

 encrypted 

 form

SHOW ANSWER

Which function is used to upload a file ?

move_uploaded_file( ) 

 upload_file()

 file_upload( )

SHOW ANSWER

Which function is used to write to a file other than fwrite( ) ?

fputs( )

write( ) 

puts( )

SHOW ANSWER

Give the syntax for fputs( ) function

fputs(file pointer,variable); 

 write(file pointer); 

 puts(file pointer,variable);

SHOW ANSWER

Which function is used to return the size of a file in php ?

filesize( ) 

size_of_file( )

 fsize( )

SHOW ANSWER

Which function is used to copy file to a destined folder in php ?

copy( ) 

 fcopy( )

 copy_file( )

SHOW ANSWER

Which function returns the directory portion of a stated path ?

dirname( ) 

 directory_name( ) 

name_dir( )

SHOW ANSWER

Function used to rename a file in php ?

rename( ) 

frename( ) 

 file_rename( )

SHOW ANSWER

Which function that returns file permission level ?

fileperms( ) 

 fperm( ) 

 file_permission( )

SHOW ANSWER
BACK | NEXT
TRINITY SOFTWARE SOLUTIONS,IInd floor, Radheyam Towers, Gandhari Amman Kovil Road, Pulimood, Trivandrum - 1
0471-2334855 | 2335855 | 9447387064 | 9847003556 info@trinitytechnology.in