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 34

What will be the output : if(file_exist(‘C:\wamp\www\star’)) {echo “file exist”; } else { echo “dont exist”;}if folder star doesnot exists ?

dont exist 

exist 

1

SHOW ANSWER

Which function returns true if a file is readable?

 is_readable( ) 

 is_writable( ) 

readable( )

SHOW ANSWER

Which function is used to lock a file ?

flock( ) 

 lock( ) 

 file_lock( )

SHOW ANSWER

Mention the file function that returns selection of information of the file

stat() 

 fstat( ) 

 info( )

SHOW ANSWER

Give the function that sets modification time or create file if it doesn’ exist

touch( )

 mod( ) 

setmod( )

SHOW ANSWER

Name the function that returns target of a systemlink.

readlink( )

 syslink( )

systemlink( ) 

SHOW ANSWER

Which function confirms the existance of a link ?

readlink( ) 

linkinfo( ) 

 infolink( )

SHOW ANSWER

Name the file function in php that changes to octal mode

chmod( ) 

 changemod( )

 modchange()

SHOW ANSWER

Give the syntax for renaming a file

rename(oldname,newname); 

 rename(new name,oldname); 

rename(newname);

SHOW ANSWER

Which is the syntax for make directory function ?

mkdir( path,mode); 

 makedir(path); 

 dir(path,mode);

SHOW ANSWER

Give the syntax to remove an empty directory

rmdir(directory);

 removedir(directory); 

 dirrem(directory);

SHOW ANSWER

Give the syntax for file permission function

fileperms(file);

 fperm(file); 

 permission_file(file);

SHOW ANSWER

Give the syntax for chmod( )

chmod(file,mode); 

 chmod(file); 

 chmod(mode);

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