ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Scripts >> PHP
 
 


 

 
 PHP interview questions  PHP Interview Questions (659)
 ASP interview questions  ASP Interview Questions (252)
 CGI Perl interview questions  CGI Perl Interview Questions (76)
 JavaScript interview questions  JavaScript Interview Questions (176)
 VB Script interview questions  VB Script Interview Questions (343)
 JSP interview questions  JSP Interview Questions (100)
 Shell Script interview questions  Shell Script Interview Questions (158)
 Python interview questions  Python Interview Questions (5)
 Tcl interview questions  Tcl Interview Questions (19)
 Awk interview questions  Awk Interview Questions (6)
 AJAX interview questions  AJAX Interview Questions (24)
 Ruby on Rails interview questions  Ruby on Rails Interview Questions (21)
 Scripts AllOther interview questions  Scripts AllOther Interview Questions (48)
Question
What is the difference between the functions unlink and unset?
 Question Submitted By :: PHP
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
unlink-deletes the file
unset-unsets the variable
 
Is This Answer Correct ?    47 Yes 2 No
Umapathi
 
Answer
# 2
unlink() is used to delete a file
unset() is used to delete a variable
 
Is This Answer Correct ?    44 Yes 5 No
Kiran
 
 
 
Answer
# 3
Unlink() is a function for Delete the file.

unset is a function for delete the variable.
 
Is This Answer Correct ?    8 Yes 2 No
Jeyaprabhu
 
Answer
# 4
UNLINK:unlink-deletes the file.

UNSET:Unset is function which is use the unset (destroys OR
delete) the
specified variable.
 
Is This Answer Correct ?    6 Yes 0 No
N.boopathi
 
Answer
# 5
unlink() is a function for file system handling.
It will simply delete the file in context.


Unset () is used to destroy a variable in PHP. In can be
used to remove a single variable, multiple variables, or an
element from an array. It is phrased as Unset ($remove).
Also Known As: Unset Variable, Destroy Variable
 
Is This Answer Correct ?    4 Yes 0 No
Prahallada
 
Answer
# 6
Unset is function which is use the unset (destroys) the
specified variable but unlink is also a function which is
used to deletes a file.
 
Is This Answer Correct ?    4 Yes 2 No
Manish Kumar
 
Answer
# 7
unlink is used to delete the file where as

unset is used to delete the variable and the content of file.
 
Is This Answer Correct ?    0 Yes 0 No
Pinky
 

 
 
 
Other PHP Interview Questions
 
  Question Asked @ Answers
 
How many ways there are to fetch the data from the Database?   2
programm for factorial   1
how much a fresher php programmer can earn in india   5
i was set new individual folder for saving session values,the folder name is session and i set 777 permission,using session.save_path function like session.save_path "/home21b/sub004/sc21311-ULCX/candyoflove.com/session/" but it causing Warning: Unknown(): SAFE MODE Restriction in effect. The script whose uid/gid is 12112/12112 is not allowed to access /home21b/sub004/sc21311-ULCX/candyoflove.com/session owned by uid/gid 12267/12267 in Unknown on line 0 ,please tell what changes make this script, i was using .htaccesss file..plz help me....   1
How are Variables Defined in PHP? T3-Softwares 6
WWhat is the functionality of md5 function in PHP? Tech-Mahindra 7
what is the best function that can be used to connect to mysql database and in what cases that we can use below functions ? 1. mysql_connect() 2. mysql_pconnect() please give your answer with all pros and cons   1
how to retrieve from database..... this format (PRMRMDU402). firstname= prabhu, lastname=kumar, city=madurai, pincode=624402.... i want first name first two letters and last name last two letters ... city first two letters ... pin code last three letters....   2
Actually am working in existing project which is developed in .net, am converting the .net into php code. am facing problem after uploading the .php in server. amgetting the error message like "The page cannot be found" but its working perfectly in local host   2
What is meant by nl2br()?   3
What are the security measures we have to take for our site not to hack by others. Infosys 3
How can I make a script that can be bilanguage (supports English, German)?   3
 
For more PHP Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com